| Conditions | 4 |
| Paths | 4 |
| Total Lines | 14 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 18 | public function execute($request) |
||
| 19 | { |
||
| 20 | $migrations = scandir($this->path); |
||
| 21 | |||
| 22 | foreach ($migrations as $migration) { |
||
| 23 | if ($this->isRelatedMigration($migration, $request)) { |
||
| 24 | if ($this->autoMigrate) { |
||
| 25 | $this->down($migration); |
||
| 26 | } |
||
| 27 | |||
| 28 | File::delete("$this->path/$migration"); |
||
| 29 | } |
||
| 30 | } |
||
| 31 | } |
||
| 32 | |||
| 54 |