@@ -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; |
@@ -18,13 +18,13 @@ |
||
| 18 | 18 | protected $name = 'search:rebuild'; |
| 19 | 19 | protected $description = 'Rebuild the search index'; |
| 20 | 20 | |
| 21 | - private $models = []; |
|
| 21 | + private $models = [ ]; |
|
| 22 | 22 | |
| 23 | 23 | public function getModels() |
| 24 | 24 | { |
| 25 | 25 | foreach (get_declared_classes() as $class) { |
| 26 | 26 | if (is_subclass_of($class, Model::class) && method_exists($class, 'searchFields')) { |
| 27 | - $this->models[] = $class; |
|
| 27 | + $this->models[ ] = $class; |
|
| 28 | 28 | } |
| 29 | 29 | } |
| 30 | 30 | } |
@@ -61,9 +61,9 @@ |
||
| 61 | 61 | * @param array $parameters |
| 62 | 62 | * @return Document |
| 63 | 63 | */ |
| 64 | - private function addParameters(Document $document, array $parameters = []) |
|
| 64 | + private function addParameters(Document $document, array $parameters = [ ]) |
|
| 65 | 65 | { |
| 66 | - if (! empty($parameters)) { |
|
| 66 | + if (!empty($parameters)) { |
|
| 67 | 67 | $document->addField($this->field('_parameters', $this->flattenParameters($parameters), 'unIndexed')); |
| 68 | 68 | } |
| 69 | 69 | |