GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Completed
Pull Request — master (#10)
by Sergey
01:44
created
src/Services/JsonApiService.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -261,10 +261,10 @@  discard block
 block discarded – undo
261 261
     private function createPsr7Request(Request $request)
262 262
     {
263 263
         return new Psr7Request(
264
-            function () use ($request) {
264
+            function() use ($request) {
265 265
                 return $request->getMethod();
266 266
             },
267
-            function ($name) use ($request) {
267
+            function($name) use ($request) {
268 268
                 $header = $request->headers->get($name);
269 269
                 if (!is_array($header)) {
270 270
                     $header = array($header);
@@ -272,7 +272,7 @@  discard block
 block discarded – undo
272 272
 
273 273
                 return $header;
274 274
             },
275
-            function () use ($request) {
275
+            function() use ($request) {
276 276
                 return $request->query->all();
277 277
             }
278 278
         );
Please login to merge, or discard this patch.
src/Decoders/Mapping/ClassMetadata.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -108,7 +108,7 @@
 block discarded – undo
108 108
                 null,
109 109
                 422,
110 110
                 self::INVALID_DISCRIMINATOR_VALUE,
111
-                str_replace('{{value}}',  (string) $value, $this->discError)
111
+                str_replace('{{value}}', (string) $value, $this->discError)
112 112
             );
113 113
 
114 114
             throw new JsonApiException($error, 422);
Please login to merge, or discard this patch.
src/Decoders/Mapping/Loader/AnnotationLoader.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -489,7 +489,7 @@
 block discarded – undo
489 489
     /**
490 490
      * Parse property loaders
491 491
      *
492
-     * @param array|Loader[] $loaders
492
+     * @param \Reva2\JsonApi\Annotations\Reva2\JsonApi\Annotations\Loader[] $loaders
493 493
      * @return array
494 494
      */
495 495
     private function parseLoaders(array $loaders)
Please login to merge, or discard this patch.
src/Decoders/DataParser.php 2 patches
Doc Comments   +8 added lines patch added patch discarded remove patch
@@ -158,6 +158,7 @@  discard block
 block discarded – undo
158 158
 
159 159
     /**
160 160
      * @inheritdoc
161
+     * @param string $path
161 162
      */
162 163
     public function parseString($data, $path)
163 164
     {
@@ -182,6 +183,7 @@  discard block
 block discarded – undo
182 183
 
183 184
     /**
184 185
      * @inheritdoc
186
+     * @param string $path
185 187
      */
186 188
     public function parseInt($data, $path)
187 189
     {
@@ -190,6 +192,7 @@  discard block
 block discarded – undo
190 192
 
191 193
     /**
192 194
      * @inheritdoc
195
+     * @param string $path
193 196
      */
194 197
     public function parseFloat($data, $path)
195 198
     {
@@ -215,6 +218,7 @@  discard block
 block discarded – undo
215 218
 
216 219
     /**
217 220
      * @inheritdoc
221
+     * @param string $path
218 222
      */
219 223
     public function parseCallback($data, $path, $callback)
220 224
     {
@@ -232,6 +236,7 @@  discard block
 block discarded – undo
232 236
 
233 237
     /**
234 238
      * @inheritdoc
239
+     * @param string $path
235 240
      */
236 241
     public function parseBool($data, $path)
237 242
     {
@@ -290,6 +295,7 @@  discard block
 block discarded – undo
290 295
 
291 296
     /**
292 297
      * @inheritdoc
298
+     * @param string $path
293 299
      */
294 300
     public function parseArray($data, $path, \Closure $itemsParser)
295 301
     {
@@ -345,6 +351,8 @@  discard block
 block discarded – undo
345 351
 
346 352
     /**
347 353
      * @inheritdoc
354
+     * @param string $path
355
+     * @param string $resType
348 356
      */
349 357
     public function parseResource($data, $path, $resType, $loader = null)
350 358
     {
Please login to merge, or discard this patch.
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -692,7 +692,7 @@  discard block
 block discarded – undo
692 692
                 return $this->parseArray(
693 693
                     $data,
694 694
                     $path,
695
-                    function ($data, $path, DataParser $parser) use ($typeParams) {
695
+                    function($data, $path, DataParser $parser) use ($typeParams) {
696 696
                         return $parser->parseScalarValue($data, $path, $typeParams);
697 697
                     }
698 698
                 );
@@ -702,7 +702,7 @@  discard block
 block discarded – undo
702 702
                 return $this->parseArray(
703 703
                     $data,
704 704
                     $path,
705
-                    function ($data, $path, DataParser $parser) use ($format) {
705
+                    function($data, $path, DataParser $parser) use ($format) {
706 706
                         return $parser->parseDateTime($data, $path, $format);
707 707
                     }
708 708
                 );
@@ -711,7 +711,7 @@  discard block
 block discarded – undo
711 711
                 return $this->parseArray(
712 712
                     $data,
713 713
                     $path,
714
-                    function ($data, $path, DataParser $parser) use ($typeParams, $propMetadata) {
714
+                    function($data, $path, DataParser $parser) use ($typeParams, $propMetadata) {
715 715
                         return $parser->parseResourceOrObject($data, $path, $typeParams, $propMetadata);
716 716
                     }
717 717
                 );
@@ -720,7 +720,7 @@  discard block
 block discarded – undo
720 720
                 return $this->parseArray(
721 721
                     $data,
722 722
                     $path,
723
-                    function ($data, $path, DataParser $parser) use ($typeParams, $propMetadata) {
723
+                    function($data, $path, DataParser $parser) use ($typeParams, $propMetadata) {
724 724
                         return $parser->parseArrayValue($data, $path, $typeParams, $propMetadata);
725 725
                     }
726 726
                 );
@@ -729,7 +729,7 @@  discard block
 block discarded – undo
729 729
                 return $this->parseArray(
730 730
                     $data,
731 731
                     $path,
732
-                    function ($data, $path, DataParser $parser) {
732
+                    function($data, $path, DataParser $parser) {
733 733
                         return $parser->parseRaw($data, $path);
734 734
                     }
735 735
                 );
@@ -937,14 +937,14 @@  discard block
 block discarded – undo
937 937
      */
938 938
     private function parseArrayRelationship($data, $pathValue, PropertyMetadataInterface $relationship)
939 939
     {
940
-        $data = $this->parseArray($data, $relationship->getDataPath(), function ($data, $path) use ($relationship) {
940
+        $data = $this->parseArray($data, $relationship->getDataPath(), function($data, $path) use ($relationship) {
941 941
             $resType = null;
942 942
             if ($this->hasValue($data, $path . '.type')) {
943 943
                 $resType = $this->parseString($data, $path . '.type');
944 944
             }
945 945
 
946 946
             $resId = null;
947
-            if ($this->hasValue($data, $path .'.id')) {
947
+            if ($this->hasValue($data, $path . '.id')) {
948 948
                 $resId = $this->getValue($data, $path . '.id');
949 949
             }
950 950
 
@@ -966,7 +966,7 @@  discard block
 block discarded – undo
966 966
 
967 967
                 $parsed = $this->parseResourceOrObject(
968 968
                     [$idx => $linkedData],
969
-                    '[' . $idx .']',
969
+                    '[' . $idx . ']',
970 970
                     $params[1],
971 971
                     $relationship
972 972
                 );
@@ -1013,7 +1013,7 @@  discard block
 block discarded – undo
1013 1013
             return;
1014 1014
         }
1015 1015
 
1016
-        $errors = $this->parseArray($data, 'errors', function ($data, $path, DataParser $parser) {
1016
+        $errors = $this->parseArray($data, 'errors', function($data, $path, DataParser $parser) {
1017 1017
             $source = null;
1018 1018
             if ($this->hasValue($data, $path . '.source.pointer')) {
1019 1019
                 $source = ['pointer' => $this->parseString($data, $path . '.source.pointer')];
Please login to merge, or discard this patch.