@@ -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 | |
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(); |
@@ -49,7 +49,7 @@ |
||
49 | 49 | } |
50 | 50 | |
51 | 51 | foreach ($this->module->getOrdered($this->option('direction')) as $module) { |
52 | - $this->line('Running for module: <info>' . $module->getName() . '</info>'); |
|
52 | + $this->line('Running for module: <info>'.$module->getName().'</info>'); |
|
53 | 53 | $this->migrateStatus($module); |
54 | 54 | } |
55 | 55 |
@@ -77,10 +77,10 @@ discard block |
||
77 | 77 | |
78 | 78 | protected function getEventName(Module $module) |
79 | 79 | { |
80 | - $namespace = $this->laravel['modules']->config('namespace') . "\\" . $module->getStudlyName(); |
|
80 | + $namespace = $this->laravel['modules']->config('namespace')."\\".$module->getStudlyName(); |
|
81 | 81 | $eventPath = GenerateConfigReader::read('event'); |
82 | 82 | |
83 | - $eventName = $namespace . "\\" . $eventPath->getPath() . "\\" . $this->option('event'); |
|
83 | + $eventName = $namespace."\\".$eventPath->getPath()."\\".$this->option('event'); |
|
84 | 84 | |
85 | 85 | return str_replace('/', '\\', $eventName); |
86 | 86 | } |
@@ -91,7 +91,7 @@ discard block |
||
91 | 91 | |
92 | 92 | $listenerPath = GenerateConfigReader::read('listener'); |
93 | 93 | |
94 | - return $path . $listenerPath->getPath() . '/' . $this->getFileName() . '.php'; |
|
94 | + return $path.$listenerPath->getPath().'/'.$this->getFileName().'.php'; |
|
95 | 95 | } |
96 | 96 | |
97 | 97 | /** |
@@ -18,10 +18,10 @@ |
||
18 | 18 | // This checks if we are running on a Laravel Vapor managed instance |
19 | 19 | // and sets the path to a writable one (services path is not on a writable storage in Vapor). |
20 | 20 | if (!is_null(env('VAPOR_MAINTENANCE_MODE', null))) { |
21 | - return Str::replaceLast('config.php', $this->getSnakeName() . '_module.php', $this->app->getCachedConfigPath()); |
|
21 | + return Str::replaceLast('config.php', $this->getSnakeName().'_module.php', $this->app->getCachedConfigPath()); |
|
22 | 22 | } |
23 | 23 | |
24 | - return Str::replaceLast('services.php', $this->getSnakeName() . '_module.php', $this->app->getCachedServicesPath()); |
|
24 | + return Str::replaceLast('services.php', $this->getSnakeName().'_module.php', $this->app->getCachedServicesPath()); |
|
25 | 25 | } |
26 | 26 | |
27 | 27 | /** |
@@ -124,8 +124,7 @@ |
||
124 | 124 | |
125 | 125 | foreach (config('modules.commands', $this->commands) as $command) { |
126 | 126 | $commands[] = Str::contains($command, $this->consoleNamespace) ? |
127 | - $command : |
|
128 | - $this->consoleNamespace . "\\"; |
|
127 | + $command : $this->consoleNamespace."\\"; |
|
129 | 128 | } |
130 | 129 | |
131 | 130 | return $commands; |