@@ -58,7 +58,7 @@ discard block |
||
| 58 | 58 | $string = ''; |
| 59 | 59 | foreach ($pieces as $i => $piece) { |
| 60 | 60 | if ($i + 1 < count($pieces)) { |
| 61 | - $string .= strtolower($piece) . '_'; |
|
| 61 | + $string .= strtolower($piece).'_'; |
|
| 62 | 62 | } else { |
| 63 | 63 | $string .= Str::plural(strtolower($piece)); |
| 64 | 64 | } |
@@ -99,7 +99,7 @@ discard block |
||
| 99 | 99 | private function handleOptionalMigrationOption() |
| 100 | 100 | { |
| 101 | 101 | if ($this->option('migration') === true) { |
| 102 | - $migrationName = 'create_' . $this->createMigrationName() . '_table'; |
|
| 102 | + $migrationName = 'create_'.$this->createMigrationName().'_table'; |
|
| 103 | 103 | $this->call('module:make-migration', ['name' => $migrationName, 'module' => $this->argument('module')]); |
| 104 | 104 | } |
| 105 | 105 | } |
@@ -132,7 +132,7 @@ discard block |
||
| 132 | 132 | |
| 133 | 133 | $modelPath = GenerateConfigReader::read('model'); |
| 134 | 134 | |
| 135 | - return $path . $modelPath->getPath() . '/' . $this->getModelName() . '.php'; |
|
| 135 | + return $path.$modelPath->getPath().'/'.$this->getModelName().'.php'; |
|
| 136 | 136 | } |
| 137 | 137 | |
| 138 | 138 | /** |
@@ -44,7 +44,7 @@ |
||
| 44 | 44 | |
| 45 | 45 | $controllerPath = GenerateConfigReader::read('controller'); |
| 46 | 46 | |
| 47 | - return $path . $controllerPath->getPath() . '/' . $this->getControllerName() . '.php'; |
|
| 47 | + return $path.$controllerPath->getPath().'/'.$this->getControllerName().'.php'; |
|
| 48 | 48 | } |
| 49 | 49 | |
| 50 | 50 | /** |
@@ -30,7 +30,7 @@ |
||
| 30 | 30 | ]); |
| 31 | 31 | } |
| 32 | 32 | |
| 33 | - public function getInfo(): string|null |
|
| 33 | + public function getInfo(): string | null |
|
| 34 | 34 | { |
| 35 | 35 | return 'Publishing module config files ...'; |
| 36 | 36 | } |
@@ -26,7 +26,7 @@ discard block |
||
| 26 | 26 | { |
| 27 | 27 | $module = $this->getModuleModel($name); |
| 28 | 28 | |
| 29 | - $this->components->task("Publishing Migration <fg=cyan;options=bold>{$module->getName()}</> Module", function () use ($module) { |
|
| 29 | + $this->components->task("Publishing Migration <fg=cyan;options=bold>{$module->getName()}</> Module", function() use ($module) { |
|
| 30 | 30 | with(new MigrationPublisher(new Migrator($module, $this->getLaravel()))) |
| 31 | 31 | ->setRepository($this->laravel['modules']) |
| 32 | 32 | ->setConsole($this) |
@@ -34,7 +34,7 @@ discard block |
||
| 34 | 34 | }); |
| 35 | 35 | } |
| 36 | 36 | |
| 37 | - public function getInfo(): string|null |
|
| 37 | + public function getInfo(): string | null |
|
| 38 | 38 | { |
| 39 | 39 | return 'Publishing module migrations ...'; |
| 40 | 40 | } |
@@ -24,7 +24,7 @@ discard block |
||
| 24 | 24 | { |
| 25 | 25 | $module = $this->getModuleModel($name); |
| 26 | 26 | |
| 27 | - $this->components->task("Publishing Translations <fg=cyan;options=bold>{$module->getName()}</> Module", function () use ($module) { |
|
| 27 | + $this->components->task("Publishing Translations <fg=cyan;options=bold>{$module->getName()}</> Module", function() use ($module) { |
|
| 28 | 28 | with(new LangPublisher($module)) |
| 29 | 29 | ->setRepository($this->laravel['modules']) |
| 30 | 30 | ->setConsole($this) |
@@ -32,7 +32,7 @@ discard block |
||
| 32 | 32 | }); |
| 33 | 33 | } |
| 34 | 34 | |
| 35 | - public function getInfo(): string|null |
|
| 35 | + public function getInfo(): string | null |
|
| 36 | 36 | { |
| 37 | 37 | return 'Publishing module translations ...'; |
| 38 | 38 | } |
@@ -24,7 +24,7 @@ discard block |
||
| 24 | 24 | { |
| 25 | 25 | $module = $this->getModuleModel($name); |
| 26 | 26 | |
| 27 | - $this->components->task("Publishing Assets <fg=cyan;options=bold>{$module->getName()}</> Module", function () use ($module) { |
|
| 27 | + $this->components->task("Publishing Assets <fg=cyan;options=bold>{$module->getName()}</> Module", function() use ($module) { |
|
| 28 | 28 | with(new AssetPublisher($module)) |
| 29 | 29 | ->setRepository($this->laravel['modules']) |
| 30 | 30 | ->setConsole($this) |
@@ -33,7 +33,7 @@ discard block |
||
| 33 | 33 | |
| 34 | 34 | } |
| 35 | 35 | |
| 36 | - public function getInfo(): string|null |
|
| 36 | + public function getInfo(): string | null |
|
| 37 | 37 | { |
| 38 | 38 | return 'Publishing module asset files ...'; |
| 39 | 39 | } |
@@ -35,7 +35,7 @@ discard block |
||
| 35 | 35 | $path = $this->laravel['modules']->getModulePath($this->getModuleName()); |
| 36 | 36 | $factoryPath = GenerateConfigReader::read('views'); |
| 37 | 37 | |
| 38 | - return $path . $factoryPath->getPath() . '/' . $this->getFileName(); |
|
| 38 | + return $path.$factoryPath->getPath().'/'.$this->getFileName(); |
|
| 39 | 39 | } |
| 40 | 40 | |
| 41 | 41 | /** |
@@ -43,6 +43,6 @@ discard block |
||
| 43 | 43 | */ |
| 44 | 44 | private function getFileName(): string |
| 45 | 45 | { |
| 46 | - return Str::lower($this->argument('name')) . '.blade.php'; |
|
| 46 | + return Str::lower($this->argument('name')).'.blade.php'; |
|
| 47 | 47 | } |
| 48 | 48 | } |
@@ -80,7 +80,7 @@ discard block |
||
| 80 | 80 | 'NAMESPACE' => $this->getClassNamespace($module), |
| 81 | 81 | 'CLASS' => $this->getClass(), |
| 82 | 82 | 'LOWER_NAME' => $module->getLowerName(), |
| 83 | - 'COMPONENT_NAME' => 'components.' . Str::lower($this->argument('name')), |
|
| 83 | + 'COMPONENT_NAME' => 'components.'.Str::lower($this->argument('name')), |
|
| 84 | 84 | ]))->render(); |
| 85 | 85 | } |
| 86 | 86 | |
@@ -92,7 +92,7 @@ discard block |
||
| 92 | 92 | $path = $this->laravel['modules']->getModulePath($this->getModuleName()); |
| 93 | 93 | $factoryPath = GenerateConfigReader::read('component-class'); |
| 94 | 94 | |
| 95 | - return $path . $factoryPath->getPath() . '/' . $this->getFileName(); |
|
| 95 | + return $path.$factoryPath->getPath().'/'.$this->getFileName(); |
|
| 96 | 96 | } |
| 97 | 97 | |
| 98 | 98 | /** |
@@ -100,6 +100,6 @@ discard block |
||
| 100 | 100 | */ |
| 101 | 101 | private function getFileName() |
| 102 | 102 | { |
| 103 | - return Str::studly($this->argument('name')) . '.php'; |
|
| 103 | + return Str::studly($this->argument('name')).'.php'; |
|
| 104 | 104 | } |
| 105 | 105 | } |
@@ -87,7 +87,7 @@ discard block |
||
| 87 | 87 | |
| 88 | 88 | $generatorPath = GenerateConfigReader::read('provider'); |
| 89 | 89 | |
| 90 | - return $path . $generatorPath->getPath() . '/' . $this->getFileName() . '.php'; |
|
| 90 | + return $path.$generatorPath->getPath().'/'.$this->getFileName().'.php'; |
|
| 91 | 91 | } |
| 92 | 92 | |
| 93 | 93 | /** |
@@ -95,7 +95,7 @@ discard block |
||
| 95 | 95 | */ |
| 96 | 96 | protected function getWebRoutesPath() |
| 97 | 97 | { |
| 98 | - return '/' . $this->laravel['modules']->config('stubs.files.routes/web', 'routes/web.php'); |
|
| 98 | + return '/'.$this->laravel['modules']->config('stubs.files.routes/web', 'routes/web.php'); |
|
| 99 | 99 | } |
| 100 | 100 | |
| 101 | 101 | /** |
@@ -103,7 +103,7 @@ discard block |
||
| 103 | 103 | */ |
| 104 | 104 | protected function getApiRoutesPath() |
| 105 | 105 | { |
| 106 | - return '/' . $this->laravel['modules']->config('stubs.files.routes/api', 'routes/api.php'); |
|
| 106 | + return '/'.$this->laravel['modules']->config('stubs.files.routes/api', 'routes/api.php'); |
|
| 107 | 107 | } |
| 108 | 108 | |
| 109 | 109 | public function getDefaultNamespace(): string |