Completed
Push — master ( 305ea9...c84f2a )
by Mike
06:39
created
lib/Doctrine/DBAL/Migrations/Tools/Console/Command/StatusCommand.php 1 patch
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -64,10 +64,10 @@  discard block
 block discarded – undo
64 64
         $output->writeln("\n <info>==</info> Configuration\n");
65 65
         foreach ($infos->getMigrationsInfos() as $name => $value) {
66 66
             if ($name == 'New Migrations') {
67
-                $value = $value > 0 ? '<question>' . $value . '</question>' : 0;
67
+                $value = $value > 0 ? '<question>'.$value.'</question>' : 0;
68 68
             }
69
-            if($name == 'Executed Unavailable Migrations') {
70
-                $value = $value > 0 ? '<error>' . $value . '</error>' : 0;
69
+            if ($name == 'Executed Unavailable Migrations') {
70
+                $value = $value > 0 ? '<error>'.$value.'</error>' : 0;
71 71
             }
72 72
             $this->writeStatusInfosLineAligned($output, $name, $value);
73 73
         }
@@ -82,8 +82,8 @@  discard block
 block discarded – undo
82 82
             if (count($infos->getExecutedUnavailableMigrations())) {
83 83
                 $output->writeln("\n <info>==</info> Previously Executed Unavailable Migration Versions\n");
84 84
                 foreach ($infos->getExecutedUnavailableMigrations() as $executedUnavailableMigration) {
85
-                    $output->writeln('    <comment>>></comment> ' . $configuration->getDateTime($executedUnavailableMigration) .
86
-                        ' (<comment>' . $executedUnavailableMigration . '</comment>)');
85
+                    $output->writeln('    <comment>>></comment> '.$configuration->getDateTime($executedUnavailableMigration).
86
+                        ' (<comment>'.$executedUnavailableMigration.'</comment>)');
87 87
                 }
88 88
             }
89 89
         }
@@ -91,27 +91,27 @@  discard block
 block discarded – undo
91 91
 
92 92
     private function writeStatusInfosLineAligned(OutputInterface $output, $title, $value)
93 93
     {
94
-        $output->writeln('    <comment>>></comment> ' . $title . ': ' . str_repeat(' ', 50 - strlen($title)) . $value);
94
+        $output->writeln('    <comment>>></comment> '.$title.': '.str_repeat(' ', 50 - strlen($title)).$value);
95 95
     }
96 96
 
97 97
     private function showVersions($migrations, Configuration $configuration, OutputInterface $output)
98 98
     {
99 99
         $migratedVersions = $configuration->getMigratedVersions();
100 100
 
101
-        foreach($migrations as $version) {
101
+        foreach ($migrations as $version) {
102 102
             $isMigrated = in_array($version->getVersion(), $migratedVersions);
103 103
             $status = $isMigrated ? '<info>migrated</info>' : '<error>not migrated</error>';
104 104
 
105 105
             $migrationDescription = $version->getMigration()->getDescription()
106
-                ? str_repeat(' ', 5) . $version->getMigration()->getDescription()
106
+                ? str_repeat(' ', 5).$version->getMigration()->getDescription()
107 107
                 : '';
108 108
 
109 109
             $formattedVersion = $configuration->getDateTime($version->getVersion());
110 110
 
111
-            $output->writeln('    <comment>>></comment> ' . $formattedVersion .
112
-                ' (<comment>' . $version->getVersion() . '</comment>)' .
113
-                str_repeat(' ', max(1, 49 - strlen($formattedVersion) - strlen($version->getVersion())))  .
114
-                $status  . $migrationDescription);
111
+            $output->writeln('    <comment>>></comment> '.$formattedVersion.
112
+                ' (<comment>'.$version->getVersion().'</comment>)'.
113
+                str_repeat(' ', max(1, 49 - strlen($formattedVersion) - strlen($version->getVersion()))).
114
+                $status.$migrationDescription);
115 115
         }
116 116
     }
117 117
 }
Please login to merge, or discard this patch.