Completed
Push — master ( 09f896...7f4a3b )
by Maxence
03:30 queued 10s
created
lib/Command/Test.php 1 patch
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -215,7 +215,7 @@  discard block
 block discarded – undo
215 215
 			$output->write(' ', true);
216 216
 		}
217 217
 
218
-		$output->write($line . ' ', false);
218
+		$output->write($line.' ', false);
219 219
 	}
220 220
 
221 221
 
@@ -276,7 +276,7 @@  discard block
 block discarded – undo
276 276
 		$testProvider->setIndexOptions(new IndexOptions());
277 277
 		$indexableDocuments =
278 278
 			$testProvider->generateIndexableDocuments(TestService::DOCUMENT_USER1, '');
279
-		$this->output($output, '(' . sizeof($indexableDocuments) . ' items)', false);
279
+		$this->output($output, '('.sizeof($indexableDocuments).' items)', false);
280 280
 		$this->outputResult($output, true);
281 281
 	}
282 282
 
@@ -292,12 +292,12 @@  discard block
 block discarded – undo
292 292
 		$wrapper = $this->platformService->getPlatform();
293 293
 		$testPlatform = $wrapper->getPlatform();
294 294
 
295
-		$this->output($output, '(' . $testPlatform->getName() . ')', false);
295
+		$this->output($output, '('.$testPlatform->getName().')', false);
296 296
 		$this->outputResult($output, true);
297 297
 
298 298
 		$this->output($output, 'Testing search platform.');
299 299
 		if (!$testPlatform->testPlatform()) {
300
-			throw new Exception ('Search platform (' . $testPlatform->getName() . ') down ?');
300
+			throw new Exception('Search platform ('.$testPlatform->getName().') down ?');
301 301
 		}
302 302
 		$this->outputResult($output, true);
303 303
 
@@ -393,13 +393,13 @@  discard block
 block discarded – undo
393 393
 			);
394 394
 
395 395
 			$this->output(
396
-				$output, '(size: ' . $indexDocument->getContentSize() . ')', false
396
+				$output, '(size: '.$indexDocument->getContentSize().')', false
397 397
 			);
398 398
 			$this->outputResult($output, true);
399 399
 		} catch (Exception $e) {
400 400
 			throw new Exception(
401
-				"Issue while getting test document '" . TestService::DOCUMENT_TYPE_LICENSE
402
-				. "' from search platform: " . $e->getMessage()
401
+				"Issue while getting test document '".TestService::DOCUMENT_TYPE_LICENSE
402
+				. "' from search platform: ".$e->getMessage()
403 403
 			);
404 404
 		}
405 405
 
@@ -569,7 +569,7 @@  discard block
 block discarded – undo
569 569
 	) {
570 570
 		$this->output(
571 571
 			$output,
572
-			" - '" . $search . "'" . (($moreOutput === '') ? '' : ' - ' . $moreOutput . ' - ')
572
+			" - '".$search."'".(($moreOutput === '') ? '' : ' - '.$moreOutput.' - ')
573 573
 		);
574 574
 		$request = new SearchRequest();
575 575
 
@@ -583,7 +583,7 @@  discard block
 block discarded – undo
583 583
 
584 584
 		$this->output(
585 585
 			$output,
586
-			'(result: ' . $searchResult->getCount() . ', expected: ' . json_encode($expected) . ')',
586
+			'(result: '.$searchResult->getCount().', expected: '.json_encode($expected).')',
587 587
 			false
588 588
 		);
589 589
 		$this->compareSearchResult($searchResult, $expected);
@@ -647,12 +647,12 @@  discard block
 block discarded – undo
647 647
 	private function compareSearchResult(SearchResult $searchResult, array $entries) {
648 648
 		$documents = $searchResult->getDocuments();
649 649
 		if (sizeof($documents) !== sizeof($entries)) {
650
-			throw new \Exception('Unexpected SearchResult: ' . json_encode($searchResult));
650
+			throw new \Exception('Unexpected SearchResult: '.json_encode($searchResult));
651 651
 		}
652 652
 
653 653
 		foreach ($documents as $document) {
654 654
 			if (!in_array($document->getId(), $entries)) {
655
-				throw new \Exception('Unexpected Document: ' . json_encode($document));
655
+				throw new \Exception('Unexpected Document: '.json_encode($document));
656 656
 			}
657 657
 		}
658 658
 	}
@@ -665,7 +665,7 @@  discard block
 block discarded – undo
665 665
 	 * @throws InterruptException
666 666
 	 */
667 667
 	private function pause(OutputInterface $output, int $s) {
668
-		$this->output($output, 'Pausing ' . $s . ' seconds');
668
+		$this->output($output, 'Pausing '.$s.' seconds');
669 669
 
670 670
 		for ($i = 1; $i <= $s; $i++) {
671 671
 			if (time_nanosleep(1, 0) !== true) {
Please login to merge, or discard this patch.