Conditions | 4 |
Paths | 8 |
Total Lines | 16 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
44 | protected function fire() |
||
45 | { |
||
46 | $files = $this->migrator->getAllMigrations(); |
||
47 | $without = $this->input->getOption('without') ?: 0; |
||
48 | if ($without > 0) { |
||
49 | $files = array_slice($files, 0, $without * -1); |
||
50 | } |
||
51 | |||
52 | $count = $this->migrator->moveMigrationFiles($files); |
||
53 | |||
54 | if ($count) { |
||
55 | $this->message("<info>Moved to archive:</info> {$count}"); |
||
56 | } else { |
||
57 | $this->info('Nothing to move'); |
||
58 | } |
||
59 | } |
||
60 | } |
||
61 |