Passed
Push — feature/support-php-8.0 ( faa861...3ae917 )
by Darío
02:27
created
src/Expectations/MethodIsExpectation.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@
 block discarded – undo
11 11
 {
12 12
     public static function from(Expectation $expectation): callable
13 13
     {
14
-        return function ($request) use ($expectation) {
14
+        return function($request) use ($expectation) {
15 15
             if ($method = $expectation->getMethod()) {
16 16
                 /** @var RequestInterface $request */
17 17
                 if ($request->getMethod() !== $method) {
Please login to merge, or discard this patch.
src/Expectations/ParamIsExpectation.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@
 block discarded – undo
11 11
 {
12 12
     public static function from(Expectation $expectation): callable
13 13
     {
14
-        return function ($request) use ($expectation) {
14
+        return function($request) use ($expectation) {
15 15
             /** @var RequestInterface $request */
16 16
             parse_str($request->getUri()->getQuery(), $params);
17 17
 
Please login to merge, or discard this patch.
src/Expectations/PathIsExpectation.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@
 block discarded – undo
11 11
 {
12 12
     public static function from(Expectation $expectation): callable
13 13
     {
14
-        return function ($request) use ($expectation) {
14
+        return function($request) use ($expectation) {
15 15
             if ($path = $expectation->getPath()) {
16 16
                 /** @var RequestInterface $request */
17 17
                 if ($request->getUri()->getPath() !== $path) {
Please login to merge, or discard this patch.
src/Expectations/HeaderIsExpectation.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@
 block discarded – undo
12 12
 {
13 13
     public static function from(Expectation $expectation): callable
14 14
     {
15
-        return function ($request) use ($expectation) {
15
+        return function($request) use ($expectation) {
16 16
             /** @var RequestInterface $request */
17 17
             $headers = GuzzleHeaderParser::parse($request->getHeaders());
18 18
 
Please login to merge, or discard this patch.
src/Expectations/HeaderExistsExpectation.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@
 block discarded – undo
11 11
 {
12 12
     public static function from(Expectation $expectation): callable
13 13
     {
14
-        return function ($request) use ($expectation) {
14
+        return function($request) use ($expectation) {
15 15
             /** @var RequestInterface $request */
16 16
 
17 17
             foreach ($expectation->emptyHeadersIterator() as $param => $value) {
Please login to merge, or discard this patch.
src/Expectations/HeaderNotExistsExpectation.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@
 block discarded – undo
11 11
 {
12 12
     public static function from(Expectation $expectation): callable
13 13
     {
14
-        return function ($request) use ($expectation) {
14
+        return function($request) use ($expectation) {
15 15
             /** @var RequestInterface $request */
16 16
 
17 17
             foreach ($expectation->missingHeadersIterator() as $header) {
Please login to merge, or discard this patch.
src/Expectation.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
     {
83 83
         array_walk(
84 84
             $params,
85
-            function ($value, $key) {
85
+            function($value, $key) {
86 86
                 $this->queryParamIs($key, $value);
87 87
             }
88 88
         );
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
     {
95 95
         array_walk(
96 96
             $params,
97
-            function ($value) {
97
+            function($value) {
98 98
                 $this->queryParamExists($value);
99 99
             }
100 100
         );
@@ -106,7 +106,7 @@  discard block
 block discarded – undo
106 106
     {
107 107
         array_walk(
108 108
             $params,
109
-            function ($value) {
109
+            function($value) {
110 110
                 $this->queryParamNotExists($value);
111 111
             }
112 112
         );
@@ -139,7 +139,7 @@  discard block
 block discarded – undo
139 139
     {
140 140
         array_walk(
141 141
             $headers,
142
-            function ($value, $key) {
142
+            function($value, $key) {
143 143
                 $this->headerIs($key, $value);
144 144
             }
145 145
         );
@@ -151,7 +151,7 @@  discard block
 block discarded – undo
151 151
     {
152 152
         array_walk(
153 153
             $headers,
154
-            function ($value) {
154
+            function($value) {
155 155
                 $this->headerExists($value);
156 156
             }
157 157
         );
@@ -163,7 +163,7 @@  discard block
 block discarded – undo
163 163
     {
164 164
         array_walk(
165 165
             $headers,
166
-            function ($value) {
166
+            function($value) {
167 167
                 $this->headerNotExists($value);
168 168
             }
169 169
         );
Please login to merge, or discard this patch.
src/HttpMock.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
             $matches = true;
31 31
 
32 32
             $promise = new Promise(
33
-                function () use (&$promise, $request) {
33
+                function() use (&$promise, $request) {
34 34
                     $promise->resolve($request);
35 35
                 }
36 36
             );
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
                 ->then(HeaderExistsExpectation::from($expectation))
45 45
                 ->then(HeaderNotExistsExpectation::from($expectation))
46 46
                 ->otherwise(
47
-                    function () use (&$matches) {
47
+                    function() use (&$matches) {
48 48
                         $matches = false;
49 49
                     }
50 50
                 );
Please login to merge, or discard this patch.
src/Iterators/EmptyArrayValuesIterator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@
 block discarded – undo
14 14
     {
15 15
         $collection = array_filter(
16 16
             $collection,
17
-            function ($value) {
17
+            function($value) {
18 18
                 return empty($value);
19 19
             }
20 20
         );
Please login to merge, or discard this patch.