Conditions | 2 |
Paths | 2 |
Total Lines | 18 |
Code Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 6 |
Changes | 0 |
1 | <?php |
||
39 | public function handle() |
||
40 | { |
||
41 | if (!$this->option('verbose')) { |
||
42 | $this->output = new NullOutput; |
||
43 | } |
||
44 | |||
45 | $rebuild = new RebuildModels( |
||
46 | new ProgressBar($this->getOutput()), |
||
47 | App::make(Store::class), |
||
48 | $this->output |
||
49 | ); |
||
50 | |||
51 | $this->call('search:destroy', $this->getArguments()); |
||
52 | $rebuild->rebuild(); |
||
53 | |||
54 | $this->call('search:optimise', $this->getArguments()); |
||
55 | $this->info(PHP_EOL.'Search engine rebuild complete.'); |
||
56 | } |
||
57 | } |
||
58 |