Completed
Push — master ( e8377f...e76f82 )
by Adam
02:57
created
src/BestServedCold/LaravelZendSearch/Laravel/Console/RebuildCommand.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -19,13 +19,13 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
         }
Please login to merge, or discard this patch.