@@ -123,13 +123,13 @@ |
||
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 |
@@ -126,12 +126,12 @@ |
||
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 |
@@ -84,7 +84,7 @@ discard block |
||
84 | 84 | public function generateIndexDocumentContentLicense(IIndexOptions $options): IIndexDocument { |
85 | 85 | $indexDocument = $this->generateIndexDocument(self::DOCUMENT_TYPE_LICENSE); |
86 | 86 | |
87 | - $content = file_get_contents(__DIR__ . '/../../LICENSE'); |
|
87 | + $content = file_get_contents(__DIR__.'/../../LICENSE'); |
|
88 | 88 | $indexDocument->setContent($content); |
89 | 89 | |
90 | 90 | if ($options === null) { |
@@ -141,7 +141,7 @@ discard block |
||
141 | 141 | $orig = call_user_func([$origIndex, $method]); |
142 | 142 | $compare = call_user_func([$compareIndex, $method]); |
143 | 143 | if ($orig !== $compare) { |
144 | - throw new \Exception($method . '() orig:' . $orig . ' compare:' . $compare); |
|
144 | + throw new \Exception($method.'() orig:'.$orig.' compare:'.$compare); |
|
145 | 145 | |
146 | 146 | }; |
147 | 147 | } |