Completed
Push — master ( 1d70a7...b116b8 )
by Maxence
24s queued 12s
created
lib/Service/CliService.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -182,7 +182,7 @@
 block discarded – undo
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
 	}
Please login to merge, or discard this patch.
lib/Db/CoreRequestBuilder.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -191,8 +191,8 @@  discard block
 block discarded – undo
191 191
 	 */
192 192
 	private function limitToDBField(IQueryBuilder &$qb, string $field, string $value) {
193 193
 		$expr = $qb->expr();
194
-		$pf = ($qb->getType() === QueryBuilder::SELECT) ? $this->defaultSelectAlias . '.' : '';
195
-		$field = $pf . $field;
194
+		$pf = ($qb->getType() === QueryBuilder::SELECT) ? $this->defaultSelectAlias.'.' : '';
195
+		$field = $pf.$field;
196 196
 
197 197
 		$qb->andWhere($expr->eq($field, $qb->createNamedParameter($value)));
198 198
 	}
@@ -204,8 +204,8 @@  discard block
 block discarded – undo
204 204
 	 */
205 205
 	private function limitToDBFieldInt(IQueryBuilder &$qb, string $field, int $value) {
206 206
 		$expr = $qb->expr();
207
-		$pf = ($qb->getType() === QueryBuilder::SELECT) ? $this->defaultSelectAlias . '.' : '';
208
-		$field = $pf . $field;
207
+		$pf = ($qb->getType() === QueryBuilder::SELECT) ? $this->defaultSelectAlias.'.' : '';
208
+		$field = $pf.$field;
209 209
 
210 210
 		$qb->andWhere($expr->eq($field, $qb->createNamedParameter($value)));
211 211
 	}
@@ -218,8 +218,8 @@  discard block
 block discarded – undo
218 218
 	 */
219 219
 	private function limitToDBFieldArray(IQueryBuilder &$qb, string $field, array $values) {
220 220
 		$expr = $qb->expr();
221
-		$pf = ($qb->getType() === QueryBuilder::SELECT) ? $this->defaultSelectAlias . '.' : '';
222
-		$field = $pf . $field;
221
+		$pf = ($qb->getType() === QueryBuilder::SELECT) ? $this->defaultSelectAlias.'.' : '';
222
+		$field = $pf.$field;
223 223
 
224 224
 		if (!is_array($values)) {
225 225
 			$values = [$values];
@@ -239,8 +239,8 @@  discard block
 block discarded – undo
239 239
 	 */
240 240
 	protected function limitToQueuedIndexes(IQueryBuilder &$qb) {
241 241
 		$expr = $qb->expr();
242
-		$pf = ($qb->getType() === QueryBuilder::SELECT) ? $this->defaultSelectAlias . '.' : '';
243
-		$qb->andWhere($expr->neq($pf . 'status', $qb->createNamedParameter(Index::INDEX_OK)));
242
+		$pf = ($qb->getType() === QueryBuilder::SELECT) ? $this->defaultSelectAlias.'.' : '';
243
+		$qb->andWhere($expr->neq($pf.'status', $qb->createNamedParameter(Index::INDEX_OK)));
244 244
 	}
245 245
 
246 246
 }
Please login to merge, or discard this patch.
lib/Service/IndexService.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -165,7 +165,7 @@
 block discarded – undo
165 165
 		IFullTextSearchPlatform $platform, IFullTextSearchProvider $provider, string $userId,
166 166
 		IndexOptions $options
167 167
 	) {
168
-		$this->updateRunnerAction('generateIndex' . $provider->getName());
168
+		$this->updateRunnerAction('generateIndex'.$provider->getName());
169 169
 		$this->updateRunnerInfoArray(
170 170
 			[
171 171
 				'userId'          => $userId,
Please login to merge, or discard this patch.
lib/Command/Search.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -123,13 +123,13 @@
 block discarded – undo
123 123
 	 */
124 124
 	private function displaySearchResult(ISearchResult $searchResult) {
125 125
 		/** @var SearchResult $searchResult */
126
-		echo '> ' . $searchResult->getProvider()
127
-								 ->getName() . "\n";
126
+		echo '> '.$searchResult->getProvider()
127
+								 ->getName()."\n";
128 128
 
129 129
 		/** @var IIndexDocument[] $result */
130 130
 		$result = $searchResult->getDocuments();
131 131
 		foreach ($result as $document) {
132
-			echo ' - ' . $document->getId() . ' score:' . $document->getScore() . "\n";
132
+			echo ' - '.$document->getId().' score:'.$document->getScore()."\n";
133 133
 		}
134 134
 	}
135 135
 
Please login to merge, or discard this patch.
lib/Command/DocumentProvider.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -126,12 +126,12 @@
 block discarded – undo
126 126
 		$output->writeln(substr($content, 0, 80));
127 127
 
128 128
 		$parts = $indexDocument->getParts();
129
-		$output->writeln(sizeof($parts) . ' Part(s)');
129
+		$output->writeln(sizeof($parts).' Part(s)');
130 130
 		foreach (array_keys($parts) as $part) {
131 131
 			$output->writeln(
132
-				"'" . $part . "' " . substr($parts[$part], 0, 80) . '   (size: ' . strlen(
132
+				"'".$part."' ".substr($parts[$part], 0, 80).'   (size: '.strlen(
133 133
 					$parts[$part]
134
-				) . ')'
134
+				).')'
135 135
 			);
136 136
 		}
137 137
 
Please login to merge, or discard this patch.
lib/Command/Index.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -221,7 +221,7 @@  discard block
 block discarded – undo
221 221
 				}
222 222
 				);
223 223
 			} catch (Throwable $t) {
224
-				$this->miscService->log($t->getMessage() . ' -- ' . $t->getTraceAsString());
224
+				$this->miscService->log($t->getMessage().' -- '.$t->getTraceAsString());
225 225
 				throw new Exception('Please install php-readline, or use --no-readline');
226 226
 			}
227 227
 		}
@@ -637,7 +637,7 @@  discard block
 block discarded – undo
637 637
 		$index = $error['index'];
638 638
 		$errorIndex = '';
639 639
 		if ($index !== null) {
640
-			$errorIndex = $index->getProviderId() . ':' . $index->getDocumentId();
640
+			$errorIndex = $index->getProviderId().':'.$index->getDocumentId();
641 641
 		}
642 642
 
643 643
 		$width = $this->terminal->getWidth() - 13;
@@ -689,7 +689,7 @@  discard block
 block discarded – undo
689 689
 		$index = $result['index'];
690 690
 		$resultIndex = '';
691 691
 		if ($index !== null) {
692
-			$resultIndex = $index->getProviderId() . ':' . $index->getDocumentId();
692
+			$resultIndex = $index->getProviderId().':'.$index->getDocumentId();
693 693
 		}
694 694
 
695 695
 
Please login to merge, or discard this patch.
lib/Command/Live.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -268,7 +268,7 @@  discard block
 block discarded – undo
268 268
 
269 269
 			} catch (Exception $e) {
270 270
 				$this->miscService->log(
271
-					'Exception while live index: ' . get_class($e) . ' - ' . $e->getMessage()
271
+					'Exception while live index: '.get_class($e).' - '.$e->getMessage()
272 272
 				);
273 273
 
274 274
 				if (!$input->getOption('service')) {
@@ -567,7 +567,7 @@  discard block
 block discarded – undo
567 567
 		$index = $result['index'];
568 568
 		$resultIndex = '';
569 569
 		if ($index !== null) {
570
-			$resultIndex = $index->getProviderId() . ':' . $index->getDocumentId();
570
+			$resultIndex = $index->getProviderId().':'.$index->getDocumentId();
571 571
 		}
572 572
 
573 573
 
@@ -625,7 +625,7 @@  discard block
 block discarded – undo
625 625
 		$index = $error['index'];
626 626
 		$errorIndex = '';
627 627
 		if ($index !== null) {
628
-			$errorIndex = $index->getProviderId() . ':' . $index->getDocumentId();
628
+			$errorIndex = $index->getProviderId().':'.$index->getDocumentId();
629 629
 		}
630 630
 
631 631
 		$width = $this->terminal->getWidth() - 13;
Please login to merge, or discard this patch.
lib/Model/SearchRequest.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -169,7 +169,7 @@  discard block
 block discarded – undo
169 169
 	 * @return ISearchRequest
170 170
 	 */
171 171
 	public function addSearch(string $search): ISearchRequest {
172
-		$this->search .= ' ' . $search;
172
+		$this->search .= ' '.$search;
173 173
 
174 174
 		return $this;
175 175
 	}
@@ -211,7 +211,7 @@  discard block
 block discarded – undo
211 211
 
212 212
 		$options = ['is', 'show'];
213 213
 		if (in_array($kw, $options)) {
214
-			$this->addOption($kw . '_' . $value, '1');
214
+			$this->addOption($kw.'_'.$value, '1');
215 215
 
216 216
 			return true;
217 217
 		}
@@ -226,7 +226,7 @@  discard block
 block discarded – undo
226 226
 		$valuedSubOptions = ['and'];
227 227
 		if (in_array($kw, $valuedSubOptions)) {
228 228
 			list($key, $value) = explode(':', $value, 2);
229
-			$this->addMultipleOption($kw . ':' . $key, $value);
229
+			$this->addMultipleOption($kw.':'.$key, $value);
230 230
 
231 231
 			return true;
232 232
 		}
@@ -538,7 +538,7 @@  discard block
 block discarded – undo
538 538
 		foreach ($ak as $source) {
539 539
 			$tags = $this->subTags[$source];
540 540
 			foreach ($tags as $tag) {
541
-				$subTags[] = $source . '_' . $tag;
541
+				$subTags[] = $source.'_'.$tag;
542 542
 			}
543 543
 		}
544 544
 
Please login to merge, or discard this patch.
lib/Service/RunningService.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -199,7 +199,7 @@  discard block
 block discarded – undo
199 199
 	 * @return bool
200 200
 	 */
201 201
 	public function isAlreadyRunning(): bool {
202
-		$ttl = (int) $this->configService->getAppValue(ConfigService::TICK_TTL);
202
+		$ttl = (int)$this->configService->getAppValue(ConfigService::TICK_TTL);
203 203
 		$ticks = $this->tickRequest->getTicksByStatus('run');
204 204
 
205 205
 		$isAlreadyRunning = false;
@@ -238,18 +238,18 @@  discard block
 block discarded – undo
238 238
 		$preAction = $tick->getAction();
239 239
 
240 240
 		if ($preAction !== '') {
241
-			$preActionTotal = $tick->getInfoFloat($preAction . 'Total', 0);
242
-			$preActionStart = $tick->getInfoFloat($preAction . 'Init', 0);
241
+			$preActionTotal = $tick->getInfoFloat($preAction.'Total', 0);
242
+			$preActionStart = $tick->getInfoFloat($preAction.'Init', 0);
243 243
 
244 244
 			if ($preActionStart > 0) {
245 245
 
246 246
 				$preActionTotal += ($now - $preActionStart);
247
-				$tick->setInfoFloat($preAction . 'Total', $preActionTotal);
248
-				$tick->unsetInfo($preAction . 'Init');
247
+				$tick->setInfoFloat($preAction.'Total', $preActionTotal);
248
+				$tick->unsetInfo($preAction.'Init');
249 249
 			}
250 250
 		}
251 251
 		$tick->setAction($action)
252
-			 ->setInfoFloat($action . 'Init', $now);
252
+			 ->setInfoFloat($action.'Init', $now);
253 253
 	}
254 254
 
255 255
 
Please login to merge, or discard this patch.