@@ -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 | } |
@@ -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 | /** |