Completed
Push — master ( ceba86...fa1fed )
by Maxence
01:57
created
lib/Db/CoreRequestBuilder.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -181,8 +181,8 @@  discard block
 block discarded – undo
181 181
 	 */
182 182
 	private function limitToDBField(IQueryBuilder &$qb, $field, $values) {
183 183
 		$expr = $qb->expr();
184
-		$pf = ($qb->getType() === QueryBuilder::SELECT) ? $this->defaultSelectAlias . '.' : '';
185
-		$field = $pf . $field;
184
+		$pf = ($qb->getType() === QueryBuilder::SELECT) ? $this->defaultSelectAlias.'.' : '';
185
+		$field = $pf.$field;
186 186
 
187 187
 		if (!is_array($values)) {
188 188
 			$values = [$values];
@@ -202,8 +202,8 @@  discard block
 block discarded – undo
202 202
 	 */
203 203
 	protected function limitToQueuedIndexes(IQueryBuilder &$qb) {
204 204
 		$expr = $qb->expr();
205
-		$pf = ($qb->getType() === QueryBuilder::SELECT) ? $this->defaultSelectAlias . '.' : '';
206
-		$qb->andWhere($expr->neq($pf . 'status', $qb->createNamedParameter(Index::INDEX_OK)));
205
+		$pf = ($qb->getType() === QueryBuilder::SELECT) ? $this->defaultSelectAlias.'.' : '';
206
+		$qb->andWhere($expr->neq($pf.'status', $qb->createNamedParameter(Index::INDEX_OK)));
207 207
 	}
208 208
 
209 209
 }
Please login to merge, or discard this patch.
lib/Model/Runner.php 2 patches
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.
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -278,7 +278,7 @@  discard block
 block discarded – undo
278 278
 	}
279 279
 
280 280
 	/**
281
-	 * @param $key
281
+	 * @param string $key
282 282
 	 */
283 283
 	public function keyPressed($key) {
284 284
 		foreach ($this->methodOnKeyPress as $method) {
@@ -371,7 +371,7 @@  discard block
 block discarded – undo
371 371
 
372 372
 
373 373
 	/**
374
-	 * @param $tick
374
+	 * @param integer $tick
375 375
 	 */
376 376
 	private function updateTick($tick) {
377 377
 		if (($this->ramTick + self::MEMORY_INFO_UPDATE) > $tick) {
@@ -386,8 +386,8 @@  discard block
 block discarded – undo
386 386
 	/**
387 387
 	 * @deprecated - verifier l'interet !?
388 388
 	 *
389
-	 * @param $reason
390
-	 * @param $stop
389
+	 * @param string $reason
390
+	 * @param boolean $stop
391 391
 	 */
392 392
 	public function exception($reason, $stop) {
393 393
 		if (!$stop) {
Please login to merge, or discard this patch.
lib/Model/IndexDocument.php 2 patches
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.
Doc Comments   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -89,6 +89,9 @@  discard block
 block discarded – undo
89 89
 	protected $contentEncoded;
90 90
 
91 91
 
92
+	/**
93
+	 * @param string $id
94
+	 */
92 95
 	public function __construct($providerId, $id) {
93 96
 		$this->providerId = $providerId;
94 97
 		$this->id = $id;
@@ -506,7 +509,7 @@  discard block
 block discarded – undo
506 509
 	}
507 510
 
508 511
 	/**
509
-	 * @param $excerpt
512
+	 * @param string $excerpt
510 513
 	 *
511 514
 	 * @return mixed
512 515
 	 */
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.
lib/Model/PlatformWrapper.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -56,7 +56,6 @@
 block discarded – undo
56 56
 	 * Provider constructor.
57 57
 	 *
58 58
 	 * @param string $appId
59
-	 * @param IFullTextSearchPlatform $platform
60 59
 	 */
61 60
 	public function __construct($appId, $class) {
62 61
 		$this->appId = $appId;
Please login to merge, or discard this patch.
lib/Service/ConfigService.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -105,8 +105,8 @@
 block discarded – undo
105 105
 	/**
106 106
 	 * Get a version of an app
107 107
 	 *
108
-	 * @param string $key
109 108
 	 *
109
+	 * @param string $appId
110 110
 	 * @return string
111 111
 	 */
112 112
 	public function getAppVersion($appId) {
Please login to merge, or discard this patch.
lib/Command/Check.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
100 100
 		}
101 101
 
102 102
 		$output->writeln(
103
-			'Full text search ' . $this->configService->getAppValue('installed_version')
103
+			'Full text search '.$this->configService->getAppValue('installed_version')
104 104
 		);
105 105
 		$output->writeln(' ');
106 106
 
@@ -173,7 +173,7 @@  discard block
 block discarded – undo
173 173
 
174 174
 		$output->writeln('- Search Platform:');
175 175
 
176
-		$output->writeln($platform->getName() . ' ' . $wrapper->getVersion());
176
+		$output->writeln($platform->getName().' '.$wrapper->getVersion());
177 177
 		echo json_encode($platform->getConfiguration(), JSON_PRETTY_PRINT);
178 178
 
179 179
 		$output->writeln(' ');
@@ -199,7 +199,7 @@  discard block
 block discarded – undo
199 199
 
200 200
 		foreach ($providers as $providerWrapper) {
201 201
 			$provider = $providerWrapper->getProvider();
202
-			$output->writeln($provider->getName() . ' ' . $providerWrapper->getVersion());
202
+			$output->writeln($provider->getName().' '.$providerWrapper->getVersion());
203 203
 			echo json_encode($provider->getConfiguration(), JSON_PRETTY_PRINT);
204 204
 			$output->writeln('');
205 205
 		}
Please login to merge, or discard this patch.
lib/Service/PlatformService.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -161,7 +161,7 @@  discard block
 block discarded – undo
161 161
 		$platform = \OC::$server->query((string)$selected->getClass());
162 162
 		if (!($platform instanceof IFullTextSearchPlatform)) {
163 163
 			throw new PlatformIsNotCompatibleException(
164
-				$selected . ' is not a compatible FullTextSearchPlatform'
164
+				$selected.' is not a compatible FullTextSearchPlatform'
165 165
 			);
166 166
 		}
167 167
 
@@ -193,7 +193,7 @@  discard block
 block discarded – undo
193 193
 		}
194 194
 
195 195
 		throw new PlatformDoesNotExistException(
196
-			'FullTextSearchPlatform ' . $selected . ' is not available'
196
+			'FullTextSearchPlatform '.$selected.' is not available'
197 197
 		);
198 198
 	}
199 199
 
Please login to merge, or discard this patch.