Passed
Push — master ( b8f6df...218d14 )
by Alexander
01:42
created
src/interfaces/Router.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -4,7 +4,7 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
src/Dispatch.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -129,7 +129,7 @@
 block discarded – undo
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')) {
Please login to merge, or discard this patch.
src/Router.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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;
Please login to merge, or discard this patch.