@@ -42,14 +42,14 @@ |
||
42 | 42 | $this->info(' |
@@ -33,7 +33,7 @@ discard block |
||
33 | 33 | $engine = $this->getSelectedEngine(); |
34 | 34 | $index = $this->getSelectedIndex(); |
35 | 35 | |
36 | - if (! $engine || ! $index) { |
|
36 | + if (!$engine || !$index) { |
|
37 | 37 | $this->error('You must specify both an engine (--manticore or --elastic) and an index (--releases or --predb).'); |
38 | 38 | |
39 | 39 | return Command::FAILURE; |
@@ -65,7 +65,7 @@ discard block |
||
65 | 65 | // Check if index exists |
66 | 66 | $exists = \Elasticsearch::indices()->exists(['index' => $index]); |
67 | 67 | |
68 | - if (! $exists) { |
|
68 | + if (!$exists) { |
|
69 | 69 | $this->error("ElasticSearch index '{$index}' does not exist."); |
70 | 70 | |
71 | 71 | return; |
@@ -46,7 +46,7 @@ discard block |
||
46 | 46 | $engine = $this->getSelectedEngine(); |
47 | 47 | $index = $this->getSelectedIndex(); |
48 | 48 | |
49 | - if (! $engine || ! $index) { |
|
49 | + if (!$engine || !$index) { |
|
50 | 50 | $this->error('You must specify both an engine (--manticore or --elastic) and an index (--releases or --predb).'); |
51 | 51 | |
52 | 52 | return Command::FAILURE; |
@@ -71,7 +71,7 @@ discard block |
||
71 | 71 | private function populateIndexParallel(string $engine, string $index): int |
72 | 72 | { |
73 | 73 | $total = $this->getTotalRecords($index); |
74 | - if (! $total) { |
|
74 | + if (!$total) { |
|
75 | 75 | $this->warn("{$index} table is empty. Nothing to do."); |
76 | 76 | |
77 | 77 | return Command::SUCCESS; |
@@ -196,7 +196,7 @@ discard block |
||
196 | 196 | continue; |
197 | 197 | } |
198 | 198 | |
199 | - if (! $process->running()) { |
|
199 | + if (!$process->running()) { |
|
200 | 200 | $completedProcesses[] = $processId; |
201 | 201 | $completed++; |
202 | 202 | $bar->advance(); |
@@ -234,7 +234,7 @@ discard block |
||
234 | 234 | $bar->finish(); |
235 | 235 | $this->newLine(); |
236 | 236 | |
237 | - if (! empty($failedProcesses)) { |
|
237 | + if (!empty($failedProcesses)) { |
|
238 | 238 | $this->error('Failed workers: '.implode(', ', $failedProcesses)); |
239 | 239 | } |
240 | 240 | } |