| Conditions | 4 | 
| Paths | 6 | 
| Total Lines | 15 | 
| Code Lines | 10 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Tests | 0 | 
| CRAP Score | 20 | 
| Changes | 0 | ||
| 1 | <?php | ||
| 20 | public function execute() | ||
| 21 |     { | ||
| 22 | $migrations = $this->manager->getMigrationInformations(); | ||
| 23 | $isNoMigration = true; | ||
| 24 |         foreach ($migrations as $migration) { | ||
| 25 |             if (!$this->manager->isApplied($migration)) { | ||
| 26 | $isNoMigration = false; | ||
| 27 | $this->manager->up($migration->getId()); | ||
| 28 |                 $this->output->writeln(sprintf("<info>up</info> %s", $migration->getId())); | ||
| 29 | } | ||
| 30 | } | ||
| 31 |         if ($isNoMigration) { | ||
| 32 |             $this->output->writeln("<comment>there is no migration to migrate.</comment>"); | ||
| 33 | } | ||
| 34 | } | ||
| 35 | } | ||
| 36 |