@@ -72,7 +72,7 @@ |
||
72 | 72 | |
73 | 73 | $seederPath = $this->laravel['modules']->config('paths.generator.request'); |
74 | 74 | |
75 | - return $path . $seederPath . '/' . $this->getFileName() . '.php'; |
|
75 | + return $path.$seederPath.'/'.$this->getFileName().'.php'; |
|
76 | 76 | } |
77 | 77 | |
78 | 78 | /** |
@@ -81,7 +81,7 @@ |
||
81 | 81 | |
82 | 82 | $seederPath = $this->laravel['modules']->config('paths.generator.command'); |
83 | 83 | |
84 | - return $path . $seederPath . '/' . $this->getFileName() . '.php'; |
|
84 | + return $path.$seederPath.'/'.$this->getFileName().'.php'; |
|
85 | 85 | } |
86 | 86 | |
87 | 87 | /** |
@@ -65,7 +65,7 @@ |
||
65 | 65 | |
66 | 66 | $jobPath = $this->laravel['modules']->config('paths.generator.jobs'); |
67 | 67 | |
68 | - return $path . $jobPath . '/' . $this->getFileName() . '.php'; |
|
68 | + return $path.$jobPath.'/'.$this->getFileName().'.php'; |
|
69 | 69 | } |
70 | 70 | |
71 | 71 | /** |
@@ -60,7 +60,7 @@ discard block |
||
60 | 60 | { |
61 | 61 | $path = $this->laravel['modules']->getModulePath($this->getModuleName()); |
62 | 62 | |
63 | - return $path . 'Database/factories/' . $this->getFileName(); |
|
63 | + return $path.'Database/factories/'.$this->getFileName(); |
|
64 | 64 | } |
65 | 65 | |
66 | 66 | /** |
@@ -68,6 +68,6 @@ discard block |
||
68 | 68 | */ |
69 | 69 | private function getFileName() |
70 | 70 | { |
71 | - return Str::studly($this->argument('name')) . '.php'; |
|
71 | + return Str::studly($this->argument('name')).'.php'; |
|
72 | 72 | } |
73 | 73 | } |
@@ -31,7 +31,7 @@ discard block |
||
31 | 31 | $module = $this->laravel['modules']->findOrFail($this->getModuleName()); |
32 | 32 | |
33 | 33 | return (new Stub('/event.stub', [ |
34 | - 'NAMESPACE' => $this->getClassNamespace($module) . "\\" . config('modules.paths.generator.event'), |
|
34 | + 'NAMESPACE' => $this->getClassNamespace($module)."\\".config('modules.paths.generator.event'), |
|
35 | 35 | "CLASS" => $this->getClass(), |
36 | 36 | ]))->render(); |
37 | 37 | } |
@@ -41,7 +41,7 @@ discard block |
||
41 | 41 | $path = $this->laravel['modules']->getModulePath($this->getModuleName()); |
42 | 42 | $seederPath = $this->laravel['modules']->config('paths.generator.event'); |
43 | 43 | |
44 | - return $path . $seederPath . '/' . $this->getFileName() . '.php'; |
|
44 | + return $path.$seederPath.'/'.$this->getFileName().'.php'; |
|
45 | 45 | } |
46 | 46 | |
47 | 47 | /** |
@@ -30,7 +30,7 @@ discard block |
||
30 | 30 | |
31 | 31 | public function handle() |
32 | 32 | { |
33 | - if (! $this->option('event')) { |
|
33 | + if (!$this->option('event')) { |
|
34 | 34 | $this->error('The --event option is necessary'); |
35 | 35 | |
36 | 36 | return; |
@@ -79,12 +79,12 @@ discard block |
||
79 | 79 | { |
80 | 80 | $namespace = str_replace('/', '\\', config('modules.paths.generator.listener')); |
81 | 81 | |
82 | - return $this->getClassNamespace($module) . "\\" . $namespace; |
|
82 | + return $this->getClassNamespace($module)."\\".$namespace; |
|
83 | 83 | } |
84 | 84 | |
85 | 85 | protected function getEventName(Module $module) |
86 | 86 | { |
87 | - return $this->getClassNamespace($module) . "\\" . config('modules.paths.generator.event') . "\\" . $this->option('event'); |
|
87 | + return $this->getClassNamespace($module)."\\".config('modules.paths.generator.event')."\\".$this->option('event'); |
|
88 | 88 | } |
89 | 89 | |
90 | 90 | protected function getDestinationFilePath() |
@@ -93,7 +93,7 @@ discard block |
||
93 | 93 | |
94 | 94 | $seederPath = $this->laravel['modules']->config('paths.generator.listener'); |
95 | 95 | |
96 | - return $path . $seederPath . '/' . $this->getFileName() . '.php'; |
|
96 | + return $path.$seederPath.'/'.$this->getFileName().'.php'; |
|
97 | 97 | } |
98 | 98 | |
99 | 99 | /** |
@@ -1,6 +1,6 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | -if (! function_exists('module_path')) { |
|
3 | +if (!function_exists('module_path')) { |
|
4 | 4 | function module_path($name) |
5 | 5 | { |
6 | 6 | $module = app('modules')->find($name); |
@@ -9,7 +9,7 @@ discard block |
||
9 | 9 | } |
10 | 10 | } |
11 | 11 | |
12 | -if (! function_exists('public_path')) { |
|
12 | +if (!function_exists('public_path')) { |
|
13 | 13 | /** |
14 | 14 | * Get the path to the public folder. |
15 | 15 | * |
@@ -18,6 +18,6 @@ discard block |
||
18 | 18 | */ |
19 | 19 | function public_path($path = '') |
20 | 20 | { |
21 | - return app()->make('path.public') . ($path ? DIRECTORY_SEPARATOR . ltrim($path, DIRECTORY_SEPARATOR) : $path); |
|
21 | + return app()->make('path.public').($path ? DIRECTORY_SEPARATOR . ltrim($path, DIRECTORY_SEPARATOR) : $path); |
|
22 | 22 | } |
23 | 23 | } |
@@ -186,7 +186,7 @@ discard block |
||
186 | 186 | { |
187 | 187 | $lowerName = $this->getLowerName(); |
188 | 188 | |
189 | - $langPath = $this->getPath() . "/Resources/lang"; |
|
189 | + $langPath = $this->getPath()."/Resources/lang"; |
|
190 | 190 | |
191 | 191 | if (is_dir($langPath)) { |
192 | 192 | $this->loadTranslationsFrom($langPath, $lowerName); |
@@ -206,8 +206,8 @@ discard block |
||
206 | 206 | $file = 'module.json'; |
207 | 207 | } |
208 | 208 | |
209 | - return array_get($this->moduleJson, $file, function () use ($file) { |
|
210 | - return $this->moduleJson[$file] = new Json($this->getPath() . '/' . $file, $this->app['files']); |
|
209 | + return array_get($this->moduleJson, $file, function() use ($file) { |
|
210 | + return $this->moduleJson[$file] = new Json($this->getPath().'/'.$file, $this->app['files']); |
|
211 | 211 | }); |
212 | 212 | } |
213 | 213 | |
@@ -258,7 +258,7 @@ discard block |
||
258 | 258 | */ |
259 | 259 | protected function fireEvent($event) |
260 | 260 | { |
261 | - $this->app['events']->fire(sprintf('modules.%s.' . $event, $this->getLowerName()), [$this]); |
|
261 | + $this->app['events']->fire(sprintf('modules.%s.'.$event, $this->getLowerName()), [$this]); |
|
262 | 262 | } |
263 | 263 | /** |
264 | 264 | * Register the aliases from this module. |
@@ -283,7 +283,7 @@ discard block |
||
283 | 283 | protected function registerFiles() |
284 | 284 | { |
285 | 285 | foreach ($this->get('files', []) as $file) { |
286 | - include $this->path . '/' . $file; |
|
286 | + include $this->path.'/'.$file; |
|
287 | 287 | } |
288 | 288 | } |
289 | 289 | |
@@ -404,7 +404,7 @@ discard block |
||
404 | 404 | */ |
405 | 405 | public function getExtraPath($path) |
406 | 406 | { |
407 | - return $this->getPath() . '/' . $path; |
|
407 | + return $this->getPath().'/'.$path; |
|
408 | 408 | } |
409 | 409 | |
410 | 410 | /** |
@@ -113,7 +113,7 @@ discard block |
||
113 | 113 | |
114 | 114 | $generatorPath = $this->laravel['modules']->config('paths.generator.migration'); |
115 | 115 | |
116 | - return $path . $generatorPath . '/' . $this->getFileName() . '.php'; |
|
116 | + return $path.$generatorPath.'/'.$this->getFileName().'.php'; |
|
117 | 117 | } |
118 | 118 | |
119 | 119 | /** |
@@ -121,7 +121,7 @@ discard block |
||
121 | 121 | */ |
122 | 122 | private function getFileName() |
123 | 123 | { |
124 | - return date('Y_m_d_His_') . $this->getSchemaName(); |
|
124 | + return date('Y_m_d_His_').$this->getSchemaName(); |
|
125 | 125 | } |
126 | 126 | |
127 | 127 | /** |