Test Setup Failed
Branch master (8c1dfb)
by Akkroo Dev
03:25
created
Category
src/Client.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -341,7 +341,7 @@  discard block
 block discarded – undo
341 341
         if (empty($result['headers']['Allow'])) {
342 342
             throw new Error\Generic('Missing allow header');
343 343
         }
344
-        $allow = array_map(function ($item) {
344
+        $allow = array_map(function($item) {
345 345
             return trim($item);
346 346
         }, explode(',', $result['headers']['Allow'][0]));
347 347
         return (new Result(['success' => true, 'allow' => $allow]))->withRequestID($result['requestID']);
@@ -488,7 +488,7 @@  discard block
 block discarded – undo
488 488
             $contentRange['page'] = $contentRange['links']['self']['params']['page'];
489 489
             $contentRange['pages'] = $contentRange['links']['last']['params']['page'];
490 490
             $contentRange['per_page'] = $contentRange['links']['self']['params']['per_page'];
491
-            $contentRange['from'] = $contentRange['per_page'] * ($contentRange['page'] -1) + 1;
491
+            $contentRange['from'] = $contentRange['per_page'] * ($contentRange['page'] - 1) + 1;
492 492
             $contentRange['to'] = $contentRange['per_page'] * $contentRange['page'];
493 493
         }
494 494
         return $contentRange;
@@ -552,7 +552,7 @@  discard block
 block discarded – undo
552 552
         // see https://github.com/guzzle/psr7/blob/master/README.md#guzzlehttppsr7urinormalizernormalize
553 553
         return preg_replace_callback(
554 554
             '/%(?:2C|2D|2E|5F|7E|3[0-9]|[46][1-9A-F]|[57][0-9A])/i',
555
-            function (array $match) {
555
+            function(array $match) {
556 556
                 return rawurldecode($match[0]);
557 557
             },
558 558
             http_build_query($query)
Please login to merge, or discard this patch.
src/Collection.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@
 block discarded – undo
31 31
     public function __construct(array $data = [], string $itemType = Resource::class)
32 32
     {
33 33
         $this->itemType = $itemType;
34
-        array_map(function ($item) use ($itemType) {
34
+        array_map(function($item) use ($itemType) {
35 35
             if (!empty($item)) {
36 36
                 if (is_array($item)) {
37 37
                     $this->append(new $this->itemType($item));
Please login to merge, or discard this patch.