Conditions | 2 |
Paths | 2 |
Total Lines | 10 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 7 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
16 | 1 | protected function execute(InputInterface $input, OutputInterface $output): int |
|
17 | { |
||
18 | 1 | $list = $this->findMigrations($output); |
|
19 | |||
20 | 1 | foreach ($list as $migration) { |
|
21 | 1 | $state = $migration->getState(); |
|
22 | 1 | $output->writeln('<fg=cyan>' . $state->getName() . '</> ' |
|
23 | 1 | . '<fg=yellow>[' . (self::MIGRATION_STATUS[$state->getStatus()] ?? '?') . ']</>'); |
|
24 | } |
||
25 | 1 | return ExitCode::OK; |
|
26 | } |
||
28 |