Passed
Push — master ( bed118...9cf8a1 )
by Anton
03:31
created
src/Command/Migrate/StatusCommand.php 2 patches
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -26,18 +26,18 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.
Braces   +6 added lines, -3 removed lines patch added patch discarded remove patch
@@ -26,18 +26,21 @@
 block discarded – undo
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([
Please login to merge, or discard this patch.