| Conditions | 2 |
| Paths | 2 |
| Total Lines | 6 |
| Code Lines | 3 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 4 |
| CRAP Score | 2 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 35 | 2 | public function handle(Algolia $algolia, SearchableFinder $searchableFinder): void |
|
| 36 | { |
||
| 37 | 2 | foreach ($searchableFinder->fromCommand($this) as $searchable) { |
|
| 38 | 2 | $searchable::removeAllFromSearch(); |
|
| 39 | |||
| 40 | 2 | $this->output->success('All ['.$searchable.'] records have been flushed.'); |
|
| 41 | } |
||
| 44 |