@@ -49,7 +49,7 @@ discard block |
||
49 | 49 | foreach ($this->application->getModules() as $name => $module) { |
50 | 50 | if ($module->getStatus() === Module::REACHABLE) { |
51 | 51 | $this->loadModuleRoute($module); |
52 | - $this->application->debug()->debug('reachable # ' . $module->getFullName()); |
|
52 | + $this->application->debug()->debug('reachable # '.$module->getFullName()); |
|
53 | 53 | } |
54 | 54 | } |
55 | 55 | } |
@@ -83,8 +83,8 @@ discard block |
||
83 | 83 | */ |
84 | 84 | protected function loadRouteGroup(Module $module, string $groupName) |
85 | 85 | { |
86 | - $group = $groupName === 'default' ? '' : '-' . $groupName; |
|
87 | - if ($path = $module->getResource()->getConfigResourcePath('config/route' . $group)) { |
|
86 | + $group = $groupName === 'default' ? '' : '-'.$groupName; |
|
87 | + if ($path = $module->getResource()->getConfigResourcePath('config/route'.$group)) { |
|
88 | 88 | $routeConfig = Config::loadConfig($path, [ |
89 | 89 | 'module' => $module->getName(), |
90 | 90 | 'group' => $groupName, |
@@ -92,7 +92,7 @@ discard block |
||
92 | 92 | 'config' => $module->getConfig(), |
93 | 93 | ]); |
94 | 94 | if ($routeConfig !== null) { |
95 | - $prefix = $module->getConfig('route-prefix.' . $groupName, ''); |
|
95 | + $prefix = $module->getConfig('route-prefix.'.$groupName, ''); |
|
96 | 96 | $this->loadRouteConfig($module, $prefix, $groupName, $routeConfig); |
97 | 97 | } |
98 | 98 | } |
@@ -121,9 +121,9 @@ discard block |
||
121 | 121 | $uri = $config['uri'] ?? '/'; |
122 | 122 | $anti = array_key_exists('anti-prefix', $config) && $config['anti-prefix']; |
123 | 123 | if ($anti) { |
124 | - $uri = '/' . trim($uri, '/'); |
|
124 | + $uri = '/'.trim($uri, '/'); |
|
125 | 125 | } else { |
126 | - $uri = '/' . trim($prefix . $uri, '/'); |
|
126 | + $uri = '/'.trim($prefix.$uri, '/'); |
|
127 | 127 | } |
128 | 128 | $this->application->request($method, $exname, $uri, $attributes); |
129 | 129 | } |
@@ -22,7 +22,7 @@ discard block |
||
22 | 22 | { |
23 | 23 | $this->loadVendorIfExist(); |
24 | 24 | $this->loadShareLibrary(); |
25 | - $this->application->debug()->debug('loaded - ' . $this->module->getFullName()); |
|
25 | + $this->application->debug()->debug('loaded - '.$this->module->getFullName()); |
|
26 | 26 | } |
27 | 27 | |
28 | 28 | /** |
@@ -33,7 +33,7 @@ discard block |
||
33 | 33 | public function toActive() |
34 | 34 | { |
35 | 35 | $this->loadConfig(); |
36 | - $this->application->debug()->debug('active = ' . $this->module->getFullName()); |
|
36 | + $this->application->debug()->debug('active = '.$this->module->getFullName()); |
|
37 | 37 | } |
38 | 38 | |
39 | 39 | /** |
@@ -44,7 +44,7 @@ discard block |
||
44 | 44 | $this->checkRequirements(); |
45 | 45 | $this->loadPrivateLibrary(); |
46 | 46 | $this->application->setRunning($this->module); |
47 | - $this->application->debug()->debug('run + ' . $this->module->getFullName()); |
|
47 | + $this->application->debug()->debug('run + '.$this->module->getFullName()); |
|
48 | 48 | } |
49 | 49 | |
50 | 50 | /** |
@@ -91,7 +91,7 @@ discard block |
||
91 | 91 | */ |
92 | 92 | public function loadVendorIfExist() |
93 | 93 | { |
94 | - $vendorAutoload = $this->module->getPath() . '/vendor/autoload.php'; |
|
94 | + $vendorAutoload = $this->module->getPath().'/vendor/autoload.php'; |
|
95 | 95 | if (FileSystem::exist($vendorAutoload)) { |
96 | 96 | Loader::requireOnce($vendorAutoload); |
97 | 97 | } |