Completed
Push — master ( e96d59...059736 )
by Guillaume
03:13
created
vendor/guzzlehttp/guzzle/src/Pool.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
         }
52 52
 
53 53
         $iterable = \GuzzleHttp\Promise\iter_for($requests);
54
-        $requests = function () use ($iterable, $client, $opts) {
54
+        $requests = function() use ($iterable, $client, $opts) {
55 55
             foreach ($iterable as $key => $rfn) {
56 56
                 if ($rfn instanceof RequestInterface) {
57 57
                     yield $key => $client->sendAsync($rfn, $opts);
@@ -109,12 +109,12 @@  discard block
 block discarded – undo
109 109
     private static function cmpCallback(array &$options, $name, array &$results)
110 110
     {
111 111
         if (!isset($options[$name])) {
112
-            $options[$name] = function ($v, $k) use (&$results) {
112
+            $options[$name] = function($v, $k) use (&$results) {
113 113
                 $results[$k] = $v;
114 114
             };
115 115
         } else {
116 116
             $currentFn = $options[$name];
117
-            $options[$name] = function ($v, $k) use (&$results, $currentFn) {
117
+            $options[$name] = function($v, $k) use (&$results, $currentFn) {
118 118
                 $currentFn($v, $k);
119 119
                 $results[$k] = $v;
120 120
             };
Please login to merge, or discard this patch.
vendor/guzzlehttp/psr7/src/functions.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
93 93
             if ($resource instanceof StreamInterface) {
94 94
                 return $resource;
95 95
             } elseif ($resource instanceof \Iterator) {
96
-                return new PumpStream(function () use ($resource) {
96
+                return new PumpStream(function() use ($resource) {
97 97
                     if (!$resource->valid()) {
98 98
                         return false;
99 99
                     }
@@ -217,7 +217,7 @@  discard block
 block discarded – undo
217 217
                 $standardPorts = ['http' => 80, 'https' => 443];
218 218
                 $scheme = $changes['uri']->getScheme();
219 219
                 if (isset($standardPorts[$scheme]) && $port != $standardPorts[$scheme]) {
220
-                    $changes['set_headers']['Host'] .= ':'.$port;
220
+                    $changes['set_headers']['Host'] .= ':' . $port;
221 221
                 }
222 222
             }
223 223
         }
@@ -295,7 +295,7 @@  discard block
 block discarded – undo
295 295
 function try_fopen($filename, $mode)
296 296
 {
297 297
     $ex = null;
298
-    set_error_handler(function () use ($filename, $mode, &$ex) {
298
+    set_error_handler(function() use ($filename, $mode, &$ex) {
299 299
         $ex = new \RuntimeException(sprintf(
300 300
             'Unable to open %s using mode %s: %s',
301 301
             $filename,
@@ -530,7 +530,7 @@  discard block
 block discarded – undo
530 530
     }
531 531
 
532 532
     if ($urlEncoding === true) {
533
-        $decoder = function ($value) {
533
+        $decoder = function($value) {
534 534
             return rawurldecode(str_replace('+', ' ', $value));
535 535
         };
536 536
     } elseif ($urlEncoding == PHP_QUERY_RFC3986) {
@@ -538,7 +538,7 @@  discard block
 block discarded – undo
538 538
     } elseif ($urlEncoding == PHP_QUERY_RFC1738) {
539 539
         $decoder = 'urldecode';
540 540
     } else {
541
-        $decoder = function ($str) { return $str; };
541
+        $decoder = function($str) { return $str; };
542 542
     }
543 543
 
544 544
     foreach (explode('&', $str) as $kvp) {
@@ -578,7 +578,7 @@  discard block
 block discarded – undo
578 578
     }
579 579
 
580 580
     if ($encoding === false) {
581
-        $encoder = function ($str) { return $str; };
581
+        $encoder = function($str) { return $str; };
582 582
     } elseif ($encoding === PHP_QUERY_RFC3986) {
583 583
         $encoder = 'rawurlencode';
584 584
     } elseif ($encoding === PHP_QUERY_RFC1738) {
@@ -794,7 +794,7 @@  discard block
 block discarded – undo
794 794
  */
795 795
 function _parse_request_uri($path, array $headers)
796 796
 {
797
-    $hostKey = array_filter(array_keys($headers), function ($k) {
797
+    $hostKey = array_filter(array_keys($headers), function($k) {
798 798
         return strtolower($k) === 'host';
799 799
     });
800 800
 
Please login to merge, or discard this patch.
vendor/guzzlehttp/psr7/src/MessageTrait.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@  discard block
 block discarded – undo
12 12
     private $headers = [];
13 13
 
14 14
     /** @var array Map of lowercase header name => original name at registration */
15
-    private $headerNames  = [];
15
+    private $headerNames = [];
16 16
 
17 17
     /** @var string */
18 18
     private $protocol = '1.1';
@@ -176,7 +176,7 @@  discard block
 block discarded – undo
176 176
      */
177 177
     private function trimHeaderValues(array $values)
178 178
     {
179
-        return array_map(function ($value) {
179
+        return array_map(function($value) {
180 180
             return trim($value, " \t");
181 181
         }, $values);
182 182
     }
Please login to merge, or discard this patch.
vendor/guzzlehttp/psr7/src/Uri.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -120,7 +120,7 @@  discard block
 block discarded – undo
120 120
             $uri .= $scheme . ':';
121 121
         }
122 122
 
123
-        if ($authority != ''|| $scheme === 'file') {
123
+        if ($authority != '' || $scheme === 'file') {
124 124
             $uri .= '//' . $authority;
125 125
         }
126 126
 
@@ -307,7 +307,7 @@  discard block
 block discarded – undo
307 307
         }
308 308
 
309 309
         $decodedKey = rawurldecode($key);
310
-        $result = array_filter(explode('&', $current), function ($part) use ($decodedKey) {
310
+        $result = array_filter(explode('&', $current), function($part) use ($decodedKey) {
311 311
             return rawurldecode(explode('=', $part)[0]) !== $decodedKey;
312 312
         });
313 313
 
@@ -337,7 +337,7 @@  discard block
 block discarded – undo
337 337
             $result = [];
338 338
         } else {
339 339
             $decodedKey = rawurldecode($key);
340
-            $result = array_filter(explode('&', $current), function ($part) use ($decodedKey) {
340
+            $result = array_filter(explode('&', $current), function($part) use ($decodedKey) {
341 341
                 return rawurldecode(explode('=', $part)[0]) !== $decodedKey;
342 342
             });
343 343
         }
@@ -695,7 +695,7 @@  discard block
 block discarded – undo
695 695
                 'by adding a leading slash to the path is deprecated since version 1.4 and will throw an exception instead.',
696 696
                 E_USER_DEPRECATED
697 697
             );
698
-            $this->path = '/'. $this->path;
698
+            $this->path = '/' . $this->path;
699 699
             //throw new \InvalidArgumentException('The path of a URI with an authority must start with a slash "/" or be empty');
700 700
         }
701 701
     }
Please login to merge, or discard this patch.
vendor/guzzlehttp/psr7/src/UriNormalizer.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -181,7 +181,7 @@  discard block
 block discarded – undo
181 181
     {
182 182
         $regex = '/(?:%[A-Fa-f0-9]{2})++/';
183 183
 
184
-        $callback = function (array $match) {
184
+        $callback = function(array $match) {
185 185
             return strtoupper($match[0]);
186 186
         };
187 187
 
@@ -197,7 +197,7 @@  discard block
 block discarded – undo
197 197
     {
198 198
         $regex = '/%(?:2D|2E|5F|7E|3[0-9]|[46][1-9A-F]|[57][0-9A])/i';
199 199
 
200
-        $callback = function (array $match) {
200
+        $callback = function(array $match) {
201 201
             return rawurldecode($match[0]);
202 202
         };
203 203
 
Please login to merge, or discard this patch.
vendor/guzzlehttp/promises/src/TaskQueue.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@
 block discarded – undo
18 18
     public function __construct($withShutdown = true)
19 19
     {
20 20
         if ($withShutdown) {
21
-            register_shutdown_function(function () {
21
+            register_shutdown_function(function() {
22 22
                 if ($this->enableShutdown) {
23 23
                     // Only run the tasks if an E_ERROR didn't occur.
24 24
                     $err = error_get_last();
Please login to merge, or discard this patch.
vendor/guzzlehttp/promises/src/RejectedPromise.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@
 block discarded – undo
33 33
         $queue = queue();
34 34
         $reason = $this->reason;
35 35
         $p = new Promise([$queue, 'run']);
36
-        $queue->add(static function () use ($p, $reason, $onRejected) {
36
+        $queue->add(static function() use ($p, $reason, $onRejected) {
37 37
             if ($p->getState() === self::PENDING) {
38 38
                 try {
39 39
                     // Return a resolved promise if onRejected does not throw.
Please login to merge, or discard this patch.
vendor/guzzlehttp/promises/src/Coroutine.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@
 block discarded – undo
60 60
     public function __construct(callable $generatorFn)
61 61
     {
62 62
         $this->generator = $generatorFn();
63
-        $this->result = new Promise(function () {
63
+        $this->result = new Promise(function() {
64 64
             while (isset($this->currentPromise)) {
65 65
                 $this->currentPromise->wait();
66 66
             }
Please login to merge, or discard this patch.
vendor/guzzlehttp/promises/src/functions.php 1 patch
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
 {
44 44
     $queue = queue();
45 45
     $promise = new Promise([$queue, 'run']);
46
-    $queue->add(function () use ($task, $promise) {
46
+    $queue->add(function() use ($task, $promise) {
47 47
         try {
48 48
             $promise->resolve($task());
49 49
         } catch (\Throwable $e) {
@@ -221,13 +221,13 @@  discard block
 block discarded – undo
221 221
     $results = [];
222 222
     return each(
223 223
         $promises,
224
-        function ($value, $idx) use (&$results) {
224
+        function($value, $idx) use (&$results) {
225 225
             $results[$idx] = $value;
226 226
         },
227
-        function ($reason, $idx, Promise $aggregate) {
227
+        function($reason, $idx, Promise $aggregate) {
228 228
             $aggregate->reject($reason);
229 229
         }
230
-    )->then(function () use (&$results) {
230
+    )->then(function() use (&$results) {
231 231
         ksort($results);
232 232
         return $results;
233 233
     });
@@ -256,7 +256,7 @@  discard block
 block discarded – undo
256 256
 
257 257
     return each(
258 258
         $promises,
259
-        function ($value, $idx, PromiseInterface $p) use (&$results, $count) {
259
+        function($value, $idx, PromiseInterface $p) use (&$results, $count) {
260 260
             if ($p->getState() !== PromiseInterface::PENDING) {
261 261
                 return;
262 262
             }
@@ -265,11 +265,11 @@  discard block
 block discarded – undo
265 265
                 $p->resolve(null);
266 266
             }
267 267
         },
268
-        function ($reason) use (&$rejections) {
268
+        function($reason) use (&$rejections) {
269 269
             $rejections[] = $reason;
270 270
         }
271 271
     )->then(
272
-        function () use (&$results, &$rejections, $count) {
272
+        function() use (&$results, &$rejections, $count) {
273 273
             if (count($results) !== $count) {
274 274
                 throw new AggregateException(
275 275
                     'Not enough promises to fulfill count',
@@ -292,7 +292,7 @@  discard block
 block discarded – undo
292 292
  */
293 293
 function any($promises)
294 294
 {
295
-    return some(1, $promises)->then(function ($values) { return $values[0]; });
295
+    return some(1, $promises)->then(function($values) { return $values[0]; });
296 296
 }
297 297
 
298 298
 /**
@@ -312,13 +312,13 @@  discard block
 block discarded – undo
312 312
 
313 313
     return each(
314 314
         $promises,
315
-        function ($value, $idx) use (&$results) {
315
+        function($value, $idx) use (&$results) {
316 316
             $results[$idx] = ['state' => PromiseInterface::FULFILLED, 'value' => $value];
317 317
         },
318
-        function ($reason, $idx) use (&$results) {
318
+        function($reason, $idx) use (&$results) {
319 319
             $results[$idx] = ['state' => PromiseInterface::REJECTED, 'reason' => $reason];
320 320
         }
321
-    )->then(function () use (&$results) {
321
+    )->then(function() use (&$results) {
322 322
         ksort($results);
323 323
         return $results;
324 324
     });
@@ -402,7 +402,7 @@  discard block
 block discarded – undo
402 402
         $iterable,
403 403
         $concurrency,
404 404
         $onFulfilled,
405
-        function ($reason, $idx, PromiseInterface $aggregate) {
405
+        function($reason, $idx, PromiseInterface $aggregate) {
406 406
             $aggregate->reject($reason);
407 407
         }
408 408
     );
Please login to merge, or discard this patch.