@@ -34,7 +34,7 @@ |
||
34 | 34 | ->beforeNormalization() |
35 | 35 | ->ifString() |
36 | 36 | ->then( |
37 | - function ($v) { |
|
37 | + function($v) { |
|
38 | 38 | return [$v]; |
39 | 39 | } |
40 | 40 | ) |
@@ -90,7 +90,7 @@ |
||
90 | 90 | $router, |
91 | 91 | $routerController |
92 | 92 | ); |
93 | - $defaults = [ |
|
93 | + $defaults = [ |
|
94 | 94 | '_controller' => $controllerKey, |
95 | 95 | RequestMeta::ATTRIBUTE_URI => $resource, |
96 | 96 | RequestMeta::ATTRIBUTE_PATH => $pathItem->getPath(), |
@@ -219,7 +219,7 @@ discard block |
||
219 | 219 | ->willReturn([ |
220 | 220 | new Path( |
221 | 221 | '/a', |
222 | - [new Operation('/a:get', '/a', 'get'), new Operation($expected, '/a', 'post'),] |
|
222 | + [new Operation('/a:get', '/a', 'get'), new Operation($expected, '/a', 'post'), ] |
|
223 | 223 | ), |
224 | 224 | new Path('/b', [new Operation('/b:get', '/b', 'get')]), |
225 | 225 | ]); |
@@ -303,7 +303,7 @@ discard block |
||
303 | 303 | ->expects($this->atLeast(1)) |
304 | 304 | ->method('getExtension') |
305 | 305 | ->willReturnCallback( |
306 | - function (string $name) use ($diKey) { |
|
306 | + function(string $name) use ($diKey) { |
|
307 | 307 | return $name == 'router-controller' ? $diKey : null; |
308 | 308 | } |
309 | 309 | ); |
@@ -331,7 +331,7 @@ discard block |
||
331 | 331 | ->expects($this->atLeast(1)) |
332 | 332 | ->method('getExtension') |
333 | 333 | ->willReturnCallback( |
334 | - function (string $name) use ($router) { |
|
334 | + function(string $name) use ($router) { |
|
335 | 335 | return $name == 'router' ? $router : null; |
336 | 336 | } |
337 | 337 | ); |
@@ -374,13 +374,13 @@ discard block |
||
374 | 374 | public function routeCollectionWillContainPathFromDescription() |
375 | 375 | { |
376 | 376 | $paths = [ |
377 | - new Path('/a', [new Operation('/a:get', '/a', 'get'),]), |
|
378 | - new Path('/a/b', [new Operation('/a/b:get', '/a/b', 'get'),]), |
|
377 | + new Path('/a', [new Operation('/a:get', '/a', 'get'), ]), |
|
378 | + new Path('/a/b', [new Operation('/a/b:get', '/a/b', 'get'), ]), |
|
379 | 379 | new Path('/a/b/c', [new Operation('/a/b/c:get', '/a/b/c', 'get')]), |
380 | 380 | new Path('/d/f/g', [new Operation('/d/f/g:get', '/d/f/g', 'get')]), |
381 | 381 | new Path('/1/2/3', [new Operation('/1/2/3:get', '/1/2/3', 'get')]), |
382 | 382 | new Path('/foo/{bar}/{blah}', [new Operation('/foo/{bar}/{blah}:get', '/foo/{bar}/{blah}', 'get')]), |
383 | - new Path('/z', [new Operation('/z:get', '/z', 'get'),]), |
|
383 | + new Path('/z', [new Operation('/z:get', '/z', 'get'), ]), |
|
384 | 384 | ]; |
385 | 385 | |
386 | 386 | $this->decriptionMock |
@@ -391,7 +391,7 @@ discard block |
||
391 | 391 | $routes = $this->loader->load(self::DOCUMENT_PATH); |
392 | 392 | |
393 | 393 | $descriptionPaths = array_map( |
394 | - function (Path $path) { |
|
394 | + function(Path $path) { |
|
395 | 395 | return $path->getPath(); |
396 | 396 | }, |
397 | 397 | $paths |
@@ -399,7 +399,7 @@ discard block |
||
399 | 399 | sort($descriptionPaths); |
400 | 400 | |
401 | 401 | $routePaths = array_map( |
402 | - function (Route $route) { |
|
402 | + function(Route $route) { |
|
403 | 403 | return $route->getPath(); |
404 | 404 | }, |
405 | 405 | $routes->getIterator()->getArrayCopy() |
@@ -170,7 +170,7 @@ discard block |
||
170 | 170 | ->expects($this->once()) |
171 | 171 | ->method('assemble') |
172 | 172 | ->willReturnCallback( |
173 | - function ( |
|
173 | + function( |
|
174 | 174 | Operation $operation, |
175 | 175 | array $query, |
176 | 176 | array $attributes, |
@@ -213,7 +213,7 @@ discard block |
||
213 | 213 | ->expects($this->once()) |
214 | 214 | ->method('assemble') |
215 | 215 | ->willReturnCallback( |
216 | - function ( |
|
216 | + function( |
|
217 | 217 | Operation $operation, |
218 | 218 | array $query, |
219 | 219 | array $attributes, |
@@ -231,7 +231,7 @@ discard block |
||
231 | 231 | ->method('hydrate') |
232 | 232 | ->with($body, $this->isInstanceOf(Schema::class)) |
233 | 233 | ->willReturnCallback( |
234 | - function () use ($dto) { |
|
234 | + function() use ($dto) { |
|
235 | 235 | return $dto; |
236 | 236 | } |
237 | 237 | ); |
@@ -37,7 +37,7 @@ |
||
37 | 37 | */ |
38 | 38 | public function getGetDataAndContentFromException() |
39 | 39 | { |
40 | - $data = (object)[ |
|
40 | + $data = (object)[ |
|
41 | 41 | 'message' => 'Reason', |
42 | 42 | 'extra' => 'foo', |
43 | 43 | ]; |