Completed
Push — master ( 330d40...237972 )
by
unknown
02:07
created
src/Client.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -346,7 +346,7 @@  discard block
 block discarded – undo
346 346
         if (empty($result['headers']['Allow'])) {
347 347
             throw new Error\Generic('Missing allow header');
348 348
         }
349
-        $allow = array_map(function ($item) {
349
+        $allow = array_map(function($item) {
350 350
             return trim($item);
351 351
         }, explode(',', $result['headers']['Allow'][0]));
352 352
         return (new Result(['success' => true, 'allow' => $allow]))->withRequestID($result['requestID']);
@@ -493,7 +493,7 @@  discard block
 block discarded – undo
493 493
             $contentRange['page'] = $contentRange['links']['self']['params']['page'];
494 494
             $contentRange['pages'] = $contentRange['links']['last']['params']['page'] ?? 1;
495 495
             $contentRange['per_page'] = $contentRange['links']['self']['params']['per_page'];
496
-            $contentRange['from'] = $contentRange['per_page'] * ($contentRange['page'] -1) + 1;
496
+            $contentRange['from'] = $contentRange['per_page'] * ($contentRange['page'] - 1) + 1;
497 497
             $contentRange['to'] = $contentRange['per_page'] * $contentRange['page'];
498 498
         }
499 499
         return $contentRange;
@@ -557,7 +557,7 @@  discard block
 block discarded – undo
557 557
         // see https://github.com/guzzle/psr7/blob/master/README.md#guzzlehttppsr7urinormalizernormalize
558 558
         return preg_replace_callback(
559 559
             '/%(?:2C|2D|2E|5F|7E|3[0-9]|[46][1-9A-F]|[57][0-9A])/i',
560
-            function (array $match) {
560
+            function(array $match) {
561 561
                 return rawurldecode($match[0]);
562 562
             },
563 563
             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) {
34
+        array_map(function($item) {
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.