@@ -26,18 +26,18 @@ discard block |
||
| 26 | 26 | */ |
| 27 | 27 | public function perform(FilesInterface $files) |
| 28 | 28 | { |
| 29 | - if (!$this->verifyConfigured()) { |
|
| 29 | + if (!$this->verifyConfigured()){ |
|
| 30 | 30 | return; |
| 31 | 31 | } |
| 32 | 32 | |
| 33 | - if (empty($this->migrator->getMigrations())) { |
|
| 33 | + if (empty($this->migrator->getMigrations())){ |
|
| 34 | 34 | $this->writeln("<comment>No migrations were found.</comment>"); |
| 35 | 35 | |
| 36 | 36 | return; |
| 37 | 37 | } |
| 38 | 38 | |
| 39 | 39 | $table = $this->table(['Migration', 'Created at', 'Executed at']); |
| 40 | - foreach ($this->migrator->getMigrations() as $migration) { |
|
| 40 | + foreach ($this->migrator->getMigrations() as $migration){ |
|
| 41 | 41 | $state = $migration->getState(); |
| 42 | 42 | |
| 43 | 43 | $table->addRow([ |
@@ -45,7 +45,7 @@ discard block |
||
| 45 | 45 | $state->getTimeCreated()->format('Y-m-d H:i:s'), |
| 46 | 46 | $state->getStatus() == State::STATUS_PENDING |
| 47 | 47 | ? self::PENDING |
| 48 | - : '<info>' . $state->getTimeExecuted()->format('Y-m-d H:i:s') . '</info>' |
|
| 48 | + : '<info>'.$state->getTimeExecuted()->format('Y-m-d H:i:s').'</info>' |
|
| 49 | 49 | ]); |
| 50 | 50 | } |
| 51 | 51 | |
@@ -26,18 +26,21 @@ |
||
| 26 | 26 | */ |
| 27 | 27 | public function perform(FilesInterface $files) |
| 28 | 28 | { |
| 29 | - if (!$this->verifyConfigured()) { |
|
| 29 | + if (!$this->verifyConfigured()) |
|
| 30 | + { |
|
| 30 | 31 | return; |
| 31 | 32 | } |
| 32 | 33 | |
| 33 | - if (empty($this->migrator->getMigrations())) { |
|
| 34 | + if (empty($this->migrator->getMigrations())) |
|
| 35 | + { |
|
| 34 | 36 | $this->writeln("<comment>No migrations were found.</comment>"); |
| 35 | 37 | |
| 36 | 38 | return; |
| 37 | 39 | } |
| 38 | 40 | |
| 39 | 41 | $table = $this->table(['Migration', 'Created at', 'Executed at']); |
| 40 | - foreach ($this->migrator->getMigrations() as $migration) { |
|
| 42 | + foreach ($this->migrator->getMigrations() as $migration) |
|
| 43 | + { |
|
| 41 | 44 | $state = $migration->getState(); |
| 42 | 45 | |
| 43 | 46 | $table->addRow([ |