@@ -11,7 +11,7 @@ |
||
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 \'' . $request->getMethod() . '\' does not match expectation'); |
@@ -10,7 +10,7 @@ |
||
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 \'' . $request->getUri()->getPath() . '\' does not match expectation'); |
@@ -11,7 +11,7 @@ |
||
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 \'' . $request->getUri()->getPath() . '\' does not match expectation'); |
@@ -36,7 +36,7 @@ discard block |
||
36 | 36 | $matches = true; |
37 | 37 | |
38 | 38 | $promise = new Promise( |
39 | - function () use (&$promise, $request) { |
|
39 | + function() use (&$promise, $request) { |
|
40 | 40 | $promise->resolve($request); |
41 | 41 | } |
42 | 42 | ); |
@@ -54,7 +54,7 @@ discard block |
||
54 | 54 | ->then(BodyExpectation::from($expectation)) |
55 | 55 | ->then(RequestExpectation::from($expectation)) |
56 | 56 | ->otherwise( |
57 | - function ($reason) use (&$matches, &$rejectionReason) { |
|
57 | + function($reason) use (&$matches, &$rejectionReason) { |
|
58 | 58 | $rejectionReason = $reason; |
59 | 59 | $matches = false; |
60 | 60 | } |
@@ -10,7 +10,7 @@ |
||
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 | foreach ($expectation->requestHandlersIterator() as $handler) { |
16 | 16 | if (!$handler($request)) { |
@@ -11,7 +11,7 @@ |
||
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 | $stream = $request->getBody(); |
17 | 17 | $stream->rewind(); |