@@ -4,7 +4,7 @@ |
||
4 | 4 | |
5 | 5 | interface Router |
6 | 6 | { |
7 | - public static function match(string $url, string $method = Http::GET): ?Route; |
|
8 | - public static function getFallback(): ?Route; |
|
9 | - public static function getPageRoute(string $url): Route; |
|
7 | + public static function match(string $url, string $method = Http::GET): ?Route; |
|
8 | + public static function getFallback(): ?Route; |
|
9 | + public static function getPageRoute(string $url): Route; |
|
10 | 10 | } |
11 | 11 | \ No newline at end of file |
@@ -129,7 +129,7 @@ |
||
129 | 129 | public function response(): ?Response |
130 | 130 | { |
131 | 131 | $cbs = $this->middlewares; |
132 | - $call_eventual_route_at_end_of_chain = function (Request $request, Chain $chain): ?Response { |
|
132 | + $call_eventual_route_at_end_of_chain = function(Request $request, Chain $chain): ?Response { |
|
133 | 133 | $route = $request->route(); |
134 | 134 | if (is_null($route)) { |
135 | 135 | if (Environment::get('debug')) { |
@@ -108,7 +108,7 @@ discard block |
||
108 | 108 | |
109 | 109 | $parameters = array_filter( |
110 | 110 | $matches, |
111 | - function ($v) { |
|
111 | + function($v) { |
|
112 | 112 | return !is_int($v); |
113 | 113 | }, |
114 | 114 | \ARRAY_FILTER_USE_KEY |
@@ -131,7 +131,7 @@ discard block |
||
131 | 131 | $url = self::$aliases[$url] ?? $url; |
132 | 132 | return new Route( |
133 | 133 | $url, |
134 | - function (Request $request) { |
|
134 | + function(Request $request) { |
|
135 | 135 | $page = response\Page::fromRequest($request); |
136 | 136 | if ($page->isValid()) { |
137 | 137 | return $page; |