Completed
Push — master ( d0a64a...9cb9de )
by Maxence
02:25
created
lib/Model/Runner.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -235,7 +235,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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);
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
@@ -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.
lib/Model/IndexDocument.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -281,7 +281,7 @@
 block discarded – undo
281 281
 		foreach ($ak as $source) {
282 282
 			$tags = $this->subTags[$source];
283 283
 			foreach ($tags as $tag) {
284
-				$subTags[] = $source . '_' . $tag;
284
+				$subTags[] = $source.'_'.$tag;
285 285
 			}
286 286
 		}
287 287
 
Please login to merge, or discard this patch.
lib/Model/SearchRequest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -169,7 +169,7 @@  discard block
 block discarded – undo
169 169
 
170 170
 		$options = ['is', 'show'];
171 171
 		if (in_array($kw, $options)) {
172
-			$this->addOption($kw . '_' . $value, '1');
172
+			$this->addOption($kw.'_'.$value, '1');
173 173
 
174 174
 			return true;
175 175
 		}
@@ -422,7 +422,7 @@  discard block
 block discarded – undo
422 422
 		foreach ($ak as $source) {
423 423
 			$tags = $this->subTags[$source];
424 424
 			foreach ($tags as $tag) {
425
-				$subTags[] = $source . '_' . $tag;
425
+				$subTags[] = $source.'_'.$tag;
426 426
 			}
427 427
 		}
428 428
 
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/Index.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -592,7 +592,7 @@  discard block
 block discarded – undo
592 592
 		$index = $error['index'];
593 593
 		$errorIndex = '';
594 594
 		if ($index !== null) {
595
-			$errorIndex = $index->getProviderId() . ':' . $index->getDocumentId();
595
+			$errorIndex = $index->getProviderId().':'.$index->getDocumentId();
596 596
 		}
597 597
 
598 598
 		$width = $this->terminal->getWidth() - 13;
@@ -644,7 +644,7 @@  discard block
 block discarded – undo
644 644
 		$index = $result['index'];
645 645
 		$resultIndex = '';
646 646
 		if ($index !== null) {
647
-			$resultIndex = $index->getProviderId() . ':' . $index->getDocumentId();
647
+			$resultIndex = $index->getProviderId().':'.$index->getDocumentId();
648 648
 		}
649 649
 
650 650
 
Please login to merge, or discard this patch.