@@ -116,7 +116,7 @@ |
||
116 | 116 | */ |
117 | 117 | public function buildRoutes(array $routes): void |
118 | 118 | { |
119 | - $resource = static function () use ($routes): RouteCollection { |
|
119 | + $resource = static function() use ($routes): RouteCollection { |
|
120 | 120 | $sfCollection = new RouteCollection(); |
121 | 121 | |
122 | 122 | foreach ($routes as $route) { |
@@ -121,7 +121,7 @@ |
||
121 | 121 | $route['pattern'], |
122 | 122 | $route['methods'], |
123 | 123 | new CallableRequestHandler( |
124 | - function (ServerRequestInterface $request): ResponseInterface { |
|
124 | + function(ServerRequestInterface $request): ResponseInterface { |
|
125 | 125 | return (new ResponseFactory())->createJsonResponse(200, [ |
126 | 126 | 'status' => 'ok', |
127 | 127 | 'method' => $request->getMethod(), |
@@ -38,7 +38,7 @@ |
||
38 | 38 | ]; |
39 | 39 | |
40 | 40 | // This generates routes for router and matches them. |
41 | -$routerGenerator = static function (array $config, CaseInterface $strategy, string $router) { |
|
41 | +$routerGenerator = static function(array $config, CaseInterface $strategy, string $router) { |
|
42 | 42 | [$type, $isolated, $nbRoutes, $nbHosts, $cache] = $config; |
43 | 43 | |
44 | 44 | $generator = new RouteGenerator($isolated, $nbRoutes, $nbHosts); |