Completed
Push — master ( b3735d...6e77c8 )
by Maxence
03:11 queued 01:13
created
lib/Model/IndexDocument.php 1 patch
Doc Comments   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -84,6 +84,9 @@  discard block
 block discarded – undo
84 84
 	public $contentEncoded;
85 85
 
86 86
 
87
+	/**
88
+	 * @param string $id
89
+	 */
87 90
 	public function __construct($providerId, $id) {
88 91
 		$this->providerId = $providerId;
89 92
 		$this->id = $id;
@@ -424,7 +427,7 @@  discard block
 block discarded – undo
424 427
 	}
425 428
 
426 429
 	/**
427
-	 * @param $excerpt
430
+	 * @param string $excerpt
428 431
 	 *
429 432
 	 * @return mixed
430 433
 	 */
Please login to merge, or discard this patch.
lib/Model/Runner.php 2 patches
Doc Comments   +9 added lines, -4 removed lines patch added patch discarded remove patch
@@ -214,6 +214,11 @@  discard block
 block discarded – undo
214 214
 		$this->infoUpdated();
215 215
 	}
216 216
 
217
+	/**
218
+	 * @param string $info
219
+	 * @param string $value
220
+	 * @param string $colored
221
+	 */
217 222
 	private function setInfoColored($info, $value, $colored) {
218 223
 		if ($colored === '') {
219 224
 			return;
@@ -257,7 +262,7 @@  discard block
 block discarded – undo
257 262
 	}
258 263
 
259 264
 	/**
260
-	 * @param $key
265
+	 * @param string $key
261 266
 	 */
262 267
 	public function keyPressed($key) {
263 268
 		foreach ($this->methodOnKeyPress as $method) {
@@ -339,7 +344,7 @@  discard block
 block discarded – undo
339 344
 
340 345
 
341 346
 	/**
342
-	 * @param $tick
347
+	 * @param integer $tick
343 348
 	 */
344 349
 	private function updateTick($tick) {
345 350
 		if (($this->ramTick + self::INFO_UPDATE) > $tick) {
@@ -353,8 +358,8 @@  discard block
 block discarded – undo
353 358
 
354 359
 	/**
355 360
 	 * @deprecated - verifier l'interet !?
356
-	 * @param $reason
357
-	 * @param $stop
361
+	 * @param string $reason
362
+	 * @param boolean $stop
358 363
 	 */
359 364
 	public function exception($reason, $stop) {
360 365
 		if (!$stop) {
Please login to merge, or discard this patch.
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.
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.
lib/Service/IndexService.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -364,7 +364,7 @@
 block discarded – undo
364 364
 	 * @param IndexDocument $document
365 365
 	 *
366 366
 	 * @return
367
-	 * @throws Exception
367
+	 Index @throws Exception
368 368
 	 */
369 369
 	public function indexDocument(
370 370
 		IFullTextSearchPlatform $platform, IFullTextSearchProvider $provider, $document
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -149,7 +149,7 @@
 block discarded – undo
149 149
 	public function indexProviderContentFromUser(
150 150
 		IFullTextSearchPlatform $platform, IFullTextSearchProvider $provider, $userId, $options
151 151
 	) {
152
-		$this->updateRunnerAction('generateIndex' . $provider->getName());
152
+		$this->updateRunnerAction('generateIndex'.$provider->getName());
153 153
 		$this->updateRunnerInfoArray(
154 154
 			[
155 155
 				'userId'       => $userId,
Please login to merge, or discard this patch.
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/Command/Live.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -461,7 +461,7 @@
 block discarded – undo
461 461
 		$index = $error['index'];
462 462
 		$errorIndex = '';
463 463
 		if ($index !== null) {
464
-			$errorIndex = $index->getProviderId() . ':' . $index->getDocumentId();
464
+			$errorIndex = $index->getProviderId().':'.$index->getDocumentId();
465 465
 		}
466 466
 
467 467
 		$width = $this->terminal->getWidth() - 13;
Please login to merge, or discard this patch.
lib/Command/Index.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -461,7 +461,7 @@
 block discarded – undo
461 461
 		$index = $error['index'];
462 462
 		$errorIndex = '';
463 463
 		if ($index !== null) {
464
-			$errorIndex = $index->getProviderId() . ':' . $index->getDocumentId();
464
+			$errorIndex = $index->getProviderId().':'.$index->getDocumentId();
465 465
 		}
466 466
 
467 467
 		$width = $this->terminal->getWidth() - 13;
Please login to merge, or discard this patch.