@@ -41,7 +41,7 @@ discard block |
||
41 | 41 | */ |
42 | 42 | public static function middleware(array $stack) |
43 | 43 | { |
44 | - return array_map(function ($callable) { |
|
44 | + return array_map(function($callable) { |
|
45 | 45 | $callable = is_string($callable) ? static::lazy($callable) : $callable; |
46 | 46 | return $callable; |
47 | 47 | }, $stack); |
@@ -56,7 +56,7 @@ discard block |
||
56 | 56 | */ |
57 | 57 | public static function lazy($className) |
58 | 58 | { |
59 | - return function (RequestInterface $request, callable $next) use ($className) { |
|
59 | + return function(RequestInterface $request, callable $next) use ($className) { |
|
60 | 60 | $class = new $className(); |
61 | 61 | return $class($request, $next); |
62 | 62 | }; |
@@ -70,7 +70,7 @@ discard block |
||
70 | 70 | public static function router(RequestInterface $request, $path = null) |
71 | 71 | { |
72 | 72 | $path = $path ?: __DIR__ . "/../app/routes.php"; |
73 | - $dispatcher = \FastRoute\simpleDispatcher(function (RouteCollector $r) use ($path) { |
|
73 | + $dispatcher = \FastRoute\simpleDispatcher(function(RouteCollector $r) use ($path) { |
|
74 | 74 | include $path; |
75 | 75 | }); |
76 | 76 | $match = $dispatcher->dispatch($request->getMethod(), $request->getUri()->getPath()); |