@@ -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 | /** |
@@ -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,13 +103,13 @@ 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 |
110 | 110 | { |
111 | - return config('modules.paths.generator.provider.namespace' ) |
|
112 | - ?? ltrim(config('modules.paths.generator.provider.path','Providers'),config('modules.paths.app_folder','')); |
|
111 | + return config('modules.paths.generator.provider.namespace') |
|
112 | + ?? ltrim(config('modules.paths.generator.provider.path', 'Providers'), config('modules.paths.app_folder', '')); |
|
113 | 113 | } |
114 | 114 | |
115 | 115 | /** |
@@ -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 | /** |
@@ -24,21 +24,21 @@ discard block |
||
24 | 24 | { |
25 | 25 | $module = $this->getModuleModel($name); |
26 | 26 | |
27 | - $this->components->task("Updating Composer.json <fg=cyan;options=bold>{$module->getName()}</> Module", function () use ($module) { |
|
27 | + $this->components->task("Updating Composer.json <fg=cyan;options=bold>{$module->getName()}</> Module", function() use ($module) { |
|
28 | 28 | |
29 | - $composer_path = $module->getPath() . DIRECTORY_SEPARATOR . 'composer.json'; |
|
29 | + $composer_path = $module->getPath().DIRECTORY_SEPARATOR.'composer.json'; |
|
30 | 30 | |
31 | 31 | $composer = json_decode(File::get($composer_path), TRUE); |
32 | 32 | |
33 | 33 | $autoload = data_get($composer, 'autoload.psr-4'); |
34 | 34 | |
35 | - if (! $autoload) { |
|
35 | + if (!$autoload) { |
|
36 | 36 | return; |
37 | 37 | } |
38 | 38 | |
39 | 39 | $key_name_with_app = sprintf('Modules\\%s\\App\\', $module->getStudlyName()); |
40 | 40 | |
41 | - if (! array_key_exists($key_name_with_app, $autoload) ) { |
|
41 | + if (!array_key_exists($key_name_with_app, $autoload)) { |
|
42 | 42 | return; |
43 | 43 | } |
44 | 44 | |
@@ -53,7 +53,7 @@ discard block |
||
53 | 53 | }); |
54 | 54 | } |
55 | 55 | |
56 | - function getInfo(): string|null |
|
56 | + function getInfo(): string | null |
|
57 | 57 | { |
58 | 58 | return 'Updating Composer.json of modules...'; |
59 | 59 | } |