@@ -210,7 +210,7 @@ |
||
210 | 210 | |
211 | 211 | /** |
212 | 212 | * @param string|bool $line |
213 | - * @param $isNewLine |
|
213 | + * @param boolean $isNewLine |
|
214 | 214 | * |
215 | 215 | * @return string |
216 | 216 | */ |
@@ -138,7 +138,7 @@ discard block |
||
138 | 138 | 'platform_delay' |
139 | 139 | ) : self::DELAY_STABILIZE_PLATFORM; |
140 | 140 | |
141 | - echo '$' . $input->getOption('platform_delay') . '$'; |
|
141 | + echo '$'.$input->getOption('platform_delay').'$'; |
|
142 | 142 | $this->output($output, '.Testing your current setup:'); |
143 | 143 | |
144 | 144 | try { |
@@ -204,7 +204,7 @@ discard block |
||
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 |
||
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,7 +268,7 @@ discard block |
||
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.'); |
@@ -358,13 +358,13 @@ discard block |
||
358 | 358 | ); |
359 | 359 | |
360 | 360 | $this->output( |
361 | - $output, '(size: ' . $indexDocument->getContentSize() . ')', false |
|
361 | + $output, '(size: '.$indexDocument->getContentSize().')', false |
|
362 | 362 | ); |
363 | 363 | $this->output($output, true); |
364 | 364 | } catch (Exception $e) { |
365 | 365 | throw new Exception( |
366 | - "Issue while getting test document '" . TestService::DOCUMENT_TYPE_LICENSE |
|
367 | - . "' from search platform: " . $e->getMessage() |
|
366 | + "Issue while getting test document '".TestService::DOCUMENT_TYPE_LICENSE |
|
367 | + . "' from search platform: ".$e->getMessage() |
|
368 | 368 | ); |
369 | 369 | } |
370 | 370 | |
@@ -537,7 +537,7 @@ discard block |
||
537 | 537 | ) { |
538 | 538 | $this->output( |
539 | 539 | $output, |
540 | - " - '" . $search . "'" . (($moreOutput === '') ? '' : ' - ' . $moreOutput . ' - ') |
|
540 | + " - '".$search."'".(($moreOutput === '') ? '' : ' - '.$moreOutput.' - ') |
|
541 | 541 | ); |
542 | 542 | $request = new SearchRequest(); |
543 | 543 | |
@@ -545,7 +545,7 @@ discard block |
||
545 | 545 | $searchResult = $testPlatform->searchDocuments($testProvider, $access, $request); |
546 | 546 | $this->output( |
547 | 547 | $output, |
548 | - '(result: ' . $searchResult->getCount() . ', expected: ' . json_encode($expected) . ')', |
|
548 | + '(result: '.$searchResult->getCount().', expected: '.json_encode($expected).')', |
|
549 | 549 | false |
550 | 550 | ); |
551 | 551 | $this->compareSearchResult($searchResult, $expected); |
@@ -609,12 +609,12 @@ discard block |
||
609 | 609 | private function compareSearchResult(SearchResult $searchResult, $entries) { |
610 | 610 | $documents = $searchResult->getDocuments(); |
611 | 611 | if (sizeof($documents) !== sizeof($entries)) { |
612 | - throw new \Exception('Unexpected SearchResult: ' . json_encode($searchResult)); |
|
612 | + throw new \Exception('Unexpected SearchResult: '.json_encode($searchResult)); |
|
613 | 613 | } |
614 | 614 | |
615 | 615 | foreach ($documents as $document) { |
616 | 616 | if (!in_array($document->getId(), $entries)) { |
617 | - throw new \Exception('Unexpected Document: ' . json_encode($document)); |
|
617 | + throw new \Exception('Unexpected Document: '.json_encode($document)); |
|
618 | 618 | } |
619 | 619 | } |
620 | 620 | } |
@@ -627,7 +627,7 @@ discard block |
||
627 | 627 | * @throws InterruptException |
628 | 628 | */ |
629 | 629 | private function pause(OutputInterface $output, $s) { |
630 | - $this->output($output, 'Pausing ' . $s . ' seconds'); |
|
630 | + $this->output($output, 'Pausing '.$s.' seconds'); |
|
631 | 631 | |
632 | 632 | for ($i = 1; $i <= $s; $i++) { |
633 | 633 | if (time_nanosleep(1, 0) !== true) { |
@@ -77,7 +77,7 @@ discard block |
||
77 | 77 | public function generateIndexDocumentContentLicense(IndexOptions $options = null) { |
78 | 78 | $indexDocument = $this->generateIndexDocument(self::DOCUMENT_TYPE_LICENSE); |
79 | 79 | |
80 | - $content = file_get_contents(__DIR__ . '/../../LICENSE'); |
|
80 | + $content = file_get_contents(__DIR__.'/../../LICENSE'); |
|
81 | 81 | $indexDocument->setContent($content); |
82 | 82 | |
83 | 83 | if ($options === null) { |
@@ -134,7 +134,7 @@ discard block |
||
134 | 134 | $orig = call_user_func([$origIndex, $method]); |
135 | 135 | $compare = call_user_func([$compareIndex, $method]); |
136 | 136 | if ($orig !== $compare) { |
137 | - throw new \Exception($method . '() orig:' . $orig . ' compare:' . $compare); |
|
137 | + throw new \Exception($method.'() orig:'.$orig.' compare:'.$compare); |
|
138 | 138 | |
139 | 139 | }; |
140 | 140 | } |