Conditions | 3 |
Paths | 4 |
Total Lines | 17 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 12 |
Changes | 0 |
1 | <?php |
||
20 | public function fire() |
||
21 | { |
||
22 | if (!$this->option('verbose')) { |
||
23 | $this->output = new NullOutput; |
||
|
|||
24 | } |
||
25 | |||
26 | $config = App::make(Repository::class); |
||
27 | |||
28 | $this->info('Clearing search index'); |
||
29 | |||
30 | if (File::isDirectory($indexPath = $config->get('search.index.path'))) { |
||
31 | File::deleteDirectory($indexPath); |
||
32 | $this->info('Search index is cleared.'); |
||
33 | } else { |
||
34 | $this->comment('There was nothing to clear.'); |
||
35 | } |
||
36 | } |
||
37 | } |
||
38 |
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..