@@ -181,8 +181,8 @@ discard block |
||
181 | 181 | */ |
182 | 182 | private function limitToDBField(IQueryBuilder &$qb, $field, $values) { |
183 | 183 | $expr = $qb->expr(); |
184 | - $pf = ($qb->getType() === QueryBuilder::SELECT) ? $this->defaultSelectAlias . '.' : ''; |
|
185 | - $field = $pf . $field; |
|
184 | + $pf = ($qb->getType() === QueryBuilder::SELECT) ? $this->defaultSelectAlias.'.' : ''; |
|
185 | + $field = $pf.$field; |
|
186 | 186 | |
187 | 187 | if (!is_array($values)) { |
188 | 188 | $values = [$values]; |
@@ -202,8 +202,8 @@ discard block |
||
202 | 202 | */ |
203 | 203 | protected function limitToQueuedIndexes(IQueryBuilder &$qb) { |
204 | 204 | $expr = $qb->expr(); |
205 | - $pf = ($qb->getType() === QueryBuilder::SELECT) ? $this->defaultSelectAlias . '.' : ''; |
|
206 | - $qb->andWhere($expr->neq($pf . 'status', $qb->createNamedParameter(Index::INDEX_OK))); |
|
205 | + $pf = ($qb->getType() === QueryBuilder::SELECT) ? $this->defaultSelectAlias.'.' : ''; |
|
206 | + $qb->andWhere($expr->neq($pf.'status', $qb->createNamedParameter(Index::INDEX_OK))); |
|
207 | 207 | } |
208 | 208 | |
209 | 209 | } |
@@ -149,7 +149,7 @@ |
||
149 | 149 | public function indexProviderContentFromUser( |
150 | 150 | IFullTextSearchPlatform $platform, IFullTextSearchProvider $provider, $userId, $options |
151 | 151 | ) { |
152 | - $this->updateRunnerAction('generateIndex' . $provider->getName()); |
|
152 | + $this->updateRunnerAction('generateIndex'.$provider->getName()); |
|
153 | 153 | $this->updateRunnerInfoArray( |
154 | 154 | [ |
155 | 155 | 'userId' => $userId, |
@@ -182,7 +182,7 @@ |
||
182 | 182 | } |
183 | 183 | } |
184 | 184 | |
185 | - $this->display->setFormat(implode("\n", $format) . "\n"); |
|
185 | + $this->display->setFormat(implode("\n", $format)."\n"); |
|
186 | 186 | $this->refreshInfo(); |
187 | 187 | $this->display->start(); |
188 | 188 | } |
@@ -235,7 +235,7 @@ discard block |
||
235 | 235 | } |
236 | 236 | |
237 | 237 | if ($color !== '') { |
238 | - $this->info[$info . 'Colored'] = '<' . $color . '>' . $value . '</' . $color . '>'; |
|
238 | + $this->info[$info.'Colored'] = '<'.$color.'>'.$value.'</'.$color.'>'; |
|
239 | 239 | } |
240 | 240 | |
241 | 241 | |
@@ -346,7 +346,7 @@ discard block |
||
346 | 346 | return; |
347 | 347 | } |
348 | 348 | |
349 | - $this->setInfo('_memory', round((memory_get_usage() / 1024 / 1024)) . ' MB'); |
|
349 | + $this->setInfo('_memory', round((memory_get_usage() / 1024 / 1024)).' MB'); |
|
350 | 350 | $this->ramTick = $tick; |
351 | 351 | } |
352 | 352 | |
@@ -358,7 +358,7 @@ discard block |
||
358 | 358 | */ |
359 | 359 | public function exception($reason, $stop) { |
360 | 360 | if (!$stop) { |
361 | - $this->output('Exception: ' . $reason); |
|
361 | + $this->output('Exception: '.$reason); |
|
362 | 362 | // TODO: feed an array of exceptions for log; |
363 | 363 | } |
364 | 364 | $this->runningService->exception($this->tickId, $reason, $stop); |
@@ -448,7 +448,7 @@ |
||
448 | 448 | $index = $error['index']; |
449 | 449 | $errorIndex = ''; |
450 | 450 | if ($index !== null) { |
451 | - $errorIndex = $index->getProviderId() . ':' . $index->getDocumentId(); |
|
451 | + $errorIndex = $index->getProviderId().':'.$index->getDocumentId(); |
|
452 | 452 | } |
453 | 453 | |
454 | 454 | $this->runner->setInfoArray( |