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