| Conditions | 4 | 
| Paths | 5 | 
| Total Lines | 17 | 
| Code Lines | 13 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Tests | 0 | 
| CRAP Score | 20 | 
| Changes | 0 | ||
| 1 | <?php | ||
| 23 | public function execute() | ||
| 24 |     { | ||
| 25 |         $this->output->writeln(' STATUS   MIGRATION ID   MIGRATION NAME'); | ||
| 26 |         $this->output->writeln('----------------------------------------'); | ||
| 27 |         foreach ($this->manager->getMigrationInformations() as $migration) { | ||
| 28 | $row = $this->manager->isApplied($migration) | ||
| 29 |                 ? sprintf(" <info>%6s</info>", 'up') | ||
| 30 |                 : sprintf(" <error>%6s</error>", 'down'); | ||
| 31 |             $row .= "   {$migration->getId()}  "; | ||
| 32 |             try { | ||
| 33 |                 $row .= sprintf("<comment>%s</comment>", $migration->getName()); | ||
| 34 |             } catch (RuntimeException $e) { | ||
| 35 |                 $row .= sprintf("<error>%s</error>", "unknown"); | ||
| 36 | } | ||
| 37 | $this->output->writeln($row); | ||
| 38 | } | ||
| 39 | } | ||
| 40 | } | ||
| 41 |