| Conditions | 4 | 
| Paths | 4 | 
| Total Lines | 18 | 
| Code Lines | 9 | 
| Lines | 7 | 
| Ratio | 38.89 % | 
| Tests | 0 | 
| CRAP Score | 20 | 
| Changes | 0 | ||
| 1 | <?php  | 
            ||
| 37 | public function handle(Migrator $migrator)  | 
            ||
| 38 |     { | 
            ||
| 39 |         if (!$this->confirmToProceed()) { | 
            ||
| 40 | return;  | 
            ||
| 41 | }  | 
            ||
| 42 | |||
| 43 | $migrator->makeLogTable();  | 
            ||
| 44 | |||
| 45 | $installed_migrations = $migrator->installedMigrationsByDesc();  | 
            ||
| 46 | |||
| 47 | View Code Duplication |         foreach ($installed_migrations as $group => $migrations) { | 
            |
| 48 |             foreach ($migrations as $data) { | 
            ||
| 49 | $this->infoDowngrade($group, $data->version, $data->class);  | 
            ||
| 50 | |||
| 51 | $migrator->doDowngrade($group, $data->version);  | 
            ||
| 52 | }  | 
            ||
| 53 | }  | 
            ||
| 54 | }  | 
            ||
| 55 | }  | 
            ||
| 56 |