Conditions | 1 |
Paths | 1 |
Total Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
32 | public function handle(): void |
||
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:auth']); |
||
38 | })->flatten()->each->run(new ArrayInput(['--force' => $this->option('force')]), $this->output); |
||
39 | } |
||
40 | } |
||
41 |