@@ -12,7 +12,7 @@ |
||
| 12 | 12 | */ |
| 13 | 13 | public function register() |
| 14 | 14 | { |
| 15 | - Auth::extend('api', function ($app, $name, array $config) { |
|
| 15 | + Auth::extend('api', function($app, $name, array $config) { |
|
| 16 | 16 | return new ApiGuard(Auth::createUserProvider($config['provider']), $app['request']); |
| 17 | 17 | }); |
| 18 | 18 | } |
@@ -11,7 +11,7 @@ |
||
| 11 | 11 | public function boot() |
| 12 | 12 | { |
| 13 | 13 | if (false === Request::hasMacro('isApiInternalCall')) { |
| 14 | - Request::macro('isApiInternalCall', function () { |
|
| 14 | + Request::macro('isApiInternalCall', function() { |
|
| 15 | 15 | return $this->header(NappHttpHeaders::NAPP_API_CALL_TYPE) === 'internal'; |
| 16 | 16 | }); |
| 17 | 17 | } |
@@ -61,7 +61,7 @@ discard block |
||
| 61 | 61 | /** |
| 62 | 62 | * Remove input fields like _method, _token, etc. |
| 63 | 63 | */ |
| 64 | - $input = array_filter($this->input(), function ($key) { |
|
| 64 | + $input = array_filter($this->input(), function($key) { |
|
| 65 | 65 | return !starts_with($key, '_'); |
| 66 | 66 | }, ARRAY_FILTER_USE_KEY); |
| 67 | 67 | |
@@ -109,7 +109,7 @@ discard block |
||
| 109 | 109 | { |
| 110 | 110 | $input = $this->getTransformer()->transformOutput($this->except($this->dontFlash)); |
| 111 | 111 | $errors = collect($this->getTransformer()->transformOutput($validator->getMessageBag()->toArray())) |
| 112 | - ->reject(function ($error) { |
|
| 112 | + ->reject(function($error) { |
|
| 113 | 113 | return false === is_array($error); |
| 114 | 114 | }) |
| 115 | 115 | ->toArray(); |
@@ -13,7 +13,7 @@ |
||
| 13 | 13 | |
| 14 | 14 | public function boot() |
| 15 | 15 | { |
| 16 | - $this->app->singleton('internalrouter', function () { |
|
| 16 | + $this->app->singleton('internalrouter', function() { |
|
| 17 | 17 | $app = app(); |
| 18 | 18 | |
| 19 | 19 | return new Router($app, $app['request'], $app['router']); |