@@ -203,7 +203,7 @@ discard block |
||
| 203 | 203 | */ |
| 204 | 204 | protected function loadRouteGroup(string $groupName) |
| 205 | 205 | { |
| 206 | - $group = $groupName === 'default' ? '': '-'. $groupName; |
|
| 206 | + $group = $groupName === 'default' ? '' : '-'.$groupName; |
|
| 207 | 207 | if ($path = $this->module->getResource()->getConfigResourcePath('config/route'.$group)) { |
| 208 | 208 | $routeConfig = Config::loadConfig($path, [ |
| 209 | 209 | 'module' => $this->module->getName(), |
@@ -229,7 +229,7 @@ discard block |
||
| 229 | 229 | */ |
| 230 | 230 | protected function loadRouteConfig(string $prefix, string $groupName, array $routeConfig) |
| 231 | 231 | { |
| 232 | - $module = $this->module->getFullName(); |
|
| 232 | + $module = $this->module->getFullName(); |
|
| 233 | 233 | foreach ($routeConfig as $name => $config) { |
| 234 | 234 | $exname = $this->application->getRouteName($name, $module, $groupName); |
| 235 | 235 | $method = $config['method'] ?? []; |
@@ -243,7 +243,7 @@ discard block |
||
| 243 | 243 | if ($anti) { |
| 244 | 244 | $uri = '/'.trim($uri, '/'); |
| 245 | 245 | } else { |
| 246 | - $uri = '/'.trim($prefix . $uri, '/'); |
|
| 246 | + $uri = '/'.trim($prefix.$uri, '/'); |
|
| 247 | 247 | } |
| 248 | 248 | $this->application->request($method, $exname, $uri, $attributes); |
| 249 | 249 | } |