@@ -55,8 +55,8 @@ discard block |
||
55 | 55 | $rpos = \strrpos($name, ':'); |
56 | 56 | if ($rpos > 0) { |
57 | 57 | $module = substr($name, 0, $rpos); |
58 | - $name = \substr($name, $rpos+1); |
|
59 | - $moduleFull = $this->getFullName($module); |
|
58 | + $name = \substr($name, $rpos + 1); |
|
59 | + $moduleFull = $this->getFullName($module); |
|
60 | 60 | return [$moduleFull, $name]; |
61 | 61 | } |
62 | 62 | if ($rpos === 0) { |
@@ -77,7 +77,7 @@ discard block |
||
77 | 77 | if (\array_key_exists($version, $this->knownsFullName[$name])) { |
78 | 78 | return $this->knownsFullName[$name][$version]; |
79 | 79 | } |
80 | - return $hasVersion?$name.':'.$version:end($this->knownsFullName[$name]); |
|
80 | + return $hasVersion ? $name.':'.$version : end($this->knownsFullName[$name]); |
|
81 | 81 | } |
82 | 82 | |
83 | 83 | protected function getLikeName(string $name):string |
@@ -46,7 +46,7 @@ discard block |
||
46 | 46 | */ |
47 | 47 | public function add(?string $group = null, string $name, RouteMatcher $router) |
48 | 48 | { |
49 | - $group = $group ? $this->finder->getFullName($group) : $this->default; |
|
49 | + $group = $group ? $this->finder->getFullName($group) : $this->default; |
|
50 | 50 | if (\array_key_exists($group, $this->routes)) { |
51 | 51 | $this->routes[$group]->add($name, $router); |
52 | 52 | } else { |
@@ -60,7 +60,7 @@ discard block |
||
60 | 60 | * @param string $name |
61 | 61 | * @return RouteMatcher|null |
62 | 62 | */ |
63 | - public function find(string $name, ?string $default = null):?RouteMatcher |
|
63 | + public function find(string $name, ?string $default = null): ?RouteMatcher |
|
64 | 64 | { |
65 | 65 | list($group, $name) = $this->finder->info($name, $default ?? $this->default); |
66 | 66 | if (\array_key_exists($group, $this->routes)) { |