@@ -183,7 +183,7 @@ discard block |
||
183 | 183 | { |
184 | 184 | $lowerName = $this->getLowerName(); |
185 | 185 | |
186 | - $langPath = $this->getPath() . '/Resources/lang'; |
|
186 | + $langPath = $this->getPath().'/Resources/lang'; |
|
187 | 187 | |
188 | 188 | if (is_dir($langPath)) { |
189 | 189 | $this->loadTranslationsFrom($langPath, $lowerName); |
@@ -203,8 +203,8 @@ discard block |
||
203 | 203 | $file = 'module.json'; |
204 | 204 | } |
205 | 205 | |
206 | - return Arr::get($this->moduleJson, $file, function () use ($file) { |
|
207 | - return $this->moduleJson[$file] = new Json($this->getPath() . '/' . $file, $this->files); |
|
206 | + return Arr::get($this->moduleJson, $file, function() use ($file) { |
|
207 | + return $this->moduleJson[$file] = new Json($this->getPath().'/'.$file, $this->files); |
|
208 | 208 | }); |
209 | 209 | } |
210 | 210 | |
@@ -257,7 +257,7 @@ discard block |
||
257 | 257 | */ |
258 | 258 | protected function fireEvent($event): void |
259 | 259 | { |
260 | - $this->app['events']->dispatch(sprintf('modules.%s.' . $event, $this->getLowerName()), [$this]); |
|
260 | + $this->app['events']->dispatch(sprintf('modules.%s.'.$event, $this->getLowerName()), [$this]); |
|
261 | 261 | } |
262 | 262 | /** |
263 | 263 | * Register the aliases from this module. |
@@ -282,7 +282,7 @@ discard block |
||
282 | 282 | protected function registerFiles(): void |
283 | 283 | { |
284 | 284 | foreach ($this->get('files', []) as $file) { |
285 | - include $this->path . '/' . $file; |
|
285 | + include $this->path.'/'.$file; |
|
286 | 286 | } |
287 | 287 | } |
288 | 288 | |
@@ -387,7 +387,7 @@ discard block |
||
387 | 387 | */ |
388 | 388 | public function getExtraPath(string $path): string |
389 | 389 | { |
390 | - return $this->getPath() . '/' . $path; |
|
390 | + return $this->getPath().'/'.$path; |
|
391 | 391 | } |
392 | 392 | |
393 | 393 | /** |
@@ -430,7 +430,7 @@ discard block |
||
430 | 430 | public function getDatabaseName(): ?string |
431 | 431 | { |
432 | 432 | $connectionName = config($this->getLowerName().'.connection'); |
433 | - if($connectionName) { |
|
433 | + if ($connectionName) { |
|
434 | 434 | return DB::connection($connectionName)->getDatabaseName(); |
435 | 435 | } |
436 | 436 |
@@ -49,7 +49,7 @@ discard block |
||
49 | 49 | } |
50 | 50 | |
51 | 51 | foreach ($this->module->getOrdered($this->option('direction')) as $module) { |
52 | - $this->line('Running for module: <info>' . $module->getName() . '</info>'); |
|
52 | + $this->line('Running for module: <info>'.$module->getName().'</info>'); |
|
53 | 53 | $this->migrateStatus($module); |
54 | 54 | } |
55 | 55 | |
@@ -66,7 +66,7 @@ discard block |
||
66 | 66 | $path = str_replace(base_path(), '', (new Migrator($module, $this->getLaravel()))->getPath()); |
67 | 67 | |
68 | 68 | $database = $this->option('database'); |
69 | - if(!$database) { |
|
69 | + if (!$database) { |
|
70 | 70 | $database = $module->getDatabaseName(); |
71 | 71 | } |
72 | 72 |
@@ -47,7 +47,7 @@ discard block |
||
47 | 47 | } |
48 | 48 | |
49 | 49 | foreach ($this->module->getOrdered($this->option('direction')) as $module) { |
50 | - $this->line('Running for module: <info>' . $module->getName() . '</info>'); |
|
50 | + $this->line('Running for module: <info>'.$module->getName().'</info>'); |
|
51 | 51 | |
52 | 52 | $this->rollback($module); |
53 | 53 | } |
@@ -69,7 +69,7 @@ discard block |
||
69 | 69 | $migrator = new Migrator($module, $this->getLaravel()); |
70 | 70 | |
71 | 71 | $database = $this->option('database'); |
72 | - if(!$database) { |
|
72 | + if (!$database) { |
|
73 | 73 | $database = $module->getDatabaseName(); |
74 | 74 | } |
75 | 75 |
@@ -40,7 +40,7 @@ |
||
40 | 40 | |
41 | 41 | |
42 | 42 | $database = $this->option('database'); |
43 | - if(!$database) { |
|
43 | + if (!$database) { |
|
44 | 44 | $database = $module->getDatabaseName(); |
45 | 45 | } |
46 | 46 |
@@ -47,7 +47,7 @@ discard block |
||
47 | 47 | } |
48 | 48 | |
49 | 49 | foreach ($this->module->getOrdered($this->option('direction')) as $module) { |
50 | - $this->line('Running for module: <info>' . $module->getName() . '</info>'); |
|
50 | + $this->line('Running for module: <info>'.$module->getName().'</info>'); |
|
51 | 51 | |
52 | 52 | $this->reset($module); |
53 | 53 | } |
@@ -69,7 +69,7 @@ discard block |
||
69 | 69 | $migrator = new Migrator($module, $this->getLaravel()); |
70 | 70 | |
71 | 71 | $database = $this->option('database'); |
72 | - if(!$database) { |
|
72 | + if (!$database) { |
|
73 | 73 | $database = $module->getDatabaseName(); |
74 | 74 | } |
75 | 75 |
@@ -49,7 +49,7 @@ discard block |
||
49 | 49 | } |
50 | 50 | |
51 | 51 | foreach ($this->module->getOrdered($this->option('direction')) as $module) { |
52 | - $this->line('Running for module: <info>' . $module->getName() . '</info>'); |
|
52 | + $this->line('Running for module: <info>'.$module->getName().'</info>'); |
|
53 | 53 | |
54 | 54 | $this->migrate($module); |
55 | 55 | } |
@@ -65,14 +65,14 @@ discard block |
||
65 | 65 | protected function migrate(Module $module) |
66 | 66 | { |
67 | 67 | $database = $this->option('database'); |
68 | - if(!$database) { |
|
68 | + if (!$database) { |
|
69 | 69 | $database = $module->getDatabaseName(); |
70 | 70 | } |
71 | 71 | |
72 | 72 | $path = str_replace(base_path(), '', (new Migrator($module, $this->getLaravel()))->getPath()); |
73 | 73 | |
74 | 74 | if ($this->option('subpath')) { |
75 | - $path = $path . "/" . $this->option("subpath"); |
|
75 | + $path = $path."/".$this->option("subpath"); |
|
76 | 76 | } |
77 | 77 | |
78 | 78 | $this->call('migrate', [ |
@@ -39,7 +39,7 @@ |
||
39 | 39 | } |
40 | 40 | |
41 | 41 | $database = $this->option('database'); |
42 | - if(!$database) { |
|
42 | + if (!$database) { |
|
43 | 43 | $database = $module->getDatabaseName(); |
44 | 44 | } |
45 | 45 |