Completed
Push — master ( 0d1a7f...efd685 )
by Mads
09:02 queued 06:06
created
src/Auth/AuthServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/Requests/Provider/RequestServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@
 block discarded – undo
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
         }
Please login to merge, or discard this patch.
src/Router/Provider/RouterServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
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']);
Please login to merge, or discard this patch.
src/Transformers/ApiTransformer.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -110,7 +110,7 @@  discard block
 block discarded – undo
110 110
     protected function transformAttributes(array $output, array $data): array
111 111
     {
112 112
         foreach ($data as $key => $value) {
113
-            if (true === $this->strict && ! $this->isMapped($key)) {
113
+            if (true === $this->strict && !$this->isMapped($key)) {
114 114
                 continue;
115 115
             }
116 116
 
@@ -131,7 +131,7 @@  discard block
 block discarded – undo
131 131
         /** @var Model $data */
132 132
         $relationships = $data->getRelations();
133 133
         foreach ($relationships as $relationshipName => $relationship) {
134
-            if (true === $this->strict && ! $this->isMapped($relationshipName)) {
134
+            if (true === $this->strict && !$this->isMapped($relationshipName)) {
135 135
                 continue;
136 136
             }
137 137
 
Please login to merge, or discard this patch.
src/Requests/ApiRequest.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -71,8 +71,8 @@  discard block
 block discarded – undo
71 71
         /**
72 72
          * Remove input fields like _method, _token, etc.
73 73
          */
74
-        $input = array_filter($this->input(), function ($key) {
75
-            return ! starts_with($key, '_');
74
+        $input = array_filter($this->input(), function($key) {
75
+            return !starts_with($key, '_');
76 76
         }, ARRAY_FILTER_USE_KEY);
77 77
 
78 78
         return $this->getTransformer()->transformInput($input);
@@ -153,7 +153,7 @@  discard block
 block discarded – undo
153 153
     protected function transformValidationOutput($validator): array
154 154
     {
155 155
         return collect($this->getTransformer()->transformOutputKeys($validator->getMessageBag()->toArray()))
156
-            ->reject(function ($error) {
156
+            ->reject(function($error) {
157 157
                 return false === \is_array($error);
158 158
             })
159 159
             ->toArray();
Please login to merge, or discard this patch.