Completed
Push — master ( 056c6e...0740de )
by Maxence
01:57
created
lib/Command/Test.php 1 patch
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -204,7 +204,7 @@  discard block
 block discarded – undo
204 204
 			$output->write(' ', true);
205 205
 		}
206 206
 
207
-		$output->write($line . ' ', false);
207
+		$output->write($line.' ', false);
208 208
 	}
209 209
 
210 210
 
@@ -254,7 +254,7 @@  discard block
 block discarded – undo
254 254
 		$this->output($output, 'Testing mocked provider: get indexable documents.');
255 255
 		$indexableDocuments =
256 256
 			$testProvider->generateIndexableDocuments(TestService::DOCUMENT_USER1);
257
-		$this->output($output, '(' . sizeof($indexableDocuments) . ' items)', false);
257
+		$this->output($output, '('.sizeof($indexableDocuments).' items)', false);
258 258
 		$this->output($output, true);
259 259
 	}
260 260
 
@@ -268,12 +268,12 @@  discard block
 block discarded – undo
268 268
 	private function testLoadingPlatform($output) {
269 269
 		$this->output($output, 'Loading search platform.');
270 270
 		$testPlatform = $this->platformService->getPlatform();
271
-		$this->output($output, '(' . $testPlatform->getName() . ')', false);
271
+		$this->output($output, '('.$testPlatform->getName().')', false);
272 272
 		$this->output($output, true);
273 273
 
274 274
 		$this->output($output, 'Testing search platform.');
275 275
 		if (!$testPlatform->testPlatform()) {
276
-			throw new Exception ('Search platform (' . $testPlatform->getName() . ') down ?');
276
+			throw new Exception('Search platform ('.$testPlatform->getName().') down ?');
277 277
 		}
278 278
 		$this->output($output, true);
279 279
 
@@ -369,13 +369,13 @@  discard block
 block discarded – undo
369 369
 			);
370 370
 
371 371
 			$this->output(
372
-				$output, '(size: ' . $indexDocument->getContentSize() . ')', false
372
+				$output, '(size: '.$indexDocument->getContentSize().')', false
373 373
 			);
374 374
 			$this->output($output, true);
375 375
 		} catch (Exception $e) {
376 376
 			throw new Exception(
377
-				"Issue while getting test document '" . TestService::DOCUMENT_TYPE_LICENSE
378
-				. "' from search platform: " . $e->getMessage()
377
+				"Issue while getting test document '".TestService::DOCUMENT_TYPE_LICENSE
378
+				. "' from search platform: ".$e->getMessage()
379 379
 			);
380 380
 		}
381 381
 
@@ -549,7 +549,7 @@  discard block
 block discarded – undo
549 549
 	) {
550 550
 		$this->output(
551 551
 			$output,
552
-			" - '" . $search . "'" . (($moreOutput === '') ? '' : ' - ' . $moreOutput . ' - ')
552
+			" - '".$search."'".(($moreOutput === '') ? '' : ' - '.$moreOutput.' - ')
553 553
 		);
554 554
 		$request = new SearchRequest();
555 555
 
@@ -557,7 +557,7 @@  discard block
 block discarded – undo
557 557
 		$searchResult = $testPlatform->searchDocuments($testProvider, $access, $request);
558 558
 		$this->output(
559 559
 			$output,
560
-			'(result: ' . $searchResult->getCount() . ', expected: ' . json_encode($expected) . ')',
560
+			'(result: '.$searchResult->getCount().', expected: '.json_encode($expected).')',
561 561
 			false
562 562
 		);
563 563
 		$this->compareSearchResult($searchResult, $expected);
@@ -621,12 +621,12 @@  discard block
 block discarded – undo
621 621
 	private function compareSearchResult(SearchResult $searchResult, $entries) {
622 622
 		$documents = $searchResult->getDocuments();
623 623
 		if (sizeof($documents) !== sizeof($entries)) {
624
-			throw new \Exception('Unexpected SearchResult: ' . json_encode($searchResult));
624
+			throw new \Exception('Unexpected SearchResult: '.json_encode($searchResult));
625 625
 		}
626 626
 
627 627
 		foreach ($documents as $document) {
628 628
 			if (!in_array($document->getId(), $entries)) {
629
-				throw new \Exception('Unexpected Document: ' . json_encode($document));
629
+				throw new \Exception('Unexpected Document: '.json_encode($document));
630 630
 			}
631 631
 		}
632 632
 	}
@@ -639,7 +639,7 @@  discard block
 block discarded – undo
639 639
 	 * @throws InterruptException
640 640
 	 */
641 641
 	private function pause(OutputInterface $output, $s) {
642
-		$this->output($output, 'Pausing ' . $s . ' seconds');
642
+		$this->output($output, 'Pausing '.$s.' seconds');
643 643
 
644 644
 		for ($i = 1; $i <= $s; $i++) {
645 645
 			if (time_nanosleep(1, 0) !== true) {
Please login to merge, or discard this patch.