Passed
Push — main ( ed05c6...99b119 )
by Darío
02:52 queued 36s
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/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.
src/Iterators/NotEmptyArrayValuesIterator.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.