@@ -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; |
@@ -59,7 +59,7 @@ discard block |
||
59 | 59 | } |
60 | 60 | |
61 | 61 | /** |
62 | - * @return mixed |
|
62 | + * @return string |
|
63 | 63 | */ |
64 | 64 | protected function getTemplateContents() |
65 | 65 | { |
@@ -78,7 +78,7 @@ discard block |
||
78 | 78 | } |
79 | 79 | |
80 | 80 | /** |
81 | - * @return mixed |
|
81 | + * @return string |
|
82 | 82 | */ |
83 | 83 | protected function getDestinationFilePath() |
84 | 84 | { |
@@ -90,7 +90,7 @@ discard block |
||
90 | 90 | } |
91 | 91 | |
92 | 92 | /** |
93 | - * @return mixed|string |
|
93 | + * @return string |
|
94 | 94 | */ |
95 | 95 | private function getModelName() |
96 | 96 | { |
@@ -69,7 +69,7 @@ discard block |
||
69 | 69 | |
70 | 70 | $factoryPath = GenerateConfigReader::read('factory'); |
71 | 71 | |
72 | - return $path . $factoryPath->getPath() . '/' . $this->getFileName(); |
|
72 | + return $path.$factoryPath->getPath().'/'.$this->getFileName(); |
|
73 | 73 | } |
74 | 74 | |
75 | 75 | /** |
@@ -77,7 +77,7 @@ discard block |
||
77 | 77 | */ |
78 | 78 | private function getFileName() |
79 | 79 | { |
80 | - return Str::studly($this->argument('name')) . 'Factory.php'; |
|
80 | + return Str::studly($this->argument('name')).'Factory.php'; |
|
81 | 81 | } |
82 | 82 | |
83 | 83 | /** |
@@ -107,6 +107,6 @@ discard block |
||
107 | 107 | */ |
108 | 108 | public function getModelNamespace(): string |
109 | 109 | { |
110 | - return $this->laravel['modules']->config('namespace') . '\\' . $this->laravel['modules']->findOrFail($this->getModuleName()) . '\\' . $this->laravel['modules']->config('paths.generator.model.path', 'Entities'); |
|
110 | + return $this->laravel['modules']->config('namespace').'\\'.$this->laravel['modules']->findOrFail($this->getModuleName()).'\\'.$this->laravel['modules']->config('paths.generator.model.path', 'Entities'); |
|
111 | 111 | } |
112 | 112 | } |
@@ -26,7 +26,7 @@ |
||
26 | 26 | |
27 | 27 | 'stubs' => [ |
28 | 28 | 'enabled' => false, |
29 | - 'path' => base_path() . '/vendor/Nwidart/laravel-modules/src/Commands/stubs', |
|
29 | + 'path' => base_path().'/vendor/Nwidart/laravel-modules/src/Commands/stubs', |
|
30 | 30 | 'files' => [ |
31 | 31 | 'routes/lumen-api' => 'Routes/api.php', |
32 | 32 | 'scaffold/config' => 'Config/config.php', |
@@ -37,7 +37,7 @@ |
||
37 | 37 | protected function registerNamespaces() |
38 | 38 | { |
39 | 39 | $configPath = (app() instanceof \Illuminate\Foundation\Application) ? 'config.php' : 'lumen-config.php'; |
40 | - $configPath = __DIR__ . "/../config/" . $configPath; |
|
40 | + $configPath = __DIR__."/../config/".$configPath; |
|
41 | 41 | |
42 | 42 | $this->mergeConfigFrom($configPath, 'modules'); |
43 | 43 | $this->publishes([ |
@@ -89,7 +89,7 @@ discard block |
||
89 | 89 | |
90 | 90 | $generatorPath = GenerateConfigReader::read('provider'); |
91 | 91 | |
92 | - return $path . $generatorPath->getPath() . '/' . $this->getFileName() . '.php'; |
|
92 | + return $path.$generatorPath->getPath().'/'.$this->getFileName().'.php'; |
|
93 | 93 | } |
94 | 94 | |
95 | 95 | /** |
@@ -97,7 +97,7 @@ discard block |
||
97 | 97 | */ |
98 | 98 | protected function getWebRoutesPath() |
99 | 99 | { |
100 | - return '/' . $this->laravel['modules']->config('stubs.files.routes/web', 'Routes/web.php'); |
|
100 | + return '/'.$this->laravel['modules']->config('stubs.files.routes/web', 'Routes/web.php'); |
|
101 | 101 | } |
102 | 102 | |
103 | 103 | /** |
@@ -106,7 +106,7 @@ discard block |
||
106 | 106 | protected function getApiRoutesPath() |
107 | 107 | { |
108 | 108 | $routeStubPath = $this->isLaravelApplication() ? 'api' : 'lumen-api'; |
109 | - return '/' . $this->laravel['modules']->config("stubs.files.routes/$routeStubPath", 'Routes/api.php'); |
|
109 | + return '/'.$this->laravel['modules']->config("stubs.files.routes/$routeStubPath", 'Routes/api.php'); |
|
110 | 110 | } |
111 | 111 | |
112 | 112 | public function getDefaultNamespace() : string |