@@ -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 |