@@ -90,9 +90,9 @@ |
||
| 90 | 90 | */ |
| 91 | 91 | protected function init(Container $container) |
| 92 | 92 | { |
| 93 | - $this->kernel = $container->getService(\App\Kernel::class); |
|
| 93 | + $this->kernel = $container->getService(\App\Kernel::class); |
|
| 94 | 94 | $this->config = $container->getService(\App\Config::class); |
| 95 | - $this->configParams = $this->config->getSettings( |
|
| 95 | + $this->configParams = $this->config->getSettings( |
|
| 96 | 96 | Config::_MIDDLEWARES |
| 97 | 97 | )[get_called_class()]; |
| 98 | 98 | $this->request = $container->getService(\App\Http\Request::class); |
@@ -249,7 +249,7 @@ discard block |
||
| 249 | 249 | } |
| 250 | 250 | (new Middleware())->layer($this->middlewares)->peel( |
| 251 | 251 | $this->container, |
| 252 | - function ($container) { |
|
| 252 | + function($container) { |
|
| 253 | 253 | $this->execute(null); |
| 254 | 254 | return $container; |
| 255 | 255 | } |
@@ -339,7 +339,7 @@ discard block |
||
| 339 | 339 | protected function setActions() |
| 340 | 340 | { |
| 341 | 341 | $methods = $this->getFinalMethods(); |
| 342 | - $methodsName = array_map(function ($method) { |
|
| 342 | + $methodsName = array_map(function($method) { |
|
| 343 | 343 | return $method->name; |
| 344 | 344 | }, $methods); |
| 345 | 345 | $this->actions = array_merge($methodsName, ['preflight']); |
@@ -11,7 +11,7 @@ |
||
| 11 | 11 | 'prefix' => '/api/v1/', |
| 12 | 12 | 'exclude' => [ |
| 13 | 13 | 'auth/login', 'stat/opcache', 'stat/filecache', |
| 14 | - 'restful' ,'restful/index', 'test/pokerelay' |
|
| 14 | + 'restful', 'restful/index', 'test/pokerelay' |
|
| 15 | 15 | ], |
| 16 | 16 | ], |
| 17 | 17 | App\Middlewares\Restful::class => [ |