@@ -13,7 +13,7 @@ |
||
13 | 13 | */ |
14 | 14 | public function __invoke(RequestInterface $request, Route $route) |
15 | 15 | { |
16 | - $args = array_filter($route->getMatches(), function($name){ |
|
16 | + $args = array_filter($route->getMatches(), function($name) { |
|
17 | 17 | return strpos($name, '_') !== 0; |
18 | 18 | }, \ARRAY_FILTER_USE_KEY); |
19 | 19 |
@@ -33,6 +33,6 @@ |
||
33 | 33 | throw new \BadMethodCallException('Not found controller name for dynamic controller point'); |
34 | 34 | } |
35 | 35 | |
36 | - return $this->prefix . ucfirst($matches['_controller']); |
|
36 | + return $this->prefix.ucfirst($matches['_controller']); |
|
37 | 37 | } |
38 | 38 | } |
@@ -17,7 +17,7 @@ |
||
17 | 17 | { |
18 | 18 | $this->routeService = $routeService; |
19 | 19 | $this->routeNotFound = new Route('', function(){ |
20 | - return null; |
|
20 | + return null; |
|
21 | 21 | }); |
22 | 22 | } |
23 | 23 |
@@ -16,7 +16,7 @@ discard block |
||
16 | 16 | public function __construct(RouteService $routeService) |
17 | 17 | { |
18 | 18 | $this->routeService = $routeService; |
19 | - $this->routeNotFound = new Route('', function(){ |
|
19 | + $this->routeNotFound = new Route('', function() { |
|
20 | 20 | return null; |
21 | 21 | }); |
22 | 22 | } |
@@ -57,7 +57,7 @@ discard block |
||
57 | 57 | { |
58 | 58 | $regexp = $this->routeService->makeRegExp($route); |
59 | 59 | |
60 | - if (preg_match('~^' . $regexp . '$~Uiu', $pathUrl, $values)) { |
|
60 | + if (preg_match('~^'.$regexp.'$~Uiu', $pathUrl, $values)) { |
|
61 | 61 | $filterValues = array_filter(array_keys($values), 'is_string'); |
62 | 62 | $matches = array_intersect_key($values, array_flip($filterValues)); |
63 | 63 | return $route->setMatches($matches); |