@@ -205,7 +205,7 @@ discard block |
||
205 | 205 | { |
206 | 206 | $lowerName = $this->getLowerName(); |
207 | 207 | |
208 | - $langPath = $this->getPath() . '/Resources/lang'; |
|
208 | + $langPath = $this->getPath().'/Resources/lang'; |
|
209 | 209 | |
210 | 210 | if (is_dir($langPath)) { |
211 | 211 | $this->loadTranslationsFrom($langPath, $lowerName); |
@@ -225,8 +225,8 @@ discard block |
||
225 | 225 | $file = self::MODULE_JSON_FILE; |
226 | 226 | } |
227 | 227 | |
228 | - return Arr::get($this->moduleJson, $file, function () use ($file) { |
|
229 | - $path = $this->getPath() . DIRECTORY_SEPARATOR . $file; |
|
228 | + return Arr::get($this->moduleJson, $file, function() use ($file) { |
|
229 | + $path = $this->getPath().DIRECTORY_SEPARATOR.$file; |
|
230 | 230 | return $this->moduleJson[$file] = new Json($path, $this->files); |
231 | 231 | }); |
232 | 232 | } |
@@ -280,7 +280,7 @@ discard block |
||
280 | 280 | */ |
281 | 281 | protected function fireEvent($event): void |
282 | 282 | { |
283 | - $this->app['events']->dispatch(sprintf('modules.%s.' . $event, $this->getLowerName()), [$this]); |
|
283 | + $this->app['events']->dispatch(sprintf('modules.%s.'.$event, $this->getLowerName()), [$this]); |
|
284 | 284 | } |
285 | 285 | /** |
286 | 286 | * Register the aliases from this module. |
@@ -305,7 +305,7 @@ discard block |
||
305 | 305 | protected function registerFiles(): void |
306 | 306 | { |
307 | 307 | foreach ($this->get('files', []) as $file) { |
308 | - include $this->path . '/' . $file; |
|
308 | + include $this->path.'/'.$file; |
|
309 | 309 | } |
310 | 310 | } |
311 | 311 | |
@@ -410,7 +410,7 @@ discard block |
||
410 | 410 | */ |
411 | 411 | public function getExtraPath(string $path) : string |
412 | 412 | { |
413 | - return $this->getPath() . '/' . $path; |
|
413 | + return $this->getPath().'/'.$path; |
|
414 | 414 | } |
415 | 415 | |
416 | 416 | /** |
@@ -32,10 +32,10 @@ discard block |
||
32 | 32 | */ |
33 | 33 | public function setupStubPath() |
34 | 34 | { |
35 | - $path = $this->app['config']->get('modules.stubs.path') ?? __DIR__ . '/Commands/stubs'; |
|
35 | + $path = $this->app['config']->get('modules.stubs.path') ?? __DIR__.'/Commands/stubs'; |
|
36 | 36 | Stub::setBasePath($path); |
37 | 37 | |
38 | - $this->app->booted(function ($app) { |
|
38 | + $this->app->booted(function($app) { |
|
39 | 39 | /** @var RepositoryInterface $moduleRepository */ |
40 | 40 | $moduleRepository = $app[RepositoryInterface::class]; |
41 | 41 | if ($moduleRepository->config('stubs.enabled') === true) { |
@@ -49,14 +49,14 @@ discard block |
||
49 | 49 | */ |
50 | 50 | protected function registerServices() |
51 | 51 | { |
52 | - $this->app->singleton(Contracts\RepositoryInterface::class, function ($app) { |
|
52 | + $this->app->singleton(Contracts\RepositoryInterface::class, function($app) { |
|
53 | 53 | $path = $app['config']->get('modules.paths.modules'); |
54 | 54 | $path = ($path[0] === '/') ? $path : base_path($path); |
55 | 55 | return new Laravel\LaravelFileRepository($app, $path); |
56 | 56 | }); |
57 | - $this->app->singleton(Contracts\ActivatorInterface::class, function ($app) { |
|
57 | + $this->app->singleton(Contracts\ActivatorInterface::class, function($app) { |
|
58 | 58 | $activator = $app['config']->get('modules.activator'); |
59 | - $class = $app['config']->get('modules.activators.' . $activator)['class']; |
|
59 | + $class = $app['config']->get('modules.activators.'.$activator)['class']; |
|
60 | 60 | |
61 | 61 | if ($class === null) { |
62 | 62 | throw InvalidActivatorClass::missingConfig(); |