Completed
Push — master ( 71ad39...a39525 )
by Alexander
01:59
created
src/Router.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -70,12 +70,12 @@  discard block
 block discarded – undo
70 70
         }
71 71
 
72 72
         // TODO cache of valid static routes, maybe with a try, catch, finally?
73
-        return new Route($url, function (Request $request) {
73
+        return new Route($url, function(Request $request) {
74 74
             return response\Page::fromRequest($request);
75 75
         });
76 76
     }
77 77
 
78
-    private static function matchDynamicRoute(string $url, string $method = Request::GET): ?RouteInterface
78
+    private static function matchDynamicRoute(string $url, string $method = Request::GET): ? RouteInterface
79 79
     {
80 80
         foreach (self::$routes[$method] as $route => $cb) {
81 81
             if ($route[0] !== substr($route, -1) || $route[0] !== static::$DELIMITER) {
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
 
89 89
             $parameters = array_filter(
90 90
                 $matches,
91
-                function ($v) {
91
+                function($v) {
92 92
                     return !is_int($v);
93 93
                 },
94 94
                 \ARRAY_FILTER_USE_KEY
Please login to merge, or discard this patch.