Completed
Pull Request — master (#458)
by Maxence
02:16
created
lib/Service/IndexService.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -210,7 +210,7 @@  discard block
 block discarded – undo
210 210
 	/**
211 211
 	 * @param IFullTextSearchProvider $provider
212 212
 	 * @param IIndexDocument[] $documents
213
-	 * @param IIndexOptions $options
213
+	 * @param IndexOptions $options
214 214
 	 *
215 215
 	 * @return IIndexDocument[]
216 216
 	 * @throws Exception
@@ -491,7 +491,7 @@  discard block
 block discarded – undo
491 491
 
492 492
 
493 493
 	/**
494
-	 * @param IIndex $index
494
+	 * @param Index $index
495 495
 	 */
496 496
 	private function updateIndexError(IIndex $index) {
497 497
 
Please login to merge, or discard this patch.
lib/Service/TestService.php 2 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
 
78 78
 
79 79
 	/**
80
-	 * @param IIndexOptions $options
80
+	 * @param \OCA\FullTextSearch\Model\IndexOptions $options
81 81
 	 *
82 82
 	 * @return IIndexDocument
83 83
 	 */
@@ -104,7 +104,7 @@  discard block
 block discarded – undo
104 104
 
105 105
 
106 106
 	/**
107
-	 * @param IIndexOptions $options
107
+	 * @param \OCA\FullTextSearch\Model\IndexOptions $options
108 108
 	 *
109 109
 	 * @return IIndexDocument
110 110
 	 */
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 		}
Please login to merge, or discard this patch.
lib/Command/Search.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -123,13 +123,13 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
lib/Command/DocumentProvider.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -126,12 +126,12 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.