Passed
Pull Request — master (#306)
by Tobias
03:09 queued 50s
created
lib/Client/Curl.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace Buzz\Client;
6 6
 
Please login to merge, or discard this patch.
lib/Client/FileGetContents.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace Buzz\Client;
6 6
 
Please login to merge, or discard this patch.
lib/Client/BatchClientInterface.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace Buzz\Client;
6 6
 
Please login to merge, or discard this patch.
tests/Functional/ConfigurationTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace Buzz\Test\Functional;
6 6
 
Please login to merge, or discard this patch.
tests/Functional/MiddlewareChainTest.php 1 patch
Spacing   +10 added lines, -16 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace Buzz\Test\Functional;
6 6
 
@@ -28,34 +28,28 @@  discard block
 block discarded – undo
28 28
 
29 29
         $browser = new Browser($client);
30 30
         $browser->addMiddleware(new MyMiddleware(
31
-            function () {
32
-                ++MyMiddleware::$handleCount;
31
+            function() {++MyMiddleware::$handleCount;
33 32
                 MyMiddleware::$hasBeenHandled = true;
34 33
                 $this->assertEquals(1, MyMiddleware::$handleCount);
35 34
             },
36
-            function () {
37
-                $this->assertEquals(1, MyMiddleware::$handleCount);
38
-                --MyMiddleware::$handleCount;
35
+            function() {
36
+                $this->assertEquals(1, MyMiddleware::$handleCount);--MyMiddleware::$handleCount;
39 37
             }
40 38
         ));
41 39
         $browser->addMiddleware(new MyMiddleware(
42
-            function () {
43
-                ++MyMiddleware::$handleCount;
40
+            function() {++MyMiddleware::$handleCount;
44 41
                 $this->assertEquals(2, MyMiddleware::$handleCount);
45 42
             },
46
-            function () {
47
-                $this->assertEquals(2, MyMiddleware::$handleCount);
48
-                --MyMiddleware::$handleCount;
43
+            function() {
44
+                $this->assertEquals(2, MyMiddleware::$handleCount);--MyMiddleware::$handleCount;
49 45
             }
50 46
         ));
51 47
         $browser->addMiddleware(new MyMiddleware(
52
-            function () {
53
-                ++MyMiddleware::$handleCount;
48
+            function() {++MyMiddleware::$handleCount;
54 49
                 $this->assertEquals(3, MyMiddleware::$handleCount);
55 50
             },
56
-            function () {
57
-                $this->assertEquals(3, MyMiddleware::$handleCount);
58
-                --MyMiddleware::$handleCount;
51
+            function() {
52
+                $this->assertEquals(3, MyMiddleware::$handleCount);--MyMiddleware::$handleCount;
59 53
             }
60 54
         ));
61 55
 
Please login to merge, or discard this patch.
tests/Unit/Util/CookieJarTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace Buzz\Test\Unit\Cookie;
6 6
 
Please login to merge, or discard this patch.
tests/Unit/Util/CookieTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace Buzz\Test\Unit\Cookie;
6 6
 
Please login to merge, or discard this patch.
tests/Unit/BrowserTest.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace Buzz\Test\Unit;
6 6
 
@@ -47,11 +47,11 @@  discard block
 block discarded – undo
47 47
     public function provideMethods()
48 48
     {
49 49
         return [
50
-            ['get',    ''],
51
-            ['head',   ''],
52
-            ['post',   'content'],
53
-            ['put',    'content'],
54
-            ['patch',    'content'],
50
+            ['get', ''],
51
+            ['head', ''],
52
+            ['post', 'content'],
53
+            ['put', 'content'],
54
+            ['patch', 'content'],
55 55
             ['delete', 'content'],
56 56
         ];
57 57
     }
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
     {
86 86
         $request = new Request('GET', '/');
87 87
         $response = new Response(201);
88
-        $headerValidator = function (array $input) use ($requestHeaders) {
88
+        $headerValidator = function(array $input) use ($requestHeaders) {
89 89
             foreach ($requestHeaders as $name => $value) {
90 90
                 if (!isset($input[$name])) {
91 91
                     return false;
@@ -102,7 +102,7 @@  discard block
 block discarded – undo
102 102
 
103 103
             return true;
104 104
         };
105
-        $bodyValidator = function ($input) use ($requestBody) {
105
+        $bodyValidator = function($input) use ($requestBody) {
106 106
             if ('regex' !== substr($requestBody, 0, 5)) {
107 107
                 return $input === $requestBody;
108 108
             }
@@ -151,7 +151,7 @@  discard block
 block discarded – undo
151 151
 
152 152
 [email protected]
153 153
 --[0-9a-f\.]+--
154
-|', ];
154
+|',];
155 155
         yield [
156 156
             ['email' => '[email protected]', 'image' => [
157 157
                 'path' => dirname(__DIR__).'/Resources/pixel.gif',
@@ -182,6 +182,6 @@  discard block
 block discarded – undo
182 182
 
183 183
 [email protected]
184 184
 --[0-9a-f\.]+--
185
-|', ];
185
+|',];
186 186
     }
187 187
 }
Please login to merge, or discard this patch.
tests/Unit/Middleware/ContentLengthMiddlewareTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace Buzz\Test\Unit\Middleware;
6 6
 
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
19 19
         /** @var RequestInterface $updatedRequest */
20 20
         $updatedRequest = null;
21 21
         $middleware = new ContentLengthMiddleware();
22
-        $middleware->handleRequest($request, function (RequestInterface $request) use (&$updatedRequest) {
22
+        $middleware->handleRequest($request, function(RequestInterface $request) use (&$updatedRequest) {
23 23
             $updatedRequest = $request;
24 24
         });
25 25
 
Please login to merge, or discard this patch.