@@ -69,7 +69,7 @@ |
||
69 | 69 | |
70 | 70 | $resourcePath = GenerateConfigReader::read('resource'); |
71 | 71 | |
72 | - return $path . $resourcePath->getPath() . '/' . $this->getFileName() . '.php'; |
|
72 | + return $path.$resourcePath->getPath().'/'.$this->getFileName().'.php'; |
|
73 | 73 | } |
74 | 74 | |
75 | 75 | /** |
@@ -78,7 +78,7 @@ |
||
78 | 78 | |
79 | 79 | $requestPath = GenerateConfigReader::read('request'); |
80 | 80 | |
81 | - return $path . $requestPath->getPath() . '/' . $this->getFileName() . '.php'; |
|
81 | + return $path.$requestPath->getPath().'/'.$this->getFileName().'.php'; |
|
82 | 82 | } |
83 | 83 | |
84 | 84 | /** |
@@ -78,7 +78,7 @@ |
||
78 | 78 | |
79 | 79 | $middlewarePath = GenerateConfigReader::read('filter'); |
80 | 80 | |
81 | - return $path . $middlewarePath->getPath() . '/' . $this->getFileName() . '.php'; |
|
81 | + return $path.$middlewarePath->getPath().'/'.$this->getFileName().'.php'; |
|
82 | 82 | } |
83 | 83 | |
84 | 84 | /** |
@@ -49,7 +49,7 @@ discard block |
||
49 | 49 | */ |
50 | 50 | protected function writeComponentViewTemplate() |
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 |
@@ -82,7 +82,7 @@ discard block |
||
82 | 82 | 'NAMESPACE' => $this->getClassNamespace($module), |
83 | 83 | 'CLASS' => $this->getClass(), |
84 | 84 | 'LOWER_NAME' => $module->getLowerName(), |
85 | - 'COMPONENT_NAME' => 'components.' . Str::lower($this->argument('name')), |
|
85 | + 'COMPONENT_NAME' => 'components.'.Str::lower($this->argument('name')), |
|
86 | 86 | ]))->render(); |
87 | 87 | } |
88 | 88 | |
@@ -94,7 +94,7 @@ discard block |
||
94 | 94 | $path = $this->laravel['modules']->getModulePath($this->getModuleName()); |
95 | 95 | $factoryPath = GenerateConfigReader::read('component-class'); |
96 | 96 | |
97 | - return $path . $factoryPath->getPath() . '/' . $this->getFileName(); |
|
97 | + return $path.$factoryPath->getPath().'/'.$this->getFileName(); |
|
98 | 98 | } |
99 | 99 | |
100 | 100 | /** |
@@ -102,6 +102,6 @@ discard block |
||
102 | 102 | */ |
103 | 103 | private function getFileName() |
104 | 104 | { |
105 | - return Str::studly($this->argument('name')) . '.php'; |
|
105 | + return Str::studly($this->argument('name')).'.php'; |
|
106 | 106 | } |
107 | 107 | } |
@@ -43,7 +43,7 @@ discard block |
||
43 | 43 | $contents = $this->getTemplateContents(); |
44 | 44 | |
45 | 45 | try { |
46 | - $this->components->task("Generating file {$path}",function () use ($path,$contents) { |
|
46 | + $this->components->task("Generating file {$path}", function() use ($path, $contents) { |
|
47 | 47 | $overwriteFile = $this->hasOption('force') ? $this->option('force') : false; |
48 | 48 | (new FileGenerator($path, $contents))->withFileOverwrite($overwriteFile)->generate(); |
49 | 49 | }); |
@@ -92,11 +92,11 @@ discard block |
||
92 | 92 | |
93 | 93 | $namespace = $this->laravel['modules']->config('namespace'); |
94 | 94 | |
95 | - $namespace .= '\\' . $module->getStudlyName(); |
|
95 | + $namespace .= '\\'.$module->getStudlyName(); |
|
96 | 96 | |
97 | - $namespace .= '\\' . $this->getDefaultNamespace(); |
|
97 | + $namespace .= '\\'.$this->getDefaultNamespace(); |
|
98 | 98 | |
99 | - $namespace .= '\\' . $extra; |
|
99 | + $namespace .= '\\'.$extra; |
|
100 | 100 | |
101 | 101 | $namespace = str_replace('/', '\\', $namespace); |
102 | 102 |
@@ -74,7 +74,7 @@ |
||
74 | 74 | |
75 | 75 | $mailPath = GenerateConfigReader::read('emails'); |
76 | 76 | |
77 | - return $path . $mailPath->getPath() . '/' . $this->getFileName() . '.php'; |
|
77 | + return $path.$mailPath->getPath().'/'.$this->getFileName().'.php'; |
|
78 | 78 | } |
79 | 79 | |
80 | 80 | /** |
@@ -45,7 +45,7 @@ discard block |
||
45 | 45 | |
46 | 46 | $controllerPath = GenerateConfigReader::read('controller'); |
47 | 47 | |
48 | - return $path . $controllerPath->getPath() . '/' . $this->getControllerName() . '.php'; |
|
48 | + return $path.$controllerPath->getPath().'/'.$this->getControllerName().'.php'; |
|
49 | 49 | } |
50 | 50 | |
51 | 51 | /** |
@@ -117,8 +117,8 @@ discard block |
||
117 | 117 | |
118 | 118 | public function getDefaultNamespace(): string |
119 | 119 | { |
120 | - return config('modules.paths.generator.controller.namespace' ) |
|
121 | - ?? ltrim(config('modules.paths.generator.controller.path','Http/Controllers'),config('modules.paths.app_folder')); |
|
120 | + return config('modules.paths.generator.controller.namespace') |
|
121 | + ?? ltrim(config('modules.paths.generator.controller.path', 'Http/Controllers'), config('modules.paths.app_folder')); |
|
122 | 122 | } |
123 | 123 | |
124 | 124 | /** |
@@ -76,7 +76,7 @@ discard block |
||
76 | 76 | /** @var Module $module */ |
77 | 77 | $module = $this->laravel['modules']->findOrFail($this->getModuleName()); |
78 | 78 | |
79 | - return (new Stub('/' . $stub . '.stub', [ |
|
79 | + return (new Stub('/'.$stub.'.stub', [ |
|
80 | 80 | 'NAMESPACE' => $this->getClassNamespace($module), |
81 | 81 | 'CLASS' => $this->getClass(), |
82 | 82 | 'LOWER_NAME' => $module->getLowerName(), |
@@ -101,7 +101,7 @@ discard block |
||
101 | 101 | |
102 | 102 | $generatorPath = GenerateConfigReader::read('provider'); |
103 | 103 | |
104 | - return $path . $generatorPath->getPath() . '/' . $this->getFileName() . '.php'; |
|
104 | + return $path.$generatorPath->getPath().'/'.$this->getFileName().'.php'; |
|
105 | 105 | } |
106 | 106 | |
107 | 107 | /** |
@@ -87,7 +87,7 @@ |
||
87 | 87 | |
88 | 88 | $jobPath = GenerateConfigReader::read('jobs'); |
89 | 89 | |
90 | - return $path . $jobPath->getPath() . '/' . $this->getFileName() . '.php'; |
|
90 | + return $path.$jobPath->getPath().'/'.$this->getFileName().'.php'; |
|
91 | 91 | } |
92 | 92 | |
93 | 93 | /** |