@@ -63,12 +63,12 @@ discard block |
||
63 | 63 | |
64 | 64 | $factoryPath = GenerateConfigReader::read('factory'); |
65 | 65 | |
66 | - return $path . $factoryPath->getPath() . '/' . $this->getFileName(); |
|
66 | + return $path.$factoryPath->getPath().'/'.$this->getFileName(); |
|
67 | 67 | } |
68 | 68 | |
69 | 69 | private function getFileName(): string |
70 | 70 | { |
71 | - return Str::studly($this->argument('name')) . 'Factory.php'; |
|
71 | + return Str::studly($this->argument('name')).'Factory.php'; |
|
72 | 72 | } |
73 | 73 | |
74 | 74 | private function getModelName(): string |
@@ -98,6 +98,6 @@ discard block |
||
98 | 98 | |
99 | 99 | $path = str_replace('/', '\\', $path); |
100 | 100 | |
101 | - return $this->laravel['modules']->config('namespace') . '\\' . $this->laravel['modules']->findOrFail($this->getModuleName()) . '\\' . $path; |
|
101 | + return $this->laravel['modules']->config('namespace').'\\'.$this->laravel['modules']->findOrFail($this->getModuleName()).'\\'.$path; |
|
102 | 102 | } |
103 | 103 | } |
@@ -73,7 +73,7 @@ |
||
73 | 73 | |
74 | 74 | $mailPath = GenerateConfigReader::read('emails'); |
75 | 75 | |
76 | - return $path . $mailPath->getPath() . '/' . $this->getFileName() . '.php'; |
|
76 | + return $path.$mailPath->getPath().'/'.$this->getFileName().'.php'; |
|
77 | 77 | } |
78 | 78 | |
79 | 79 | private function getFileName(): string |
@@ -74,12 +74,12 @@ discard block |
||
74 | 74 | ?? ltrim(config('modules.paths.generator.listener.path', 'Listeners'), config('modules.paths.app_folder', '')); |
75 | 75 | } |
76 | 76 | |
77 | - protected function getEventName(Module $module): array|string |
|
77 | + protected function getEventName(Module $module): array | string |
|
78 | 78 | { |
79 | - $namespace = $this->laravel['modules']->config('namespace') . "\\" . $module->getStudlyName(); |
|
79 | + $namespace = $this->laravel['modules']->config('namespace')."\\".$module->getStudlyName(); |
|
80 | 80 | $eventPath = GenerateConfigReader::read('event'); |
81 | 81 | |
82 | - $eventName = $namespace . "\\" . $eventPath->getPath() . "\\" . $this->option('event'); |
|
82 | + $eventName = $namespace."\\".$eventPath->getPath()."\\".$this->option('event'); |
|
83 | 83 | |
84 | 84 | return str_replace('/', '\\', $eventName); |
85 | 85 | } |
@@ -95,7 +95,7 @@ discard block |
||
95 | 95 | |
96 | 96 | $listenerPath = GenerateConfigReader::read('listener'); |
97 | 97 | |
98 | - return $path . $listenerPath->getPath() . '/' . $this->getFileName() . '.php'; |
|
98 | + return $path.$listenerPath->getPath().'/'.$this->getFileName().'.php'; |
|
99 | 99 | } |
100 | 100 | |
101 | 101 | protected function getFileName(): string |
@@ -73,7 +73,7 @@ discard block |
||
73 | 73 | /** @var Module $module */ |
74 | 74 | $module = $this->laravel['modules']->findOrFail($this->getModuleName()); |
75 | 75 | |
76 | - return (new Stub('/' . $stub . '.stub', [ |
|
76 | + return (new Stub('/'.$stub.'.stub', [ |
|
77 | 77 | 'NAMESPACE' => $this->getClassNamespace($module), |
78 | 78 | 'CLASS' => $this->getClass(), |
79 | 79 | 'LOWER_NAME' => $module->getLowerName(), |
@@ -95,7 +95,7 @@ discard block |
||
95 | 95 | |
96 | 96 | $generatorPath = GenerateConfigReader::read('provider'); |
97 | 97 | |
98 | - return $path . $generatorPath->getPath() . '/' . $this->getFileName() . '.php'; |
|
98 | + return $path.$generatorPath->getPath().'/'.$this->getFileName().'.php'; |
|
99 | 99 | } |
100 | 100 | |
101 | 101 | private function getFileName(): string |
@@ -35,11 +35,11 @@ |
||
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 | private function getFileName(): string |
42 | 42 | { |
43 | - return Str::lower($this->argument('name')) . '.blade.php'; |
|
43 | + return Str::lower($this->argument('name')).'.blade.php'; |
|
44 | 44 | } |
45 | 45 | } |
@@ -49,7 +49,7 @@ discard block |
||
49 | 49 | */ |
50 | 50 | protected function writeComponentViewTemplate(): void |
51 | 51 | { |
52 | - $this->call('module:make-component-view', ['name' => $this->argument('name') , 'module' => $this->argument('module')]); |
|
52 | + $this->call('module:make-component-view', ['name' => $this->argument('name'), 'module' => $this->argument('module')]); |
|
53 | 53 | } |
54 | 54 | |
55 | 55 | public function getDefaultNamespace(): string |
@@ -81,7 +81,7 @@ discard block |
||
81 | 81 | 'NAMESPACE' => $this->getClassNamespace($module), |
82 | 82 | 'CLASS' => $this->getClass(), |
83 | 83 | 'LOWER_NAME' => $module->getLowerName(), |
84 | - 'COMPONENT_NAME' => 'components.' . Str::lower($this->argument('name')), |
|
84 | + 'COMPONENT_NAME' => 'components.'.Str::lower($this->argument('name')), |
|
85 | 85 | ]))->render(); |
86 | 86 | } |
87 | 87 | |
@@ -90,11 +90,11 @@ discard block |
||
90 | 90 | $path = $this->laravel['modules']->getModulePath($this->getModuleName()); |
91 | 91 | $factoryPath = GenerateConfigReader::read('component-class'); |
92 | 92 | |
93 | - return $path . $factoryPath->getPath() . '/' . $this->getFileName(); |
|
93 | + return $path.$factoryPath->getPath().'/'.$this->getFileName(); |
|
94 | 94 | } |
95 | 95 | |
96 | 96 | private function getFileName(): string |
97 | 97 | { |
98 | - return Str::studly($this->argument('name')) . '.php'; |
|
98 | + return Str::studly($this->argument('name')).'.php'; |
|
99 | 99 | } |
100 | 100 | } |