Conditions | 2 |
Paths | 2 |
Total Lines | 18 |
Code Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Tests | 14 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
24 | 3 | public function handle() |
|
25 | { |
||
26 | 3 | if (!$this->option('verbose')) { |
|
27 | 1 | $this->output = new NullOutput; |
|
|
|||
28 | 1 | } |
|
29 | |||
30 | 3 | $rebuild = new RebuildModels( |
|
31 | 3 | new ProgressBar($this->getOutput()), |
|
32 | 3 | App::make(Store::class), |
|
33 | 3 | $this->output |
|
34 | 3 | ); |
|
35 | |||
36 | 3 | $this->call('search:destroy', $this->getArguments()); |
|
37 | 3 | $rebuild->rebuild(); |
|
38 | |||
39 | 3 | $this->call('search:optimise', $this->getArguments()); |
|
40 | 3 | $this->info(PHP_EOL . 'Search engine rebuild complete.'); |
|
41 | 3 | } |
|
42 | } |
||
43 |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..