Completed
Push — master ( ceba86...fa1fed )
by Maxence
01:57
created
lib/Service/ProviderService.php 2 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -214,6 +214,9 @@
 block discarded – undo
214 214
 	}
215 215
 
216 216
 
217
+	/**
218
+	 * @param boolean $boolean
219
+	 */
217 220
 	public function setProviderAsIndexed(IFullTextSearchProvider $provider, $boolean) {
218 221
 		$this->configService->setProviderOptions(
219 222
 			$provider->getId(), ConfigService::PROVIDER_INDEXED, (($boolean) ? '1' : '0')
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -107,7 +107,7 @@  discard block
 block discarded – undo
107 107
 		$provider = \OC::$server->query((string)$providerId);
108 108
 		if (!($provider instanceof IFullTextSearchProvider)) {
109 109
 			throw new ProviderIsNotCompatibleException(
110
-				$providerId . ' is not a compatible IFullTextSearchProvider'
110
+				$providerId.' is not a compatible IFullTextSearchProvider'
111 111
 			);
112 112
 		}
113 113
 
@@ -196,7 +196,7 @@  discard block
 block discarded – undo
196 196
 			}
197 197
 		}
198 198
 
199
-		throw new ProviderDoesNotExistException('Provider \'' . $providerId . '\' does not exist');
199
+		throw new ProviderDoesNotExistException('Provider \''.$providerId.'\' does not exist');
200 200
 	}
201 201
 
202 202
 
@@ -284,7 +284,7 @@  discard block
 block discarded – undo
284 284
 			$knownProvider = $providerWrapper->getProvider();
285 285
 			if ($knownProvider->getId() === $provider->getId()) {
286 286
 				throw new ProviderIsNotUniqueException(
287
-					'FullTextSearchProvider ' . $provider->getId() . ' already exist'
287
+					'FullTextSearchProvider '.$provider->getId().' already exist'
288 288
 				);
289 289
 			}
290 290
 		}
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
@@ -105,13 +105,13 @@
 block discarded – undo
105 105
 
106 106
 	private function displaySearchResult(SearchResult $searchResult) {
107 107
 
108
-		echo '> ' . $searchResult->getProvider()
109
-								 ->getName() . "\n";
108
+		echo '> '.$searchResult->getProvider()
109
+								 ->getName()."\n";
110 110
 
111 111
 		/** @var IndexDocument[] $result */
112 112
 		$result = $searchResult->getDocuments();
113 113
 		foreach ($result as $document) {
114
-			echo ' - ' . $document->getId() . ' score:' . $document->getScore() . "\n";
114
+			echo ' - '.$document->getId().' score:'.$document->getScore()."\n";
115 115
 		}
116 116
 	}
117 117
 
Please login to merge, or discard this patch.
lib/Service/RunningService.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -224,18 +224,18 @@
 block discarded – undo
224 224
 		$preAction = $tick->getAction();
225 225
 
226 226
 		if ($preAction !== '') {
227
-			$preActionTotal = $tick->getInfo($preAction . 'Total', 0);
228
-			$preActionStart = $tick->getInfo($preAction . 'Init', 0);
227
+			$preActionTotal = $tick->getInfo($preAction.'Total', 0);
228
+			$preActionStart = $tick->getInfo($preAction.'Init', 0);
229 229
 
230 230
 			if ($preActionStart > 0) {
231 231
 
232 232
 				$preActionTotal += ($now - $preActionStart);
233
-				$tick->setInfo($preAction . 'Total', $preActionTotal);
234
-				$tick->unsetInfo($preAction . 'Init');
233
+				$tick->setInfo($preAction.'Total', $preActionTotal);
234
+				$tick->unsetInfo($preAction.'Init');
235 235
 			}
236 236
 		}
237 237
 		$tick->setAction($action)
238
-			 ->setInfo($action . 'Init', $now);
238
+			 ->setInfo($action.'Init', $now);
239 239
 	}
240 240
 
241 241
 
Please login to merge, or discard this patch.
lib/Service/SearchService.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -184,7 +184,7 @@
 block discarded – undo
184 184
 			try {
185 185
 				$rights->setCircles(Circles::joinedCircleIds($user->getUID()));
186 186
 			} catch (Exception $e) {
187
-				$this->miscService->log('Circles is set as enabled but: ' . $e->getMessage());
187
+				$this->miscService->log('Circles is set as enabled but: '.$e->getMessage());
188 188
 			}
189 189
 		}
190 190
 
Please login to merge, or discard this patch.
lib/Model/Index.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -129,7 +129,7 @@
 block discarded – undo
129 129
 	/**
130 130
 	 * @param int $status
131 131
 	 *
132
-	 * @return bool
132
+	 * @return integer
133 133
 	 */
134 134
 	public function isStatus($status) {
135 135
 		return ((int)$status & $this->getStatus());
Please login to merge, or discard this patch.
lib/Model/SearchRequest.php 2 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -212,8 +212,8 @@
 block discarded – undo
212 212
 	}
213 213
 
214 214
 	/**
215
-	 * @param $key
216
-	 * @param $value
215
+	 * @param string $key
216
+	 * @param string $value
217 217
 	 *
218 218
 	 * @return $this
219 219
 	 */
Please login to merge, or discard this 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/Test.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -210,7 +210,7 @@
 block discarded – undo
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
 	 */
Please login to merge, or discard this patch.
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -207,7 +207,7 @@  discard block
 block discarded – undo
207 207
 			$output->write(' ', true);
208 208
 		}
209 209
 
210
-		$output->write($line . ' ', false);
210
+		$output->write($line.' ', false);
211 211
 	}
212 212
 
213 213
 
@@ -257,7 +257,7 @@  discard block
 block discarded – undo
257 257
 		$this->output($output, 'Testing mocked provider: get indexable documents.');
258 258
 		$indexableDocuments =
259 259
 			$testProvider->generateIndexableDocuments(TestService::DOCUMENT_USER1);
260
-		$this->output($output, '(' . sizeof($indexableDocuments) . ' items)', false);
260
+		$this->output($output, '('.sizeof($indexableDocuments).' items)', false);
261 261
 		$this->output($output, true);
262 262
 	}
263 263
 
@@ -273,12 +273,12 @@  discard block
 block discarded – undo
273 273
 		$wrapper = $this->platformService->getPlatform();
274 274
 		$testPlatform = $wrapper->getPlatform();
275 275
 
276
-		$this->output($output, '(' . $testPlatform->getName() . ')', false);
276
+		$this->output($output, '('.$testPlatform->getName().')', false);
277 277
 		$this->output($output, true);
278 278
 
279 279
 		$this->output($output, 'Testing search platform.');
280 280
 		if (!$testPlatform->testPlatform()) {
281
-			throw new Exception ('Search platform (' . $testPlatform->getName() . ') down ?');
281
+			throw new Exception('Search platform ('.$testPlatform->getName().') down ?');
282 282
 		}
283 283
 		$this->output($output, true);
284 284
 
@@ -374,13 +374,13 @@  discard block
 block discarded – undo
374 374
 			);
375 375
 
376 376
 			$this->output(
377
-				$output, '(size: ' . $indexDocument->getContentSize() . ')', false
377
+				$output, '(size: '.$indexDocument->getContentSize().')', false
378 378
 			);
379 379
 			$this->output($output, true);
380 380
 		} catch (Exception $e) {
381 381
 			throw new Exception(
382
-				"Issue while getting test document '" . TestService::DOCUMENT_TYPE_LICENSE
383
-				. "' from search platform: " . $e->getMessage()
382
+				"Issue while getting test document '".TestService::DOCUMENT_TYPE_LICENSE
383
+				. "' from search platform: ".$e->getMessage()
384 384
 			);
385 385
 		}
386 386
 
@@ -554,7 +554,7 @@  discard block
 block discarded – undo
554 554
 	) {
555 555
 		$this->output(
556 556
 			$output,
557
-			" - '" . $search . "'" . (($moreOutput === '') ? '' : ' - ' . $moreOutput . ' - ')
557
+			" - '".$search."'".(($moreOutput === '') ? '' : ' - '.$moreOutput.' - ')
558 558
 		);
559 559
 		$request = new SearchRequest();
560 560
 
@@ -568,7 +568,7 @@  discard block
 block discarded – undo
568 568
 
569 569
 		$this->output(
570 570
 			$output,
571
-			'(result: ' . $searchResult->getCount() . ', expected: ' . json_encode($expected) . ')',
571
+			'(result: '.$searchResult->getCount().', expected: '.json_encode($expected).')',
572 572
 			false
573 573
 		);
574 574
 		$this->compareSearchResult($searchResult, $expected);
@@ -632,12 +632,12 @@  discard block
 block discarded – undo
632 632
 	private function compareSearchResult(SearchResult $searchResult, $entries) {
633 633
 		$documents = $searchResult->getDocuments();
634 634
 		if (sizeof($documents) !== sizeof($entries)) {
635
-			throw new \Exception('Unexpected SearchResult: ' . json_encode($searchResult));
635
+			throw new \Exception('Unexpected SearchResult: '.json_encode($searchResult));
636 636
 		}
637 637
 
638 638
 		foreach ($documents as $document) {
639 639
 			if (!in_array($document->getId(), $entries)) {
640
-				throw new \Exception('Unexpected Document: ' . json_encode($document));
640
+				throw new \Exception('Unexpected Document: '.json_encode($document));
641 641
 			}
642 642
 		}
643 643
 	}
@@ -650,7 +650,7 @@  discard block
 block discarded – undo
650 650
 	 * @throws InterruptException
651 651
 	 */
652 652
 	private function pause(OutputInterface $output, $s) {
653
-		$this->output($output, 'Pausing ' . $s . ' seconds');
653
+		$this->output($output, 'Pausing '.$s.' seconds');
654 654
 
655 655
 		for ($i = 1; $i <= $s; $i++) {
656 656
 			if (time_nanosleep(1, 0) !== true) {
Please login to merge, or discard this patch.
lib/Service/TestService.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 		}
Please login to merge, or discard this patch.
lib/Service/CliService.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -73,7 +73,7 @@
 block discarded – undo
73 73
 
74 74
 	/**
75 75
 	 * @param string $panelId
76
-	 * @param array $lines
76
+	 * @param string[] $lines
77 77
 	 */
78 78
 	public function createPanel($panelId, $lines) {
79 79
 		if (!is_array($lines)) {
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -182,7 +182,7 @@
 block discarded – undo
182 182
 			}
183 183
 		}
184 184
 
185
-		$this->display->setFormat(implode("\n", $format) . "\n");
185
+		$this->display->setFormat(implode("\n", $format)."\n");
186 186
 		$this->refreshInfo();
187 187
 		$this->display->start();
188 188
 	}
Please login to merge, or discard this patch.