Skip to content

Commit a3592ab

Browse files
committed
Fix Style
1 parent 5890199 commit a3592ab

File tree

4 files changed

+22
-18
lines changed

4 files changed

+22
-18
lines changed

config/api.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?php
22

3+
4+
35
return [
46

57
/*

src/Console/Command/Routes.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -86,15 +86,15 @@ protected function getRoutes()
8686
foreach ($this->router->getRoutes() as $collection) {
8787
foreach ($collection->getRoutes() as $route) {
8888
$routes[] = $this->filterRoute([
89-
'host' => $route->domain(),
90-
'method' => implode('|', $route->methods()),
91-
'uri' => $route->uri(),
92-
'name' => $route->getName(),
93-
'action' => $route->getActionName(),
89+
'host' => $route->domain(),
90+
'method' => implode('|', $route->methods()),
91+
'uri' => $route->uri(),
92+
'name' => $route->getName(),
93+
'action' => $route->getActionName(),
9494
'protected' => $route->isProtected() ? 'Yes' : 'No',
95-
'versions' => implode(', ', $route->versions()),
96-
'scopes' => implode(', ', $route->scopes()),
97-
'rate' => $this->routeRateLimit($route),
95+
'versions' => implode(', ', $route->versions()),
96+
'scopes' => implode(', ', $route->scopes()),
97+
'rate' => $this->routeRateLimit($route),
9898
]);
9999
}
100100
}

src/Provider/DingoServiceProvider.php

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -92,16 +92,16 @@ protected function registerClassAliases()
9292
{
9393
$aliases = [
9494
'Dingo\Api\Http\Request' => 'Dingo\Api\Contract\Http\Request',
95-
'api.dispatcher' => 'Dingo\Api\Dispatcher',
96-
'api.http.validator' => 'Dingo\Api\Http\RequestValidator',
97-
'api.http.response' => 'Dingo\Api\Http\Response\Factory',
98-
'api.router' => 'Dingo\Api\Routing\Router',
99-
'api.router.adapter' => 'Dingo\Api\Contract\Routing\Adapter',
100-
'api.auth' => 'Dingo\Api\Auth\Auth',
101-
'api.limiting' => 'Dingo\Api\Http\RateLimit\Handler',
102-
'api.transformer' => 'Dingo\Api\Transformer\Factory',
103-
'api.url' => 'Dingo\Api\Routing\UrlGenerator',
104-
'api.exception' => ['Dingo\Api\Exception\Handler', 'Dingo\Api\Contract\Debug\ExceptionHandler'],
95+
'api.dispatcher' => 'Dingo\Api\Dispatcher',
96+
'api.http.validator' => 'Dingo\Api\Http\RequestValidator',
97+
'api.http.response' => 'Dingo\Api\Http\Response\Factory',
98+
'api.router' => 'Dingo\Api\Routing\Router',
99+
'api.router.adapter' => 'Dingo\Api\Contract\Routing\Adapter',
100+
'api.auth' => 'Dingo\Api\Auth\Auth',
101+
'api.limiting' => 'Dingo\Api\Http\RateLimit\Handler',
102+
'api.transformer' => 'Dingo\Api\Transformer\Factory',
103+
'api.url' => 'Dingo\Api\Routing\UrlGenerator',
104+
'api.exception' => ['Dingo\Api\Exception\Handler', 'Dingo\Api\Contract\Debug\ExceptionHandler'],
105105
];
106106

107107
foreach ($aliases as $key => $aliases) {

src/helpers.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?php
22

3+
4+
35
if (! function_exists('version')) {
46
/**
57
* Set the version to generate API URLs to.

0 commit comments

Comments
 (0)