Completed
Push — master ( cad7f2...ceba86 )
by Maxence
02:28 queued 38s
created
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/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/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/Service/IndexService.php 1 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/Service/CliService.php 1 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/Model/Runner.php 1 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/Model/IndexDocument.php 1 patch
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.