Conditions | 2 |
Paths | 2 |
Total Lines | 8 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Tests | 5 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
36 | 1 | public function handle(SearchableFinder $searchableFinder): void |
|
37 | { |
||
38 | 1 | foreach ($searchableFinder->fromCommand($this) as $searchable) { |
|
39 | 1 | $this->call('scout:flush', ['searchable' => $searchable]); |
|
40 | |||
41 | 1 | $searchable::makeAllSearchable(); |
|
42 | |||
43 | 1 | $this->output->success('All ['.$searchable.'] records have been imported.'); |
|
44 | } |
||
47 |