@@ -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 | if ($method = $expectation->getMethod()) { |
16 | 16 | /** @var RequestInterface $request */ |
17 | 17 | if ($request->getMethod() !== $method) { |
@@ -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 | parse_str($request->getUri()->getQuery(), $params); |
17 | 17 |
@@ -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 | if ($path = $expectation->getPath()) { |
16 | 16 | /** @var RequestInterface $request */ |
17 | 17 | if ($request->getUri()->getPath() !== $path) { |
@@ -12,7 +12,7 @@ |
||
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 |
@@ -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 | |
17 | 17 | foreach ($expectation->emptyHeadersIterator() as $param => $value) { |
@@ -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 | |
17 | 17 | foreach ($expectation->missingHeadersIterator() as $header) { |
@@ -82,7 +82,7 @@ discard block |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
163 | 163 | { |
164 | 164 | array_walk( |
165 | 165 | $headers, |
166 | - function ($value) { |
|
166 | + function($value) { |
|
167 | 167 | $this->headerNotExists($value); |
168 | 168 | } |
169 | 169 | ); |
@@ -30,7 +30,7 @@ discard block |
||
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 |
||
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 | ); |
@@ -14,7 +14,7 @@ |
||
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 | ); |