@@ -44,7 +44,7 @@ |
||
44 | 44 | |
45 | 45 | public function testMatchReturnsDefaultNotFound() |
46 | 46 | { |
47 | - $return= $this->matcher->match('/blogo'); |
|
47 | + $return = $this->matcher->match('/blogo'); |
|
48 | 48 | |
49 | 49 | $this->assertEquals( |
50 | 50 | [ |
@@ -28,7 +28,7 @@ discard block |
||
28 | 28 | $regex = $this->createRegex($route); |
29 | 29 | |
30 | 30 | if (preg_match('#^'.$regex.'$#', $path, $matches)) { |
31 | - $params = array_filter($matches, function ($key) { |
|
31 | + $params = array_filter($matches, function($key) { |
|
32 | 32 | return !is_int($key); |
33 | 33 | }, ARRAY_FILTER_USE_KEY); |
34 | 34 | return [ |
@@ -46,7 +46,7 @@ discard block |
||
46 | 46 | $reqs = $route->getRequirements(); |
47 | 47 | $regex = preg_replace_callback( |
48 | 48 | '/{(\w+)}/', |
49 | - function ($matches) use ($reqs) { |
|
49 | + function($matches) use ($reqs) { |
|
50 | 50 | $req = $reqs[$matches[1]] ?? '.+'; |
51 | 51 | return "(?<{$matches[1]}>{$req})"; |
52 | 52 | }, |