Passed
Push — main ( 3ba23a...063f15 )
by Darío
43s queued 12s
created
src/HttpMock.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
             $matches = true;
35 35
 
36 36
             $promise = new Promise(
37
-                function () use (&$promise, $request) {
37
+                function() use (&$promise, $request) {
38 38
                     $promise->resolve($request);
39 39
                 }
40 40
             );
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
                 ->then(HeaderExistsExpectation::from($expectation))
51 51
                 ->then(HeaderNotExistsExpectation::from($expectation))
52 52
                 ->otherwise(
53
-                    function ($reason) use (&$matches, &$rejectionReason) {
53
+                    function($reason) use (&$matches, &$rejectionReason) {
54 54
                         $rejectionReason = $reason;
55 55
                         $matches = false;
56 56
                     }
Please login to merge, or discard this patch.
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
             /** @var RequestInterface $request */
16 16
             if (!is_null($expectation->getMethod()) && $request->getMethod() !== $expectation->getMethod()) {
17 17
                 return new RejectedPromise('method does not match expectation');
Please login to merge, or discard this patch.
src/Expectations/PathMatchExpectation.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@
 block discarded – undo
10 10
 {
11 11
     public static function from(Expectation $expectation): callable
12 12
     {
13
-        return function ($request) use ($expectation) {
13
+        return function($request) use ($expectation) {
14 14
             /** @var RequestInterface $request */
15 15
             if (!is_null($expectation->getPathRegex()) && !self::matches($expectation, $request)) {
16 16
                 return new RejectedPromise('path does not match expectation');
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
             /** @var RequestInterface $request */
16 16
             if (!is_null($expectation->getPath()) && $request->getUri()->getPath() !== $expectation->getPath()) {
17 17
                 return new RejectedPromise('path does not match expectation');
Please login to merge, or discard this patch.