@@ -49,7 +49,7 @@ |
||
49 | 49 | */ |
50 | 50 | protected function getParams(Route $route): array |
51 | 51 | { |
52 | - return array_filter($route->getMatchesParams(), function ($name) { |
|
52 | + return array_filter($route->getMatchesParams(), function($name) { |
|
53 | 53 | return $name[0] !== '_'; |
54 | 54 | }, ARRAY_FILTER_USE_KEY); |
55 | 55 | } |
@@ -18,13 +18,13 @@ |
||
18 | 18 | throw new \BadMethodCallException('Not found controller name for dynamic controller point'); |
19 | 19 | } |
20 | 20 | |
21 | - return $this->prefix . $this->normalizeClassFromUrl($matches['_controller']); |
|
21 | + return $this->prefix.$this->normalizeClassFromUrl($matches['_controller']); |
|
22 | 22 | } |
23 | 23 | |
24 | 24 | protected function normalizeClassFromUrl(string $class) : string |
25 | 25 | { |
26 | - return array_reduce(explode('-', $class), function ($prev, $item) { |
|
27 | - return $prev . ucfirst($item); |
|
26 | + return array_reduce(explode('-', $class), function($prev, $item) { |
|
27 | + return $prev.ucfirst($item); |
|
28 | 28 | }); |
29 | 29 | } |
30 | 30 |