@@ -146,8 +146,8 @@ |
||
146 | 146 | */ |
147 | 147 | protected function registerModuleManager() |
148 | 148 | { |
149 | - $this->manager = new Manager($this->getContext()); |
|
150 | - $this->manager->registerModule(); |
|
149 | + $this->manager = new Manager($this->getContext()); |
|
150 | + $this->manager->registerModule(); |
|
151 | 151 | } |
152 | 152 | |
153 | 153 |
@@ -99,17 +99,17 @@ discard block |
||
99 | 99 | } |
100 | 100 | if (!$this->config->has('app.import')) { |
101 | 101 | $this->config->set('app.import', [ |
102 | - 0 => \constant('NEBULA_APP').'/' .'share', |
|
102 | + 0 => \constant('NEBULA_APP').'/'.'share', |
|
103 | 103 | ]); |
104 | 104 | } |
105 | 105 | if (!$this->config->has('app.resource')) { |
106 | 106 | $this->config->set('app.resource', [ |
107 | - 0 => \constant('NEBULA_APP').'/' .'resource', |
|
107 | + 0 => \constant('NEBULA_APP').'/'.'resource', |
|
108 | 108 | ]); |
109 | 109 | } |
110 | 110 | if (!$this->config->has('app.module.scan-path')) { |
111 | 111 | $this->config->set('app.module.scan-path', [ |
112 | - 0 => \constant('NEBULA_APP').'/' .'modules', |
|
112 | + 0 => \constant('NEBULA_APP').'/'.'modules', |
|
113 | 113 | ]); |
114 | 114 | } |
115 | 115 | } |
@@ -186,7 +186,7 @@ discard block |
||
186 | 186 | */ |
187 | 187 | public function run() |
188 | 188 | { |
189 | - $className = $this->config->get('app.application', Application::class); |
|
189 | + $className = $this->config->get('app.application', Application::class); |
|
190 | 190 | $this->application = Runnable::newClassInstance($className); |
191 | 191 | $this->application->setContext($this); |
192 | 192 | $this->application->setPath($this->path); |
@@ -117,7 +117,7 @@ discard block |
||
117 | 117 | public function registerModule() |
118 | 118 | { |
119 | 119 | $scan = $this->getContext()->getConfig()->get('app.module.scan-path', []); |
120 | - $cache = $this->getContext()->getDataPath() .'/module-cache'; |
|
120 | + $cache = $this->getContext()->getDataPath().'/module-cache'; |
|
121 | 121 | FileSystem::makes($cache); |
122 | 122 | foreach (Builder::scan($scan, $cache) as $module) { |
123 | 123 | $this->finder->add($module->getName(), $module->getVersion()); |
@@ -133,7 +133,7 @@ discard block |
||
133 | 133 | * @param string $name |
134 | 134 | * @return Module|null |
135 | 135 | */ |
136 | - public function find(string $name):?Module { |
|
136 | + public function find(string $name): ?Module { |
|
137 | 137 | $fullName = $this->finder->getFullName($name); |
138 | 138 | return $this->module[$fullName] ?? null; |
139 | 139 | } |