@@ -6,9 +6,9 @@ |
||
| 6 | 6 | { |
| 7 | 7 | protected $string; |
| 8 | 8 | protected $field = false; |
| 9 | - protected $Options = []; |
|
| 9 | + protected $Options = [ ]; |
|
| 10 | 10 | |
| 11 | - public function __construct($string, $field = false, $options = []) |
|
| 11 | + public function __construct($string, $field = false, $options = [ ]) |
|
| 12 | 12 | { |
| 13 | 13 | $this->string = $string; |
| 14 | 14 | $this->field = $field; |
@@ -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 | } |