Completed
Push — master ( e830a5...df6434 )
by Maxence
02:08
created
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 IndexDocument[] $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/Db/TickRequestBuilder.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -108,10 +108,10 @@
 block discarded – undo
108 108
 	 * @return Tick
109 109
 	 */
110 110
 	protected function parseTickSelectSql(array $data): Tick {
111
-		$tick = new Tick($data['source'], (int) $data['id']);
111
+		$tick = new Tick($data['source'], (int)$data['id']);
112 112
 		$tick->setData(json_decode($data['data'], true))
113
-			 ->setTick((int) $data['tick'])
114
-			 ->setFirstTick((int) $data['first_tick'])
113
+			 ->setTick((int)$data['tick'])
114
+			 ->setFirstTick((int)$data['first_tick'])
115 115
 			 ->setStatus($data['status'])
116 116
 			 ->setAction($data['action']);
117 117
 
Please login to merge, or discard this patch.
lib/Db/CoreRequestBuilder.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -191,8 +191,8 @@  discard block
 block discarded – undo
191 191
 	 */
192 192
 	private function limitToDBField(IQueryBuilder &$qb, string $field, string $value) {
193 193
 		$expr = $qb->expr();
194
-		$pf = ($qb->getType() === QueryBuilder::SELECT) ? $this->defaultSelectAlias . '.' : '';
195
-		$field = $pf . $field;
194
+		$pf = ($qb->getType() === QueryBuilder::SELECT) ? $this->defaultSelectAlias.'.' : '';
195
+		$field = $pf.$field;
196 196
 
197 197
 		$qb->andWhere($expr->eq($field, $qb->createNamedParameter($value)));
198 198
 	}
@@ -204,8 +204,8 @@  discard block
 block discarded – undo
204 204
 	 */
205 205
 	private function limitToDBFieldInt(IQueryBuilder &$qb, string $field, int $value) {
206 206
 		$expr = $qb->expr();
207
-		$pf = ($qb->getType() === QueryBuilder::SELECT) ? $this->defaultSelectAlias . '.' : '';
208
-		$field = $pf . $field;
207
+		$pf = ($qb->getType() === QueryBuilder::SELECT) ? $this->defaultSelectAlias.'.' : '';
208
+		$field = $pf.$field;
209 209
 
210 210
 		$qb->andWhere($expr->eq($field, $qb->createNamedParameter($value)));
211 211
 	}
@@ -218,8 +218,8 @@  discard block
 block discarded – undo
218 218
 	 */
219 219
 	private function limitToDBFieldArray(IQueryBuilder &$qb, string $field, array $values) {
220 220
 		$expr = $qb->expr();
221
-		$pf = ($qb->getType() === QueryBuilder::SELECT) ? $this->defaultSelectAlias . '.' : '';
222
-		$field = $pf . $field;
221
+		$pf = ($qb->getType() === QueryBuilder::SELECT) ? $this->defaultSelectAlias.'.' : '';
222
+		$field = $pf.$field;
223 223
 
224 224
 		if (!is_array($values)) {
225 225
 			$values = [$values];
@@ -239,8 +239,8 @@  discard block
 block discarded – undo
239 239
 	 */
240 240
 	protected function limitToQueuedIndexes(IQueryBuilder &$qb) {
241 241
 		$expr = $qb->expr();
242
-		$pf = ($qb->getType() === QueryBuilder::SELECT) ? $this->defaultSelectAlias . '.' : '';
243
-		$qb->andWhere($expr->neq($pf . 'status', $qb->createNamedParameter(Index::INDEX_OK)));
242
+		$pf = ($qb->getType() === QueryBuilder::SELECT) ? $this->defaultSelectAlias.'.' : '';
243
+		$qb->andWhere($expr->neq($pf.'status', $qb->createNamedParameter(Index::INDEX_OK)));
244 244
 	}
245 245
 
246 246
 }
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
@@ -251,7 +251,7 @@  discard block
 block discarded – undo
251 251
 		}
252 252
 
253 253
 		if ($color !== '') {
254
-			$this->info[$info . 'Colored'] = '<' . $color . '>' . $value . '</' . $color . '>';
254
+			$this->info[$info.'Colored'] = '<'.$color.'>'.$value.'</'.$color.'>';
255 255
 		}
256 256
 	}
257 257
 
@@ -394,7 +394,7 @@  discard block
 block discarded – undo
394 394
 			return;
395 395
 		}
396 396
 
397
-		$this->setInfo('_memory', round((memory_get_usage() / 1024 / 1024)) . ' MB');
397
+		$this->setInfo('_memory', round((memory_get_usage() / 1024 / 1024)).' MB');
398 398
 		$this->ramUpdate = $tick;
399 399
 	}
400 400
 
@@ -407,7 +407,7 @@  discard block
 block discarded – undo
407 407
 	 */
408 408
 	public function exception(string $reason, bool $stop) {
409 409
 		if (!$stop) {
410
-			$this->output('Exception: ' . $reason);
410
+			$this->output('Exception: '.$reason);
411 411
 			// TODO: feed an array of exceptions for log;
412 412
 		}
413 413
 		$this->runningService->exception($this->tickId, $reason, $stop);
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
@@ -238,18 +238,18 @@
 block discarded – undo
238 238
 		$preAction = $tick->getAction();
239 239
 
240 240
 		if ($preAction !== '') {
241
-			$preActionTotal = $tick->getInfoFloat($preAction . 'Total', 0);
242
-			$preActionStart = $tick->getInfoFloat($preAction . 'Init', 0);
241
+			$preActionTotal = $tick->getInfoFloat($preAction.'Total', 0);
242
+			$preActionStart = $tick->getInfoFloat($preAction.'Init', 0);
243 243
 
244 244
 			if ($preActionStart > 0) {
245 245
 
246 246
 				$preActionTotal += ($now - $preActionStart);
247
-				$tick->setInfoFloat($preAction . 'Total', $preActionTotal);
248
-				$tick->unsetInfo($preAction . 'Init');
247
+				$tick->setInfoFloat($preAction.'Total', $preActionTotal);
248
+				$tick->unsetInfo($preAction.'Init');
249 249
 			}
250 250
 		}
251 251
 		$tick->setAction($action)
252
-			 ->setInfoFloat($action . 'Init', $now);
252
+			 ->setInfoFloat($action.'Init', $now);
253 253
 	}
254 254
 
255 255
 
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
@@ -172,7 +172,7 @@  discard block
 block discarded – undo
172 172
 		$platform = \OC::$server->query((string)$selected->getClass());
173 173
 		if (!($platform instanceof IFullTextSearchPlatform)) {
174 174
 			throw new PlatformIsNotCompatibleException(
175
-				$selected->getClass() . ' is not a compatible FullTextSearchPlatform'
175
+				$selected->getClass().' is not a compatible FullTextSearchPlatform'
176 176
 			);
177 177
 		}
178 178
 
@@ -204,7 +204,7 @@  discard block
 block discarded – undo
204 204
 		}
205 205
 
206 206
 		throw new PlatformDoesNotExistException(
207
-			'FullTextSearchPlatform ' . $selected . ' is not available'
207
+			'FullTextSearchPlatform '.$selected.' is not available'
208 208
 		);
209 209
 	}
210 210
 
Please login to merge, or discard this patch.
appinfo/autoload.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -31,9 +31,9 @@
 block discarded – undo
31 31
 namespace OCA\FullTextSearch\AppInfo;
32 32
 
33 33
 
34
-$composerDir = __DIR__ . '/../vendor/';
34
+$composerDir = __DIR__.'/../vendor/';
35 35
 
36
-if (is_dir($composerDir) && file_exists($composerDir . 'autoload.php')) {
37
-	require_once $composerDir . 'autoload.php';
36
+if (is_dir($composerDir) && file_exists($composerDir.'autoload.php')) {
37
+	require_once $composerDir.'autoload.php';
38 38
 }
39 39
 
Please login to merge, or discard this patch.
appinfo/app.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@
 block discarded – undo
34 34
 use OCP\AppFramework\QueryException;
35 35
 
36 36
 
37
-require_once __DIR__ . '/autoload.php';
37
+require_once __DIR__.'/autoload.php';
38 38
 
39 39
 try {
40 40
 	$app = new Application();
Please login to merge, or discard this patch.
lib/Cron/Index.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
100 100
 			$this->liveCycle();
101 101
 			$this->runner->stop();
102 102
 		} catch (Exception $e) {
103
-			$this->miscService->log('Exception while cronIndex: ' . get_class($e) . ' - ' . $e->getMessage());
103
+			$this->miscService->log('Exception while cronIndex: '.get_class($e).' - '.$e->getMessage());
104 104
 			$this->runner->exception($e->getMessage(), true);
105 105
 		}
106 106
 
@@ -164,6 +164,6 @@  discard block
 block discarded – undo
164 164
 	 *
165 165
 	 */
166 166
 	private function setLastErrReset() {
167
-		$this->configService->setAppValue(ConfigService::CRON_LAST_ERR_RESET, (string) time());
167
+		$this->configService->setAppValue(ConfigService::CRON_LAST_ERR_RESET, (string)time());
168 168
 	}
169 169
 }
Please login to merge, or discard this patch.