| Conditions | 1 |
| Paths | 1 |
| Total Lines | 8 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 32 | public function handle() |
||
| 33 | { |
||
| 34 | collect(Artisan::all())->filter(function ($command) { |
||
| 35 | return mb_strpos($command->getName(), 'cortex:rollback:') !== false; |
||
| 36 | })->partition(function ($command) { |
||
| 37 | return in_array($command->getName(), ['cortex:rollback:foundation', 'cortex:rollback:fort']); |
||
| 38 | })->flatten()->each->run(new ArrayInput([]), $this->output); |
||
| 39 | } |
||
| 40 | } |
||
| 41 |