@@ -19,13 +19,13 @@ discard block |
||
19 | 19 | protected $name = 'search:rebuild'; |
20 | 20 | protected $description = 'Rebuild the search index'; |
21 | 21 | |
22 | - private $models = []; |
|
22 | + private $models = [ ]; |
|
23 | 23 | |
24 | 24 | public function getModels() |
25 | 25 | { |
26 | 26 | foreach (get_declared_classes() as $class) { |
27 | 27 | if (is_subclass_of($class, Model::class) && method_exists($class, 'searchFields')) { |
28 | - $this->models[] = $class; |
|
28 | + $this->models[ ] = $class; |
|
29 | 29 | } |
30 | 30 | } |
31 | 31 | } |
@@ -38,7 +38,7 @@ discard block |
||
38 | 38 | $this->output = new NullOutput; |
39 | 39 | } |
40 | 40 | |
41 | - $this->call('search:destroy', ['--verbose' => $this->option('verbose')]); |
|
41 | + $this->call('search:destroy', [ '--verbose' => $this->option('verbose') ]); |
|
42 | 42 | |
43 | 43 | $store = App::make(Store::class); |
44 | 44 | |
@@ -74,7 +74,7 @@ discard block |
||
74 | 74 | |
75 | 75 | $this->info(PHP_EOL); |
76 | 76 | |
77 | - $this->call('search:optimise', ['--verbose' => $this->option('verbose')]); |
|
77 | + $this->call('search:optimise', [ '--verbose' => $this->option('verbose') ]); |
|
78 | 78 | |
79 | 79 | $this->info(PHP_EOL . 'Search engine rebuild complete.'); |
80 | 80 | } |