Completed
Push — master ( 942dfa...17580f )
by
unknown
17s
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/Command/Live.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -514,7 +514,7 @@  discard block
 block discarded – undo
514 514
 		$index = $result['index'];
515 515
 		$resultIndex = '';
516 516
 		if ($index !== null) {
517
-			$resultIndex = $index->getProviderId() . ':' . $index->getDocumentId();
517
+			$resultIndex = $index->getProviderId().':'.$index->getDocumentId();
518 518
 		}
519 519
 
520 520
 
@@ -571,7 +571,7 @@  discard block
 block discarded – undo
571 571
 		$index = $error['index'];
572 572
 		$errorIndex = '';
573 573
 		if ($index !== null) {
574
-			$errorIndex = $index->getProviderId() . ':' . $index->getDocumentId();
574
+			$errorIndex = $index->getProviderId().':'.$index->getDocumentId();
575 575
 		}
576 576
 
577 577
 		$width = $this->terminal->getWidth() - 13;
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/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/Model/Runner.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -250,7 +250,7 @@  discard block
 block discarded – undo
250 250
 		}
251 251
 
252 252
 		if ($color !== '') {
253
-			$this->info[$info . 'Colored'] = '<' . $color . '>' . $value . '</' . $color . '>';
253
+			$this->info[$info.'Colored'] = '<'.$color.'>'.$value.'</'.$color.'>';
254 254
 		}
255 255
 	}
256 256
 
@@ -393,7 +393,7 @@  discard block
 block discarded – undo
393 393
 			return;
394 394
 		}
395 395
 
396
-		$this->setInfo('_memory', round((memory_get_usage() / 1024 / 1024)) . ' MB');
396
+		$this->setInfo('_memory', round((memory_get_usage() / 1024 / 1024)).' MB');
397 397
 		$this->ramUpdate = $tick;
398 398
 	}
399 399
 
@@ -406,7 +406,7 @@  discard block
 block discarded – undo
406 406
 	 */
407 407
 	public function exception(string $reason, bool $stop) {
408 408
 		if (!$stop) {
409
-			$this->output('Exception: ' . $reason);
409
+			$this->output('Exception: '.$reason);
410 410
 			// TODO: feed an array of exceptions for log;
411 411
 		} else {
412 412
 			try {
Please login to merge, or discard this patch.
lib/Service/TestService.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
 	public function generateIndexDocumentContentLicense(IIndexOptions $options): IIndexDocument {
86 86
 		$indexDocument = $this->generateIndexDocument(self::DOCUMENT_TYPE_LICENSE);
87 87
 
88
-		$content = file_get_contents(__DIR__ . '/../../LICENSE');
88
+		$content = file_get_contents(__DIR__.'/../../LICENSE');
89 89
 		$indexDocument->setContent($content);
90 90
 
91 91
 		if ($options === null) {
@@ -142,7 +142,7 @@  discard block
 block discarded – undo
142 142
 			$orig = call_user_func([$origIndex, $method]);
143 143
 			$compare = call_user_func([$compareIndex, $method]);
144 144
 			if ($orig !== $compare) {
145
-				throw new Exception($method . '() orig:' . $orig . ' compare:' . $compare);
145
+				throw new Exception($method.'() orig:'.$orig.' compare:'.$compare);
146 146
 			}
147 147
 		}
148 148
 	}
Please login to merge, or discard this patch.
lib/Command/Test.php 1 patch
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -216,7 +216,7 @@  discard block
 block discarded – undo
216 216
 			$output->write(' ', true);
217 217
 		}
218 218
 
219
-		$output->write($line . ' ', false);
219
+		$output->write($line.' ', false);
220 220
 	}
221 221
 
222 222
 
@@ -277,7 +277,7 @@  discard block
 block discarded – undo
277 277
 		$testProvider->setIndexOptions(new IndexOptions());
278 278
 		$indexableDocuments =
279 279
 			$testProvider->generateIndexableDocuments(TestService::DOCUMENT_USER1, '');
280
-		$this->output($output, '(' . sizeof($indexableDocuments) . ' items)', false);
280
+		$this->output($output, '('.sizeof($indexableDocuments).' items)', false);
281 281
 		$this->outputResult($output, true);
282 282
 	}
283 283
 
@@ -293,12 +293,12 @@  discard block
 block discarded – undo
293 293
 		$wrapper = $this->platformService->getPlatform();
294 294
 		$testPlatform = $wrapper->getPlatform();
295 295
 
296
-		$this->output($output, '(' . $testPlatform->getName() . ')', false);
296
+		$this->output($output, '('.$testPlatform->getName().')', false);
297 297
 		$this->outputResult($output, true);
298 298
 
299 299
 		$this->output($output, 'Testing search platform.');
300 300
 		if (!$testPlatform->testPlatform()) {
301
-			throw new Exception ('Search platform (' . $testPlatform->getName() . ') down ?');
301
+			throw new Exception('Search platform ('.$testPlatform->getName().') down ?');
302 302
 		}
303 303
 		$this->outputResult($output, true);
304 304
 
@@ -395,13 +395,13 @@  discard block
 block discarded – undo
395 395
 			);
396 396
 
397 397
 			$this->output(
398
-				$output, '(size: ' . $indexDocument->getContentSize() . ')', false
398
+				$output, '(size: '.$indexDocument->getContentSize().')', false
399 399
 			);
400 400
 			$this->outputResult($output, true);
401 401
 		} catch (Exception $e) {
402 402
 			throw new Exception(
403
-				"Issue while getting test document '" . TestService::DOCUMENT_TYPE_LICENSE
404
-				. "' from search platform: " . $e->getMessage()
403
+				"Issue while getting test document '".TestService::DOCUMENT_TYPE_LICENSE
404
+				. "' from search platform: ".$e->getMessage()
405 405
 			);
406 406
 		}
407 407
 
@@ -571,7 +571,7 @@  discard block
 block discarded – undo
571 571
 	) {
572 572
 		$this->output(
573 573
 			$output,
574
-			" - '" . $search . "'" . (($moreOutput === '') ? '' : ' - ' . $moreOutput . ' - ')
574
+			" - '".$search."'".(($moreOutput === '') ? '' : ' - '.$moreOutput.' - ')
575 575
 		);
576 576
 		$request = new SearchRequest();
577 577
 
@@ -585,7 +585,7 @@  discard block
 block discarded – undo
585 585
 
586 586
 		$this->output(
587 587
 			$output,
588
-			'(result: ' . $searchResult->getCount() . ', expected: ' . json_encode($expected) . ')',
588
+			'(result: '.$searchResult->getCount().', expected: '.json_encode($expected).')',
589 589
 			false
590 590
 		);
591 591
 		$this->compareSearchResult($searchResult, $expected);
@@ -649,12 +649,12 @@  discard block
 block discarded – undo
649 649
 	private function compareSearchResult(SearchResult $searchResult, array $entries) {
650 650
 		$documents = $searchResult->getDocuments();
651 651
 		if (sizeof($documents) !== sizeof($entries)) {
652
-			throw new Exception('Unexpected SearchResult: ' . json_encode($searchResult));
652
+			throw new Exception('Unexpected SearchResult: '.json_encode($searchResult));
653 653
 		}
654 654
 
655 655
 		foreach ($documents as $document) {
656 656
 			if (!in_array($document->getId(), $entries)) {
657
-				throw new Exception('Unexpected Document: ' . json_encode($document));
657
+				throw new Exception('Unexpected Document: '.json_encode($document));
658 658
 			}
659 659
 		}
660 660
 	}
@@ -667,7 +667,7 @@  discard block
 block discarded – undo
667 667
 	 * @throws InterruptException
668 668
 	 */
669 669
 	private function pause(OutputInterface $output, int $s) {
670
-		$this->output($output, 'Pausing ' . $s . ' seconds');
670
+		$this->output($output, 'Pausing '.$s.' seconds');
671 671
 
672 672
 		for ($i = 1; $i <= $s; $i++) {
673 673
 			if (time_nanosleep(1, 0) !== true) {
Please login to merge, or discard this patch.
lib/Command/DocumentStatus.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -128,14 +128,14 @@  discard block
 block discarded – undo
128 128
 
129 129
 
130 130
 		if ($json) {
131
-			echo json_encode($index, JSON_PRETTY_PRINT) . "\n";
131
+			echo json_encode($index, JSON_PRETTY_PRINT)."\n";
132 132
 
133 133
 			return 0;
134 134
 		}
135 135
 
136 136
 		$status = $this->statusConvertToString($index->getStatus());
137 137
 		$desc = $this->statusAvailable[$status];
138
-		$output->writeln('current status: <info>' . $status . '</info> (' . $desc . ')');
138
+		$output->writeln('current status: <info>'.$status.'</info> ('.$desc.')');
139 139
 
140 140
 		return 0;
141 141
 	}
@@ -196,7 +196,7 @@  discard block
 block discarded – undo
196 196
 				return IIndex::INDEX_FAILED;
197 197
 		}
198 198
 
199
-		throw new Exception("Specify a valid status: " . implode(', ', array_keys($this->statusAvailable)));
199
+		throw new Exception("Specify a valid status: ".implode(', ', array_keys($this->statusAvailable)));
200 200
 	}
201 201
 
202 202
 }
Please login to merge, or discard this patch.