@@ -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 |
@@ -53,7 +53,7 @@ |
||
53 | 53 | */ |
54 | 54 | protected function getParams(Route $route): array |
55 | 55 | { |
56 | - return array_filter($route->getMatchesParams(), function ($name) { |
|
56 | + return array_filter($route->getMatchesParams(), function($name) { |
|
57 | 57 | return $name[0] !== '_'; |
58 | 58 | }, ARRAY_FILTER_USE_KEY); |
59 | 59 | } |