Completed
Push — master ( 8de354...4e0f9f )
by Maxence
01:38
created
lib/Service/FilesService.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -836,7 +836,7 @@
 block discarded – undo
836 836
 	}
837 837
 
838 838
 	/**
839
-	 * @param IndexDocument $document
839
+	 * @param FilesDocument $document
840 840
 	 * @param Throwable $t
841 841
 	 */
842 842
 	private function manageContentErrorException(IndexDocument $document, Throwable $t) {
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -273,7 +273,7 @@  discard block
 block discarded – undo
273 273
 	private function generateFilesDocumentFromFile(string $viewerId, Node $file): FilesDocument {
274 274
 
275 275
 		$source = $this->getFileSource($file);
276
-		$document = new FilesDocument(FilesProvider::FILES_PROVIDER_ID, (string) $file->getId());
276
+		$document = new FilesDocument(FilesProvider::FILES_PROVIDER_ID, (string)$file->getId());
277 277
 
278 278
 		if ($file->getId() === -1) {
279 279
 			throw new FileIsNotIndexableException();
@@ -406,7 +406,7 @@  discard block
 block discarded – undo
406 406
 			// TODO - update $document with a error status instead of just ignore !
407 407
 			$document->getIndex()
408 408
 					 ->setStatus(IIndex::INDEX_IGNORE);
409
-			echo 'Exception: ' . json_encode($e->getTrace()) . ' - ' . $e->getMessage()
409
+			echo 'Exception: '.json_encode($e->getTrace()).' - '.$e->getMessage()
410 410
 				 . "\n";
411 411
 		}
412 412
 	}
@@ -603,7 +603,7 @@  discard block
 block discarded – undo
603 603
 
604 604
 			} catch (Exception $e) {
605 605
 				$this->miscService->log(
606
-					'Issue while getting information on documentId:' . $document->getId(), 0
606
+					'Issue while getting information on documentId:'.$document->getId(), 0
607 607
 				);
608 608
 			}
609 609
 		}
Please login to merge, or discard this patch.
lib/Service/ConfigService.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -136,7 +136,7 @@  discard block
 block discarded – undo
136 136
 			$defaultValue = $this->defaults[$key];
137 137
 		}
138 138
 
139
-		return (string) $this->config->getAppValue(Application::APP_NAME, $key, $defaultValue);
139
+		return (string)$this->config->getAppValue(Application::APP_NAME, $key, $defaultValue);
140 140
 	}
141 141
 
142 142
 	/**
@@ -234,7 +234,7 @@  discard block
 block discarded – undo
234 234
 	 */
235 235
 	public function setDocumentIndexOption(FilesDocument $document, string $option) {
236 236
 		$document->getIndex()
237
-				 ->addOption('_' . $option, (string)$this->getAppValue($option));
237
+				 ->addOption('_'.$option, (string)$this->getAppValue($option));
238 238
 	}
239 239
 
240 240
 
Please login to merge, or discard this patch.
lib/Service/SearchService.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -108,10 +108,10 @@  discard block
 block discarded – undo
108 108
 	 */
109 109
 	private function searchQueryShareNames(ISearchRequest $request) {
110 110
 		$username = $this->miscService->secureUsername($request->getAuthor());
111
-		$request->addField('share_names.' . $username);
111
+		$request->addField('share_names.'.$username);
112 112
 
113 113
 		$request->addWildcardField('title');
114
-		$request->addWildcardField('share_names.' . $username);
114
+		$request->addWildcardField('share_names.'.$username);
115 115
 	}
116 116
 
117 117
 
@@ -129,8 +129,8 @@  discard block
 block discarded – undo
129 129
 		$currentDir = $this->withoutBeginSlash($this->withEndSlash($currentDir));
130 130
 		$request->addRegexFilters(
131 131
 			[
132
-				['share_names.' . $username => $currentDir . '.*'],
133
-				['title' => $currentDir . '.*']
132
+				['share_names.'.$username => $currentDir.'.*'],
133
+				['title' => $currentDir.'.*']
134 134
 			]
135 135
 		);
136 136
 	}
@@ -148,8 +148,8 @@  discard block
 block discarded – undo
148 148
 		$username = $this->miscService->secureUsername($request->getAuthor());
149 149
 		$request->addRegexFilters(
150 150
 			[
151
-				['share_names.' . $username => '.*\.' . $extension],
152
-				['title' => '.*\.' . $extension]
151
+				['share_names.'.$username => '.*\.'.$extension],
152
+				['title' => '.*\.'.$extension]
153 153
 			]
154 154
 		);
155 155
 	}
@@ -183,7 +183,7 @@  discard block
 block discarded – undo
183 183
 
184 184
 		if (in_array('filename', $in)) {
185 185
 			$username = $this->miscService->secureUsername($request->getAuthor());
186
-			$request->addLimitField('share_names.' . $username);
186
+			$request->addLimitField('share_names.'.$username);
187 187
 			$request->addLimitField('title');
188 188
 		}
189 189
 
@@ -344,7 +344,7 @@  discard block
 block discarded – undo
344 344
 	private function getWebdavId(int $fileId): string {
345 345
 		$instanceId = $this->configService->getSystemValue('instanceid');
346 346
 
347
-		return sprintf("%08s", $fileId) . $instanceId;
347
+		return sprintf("%08s", $fileId).$instanceId;
348 348
 	}
349 349
 
350 350
 
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
@@ -90,8 +90,8 @@  discard block
 block discarded – undo
90 90
 	 */
91 91
 	private function limitToDBField(IQueryBuilder &$qb, string $field, string $value) {
92 92
 		$expr = $qb->expr();
93
-		$pf = ($qb->getType() === QueryBuilder::SELECT) ? $this->defaultSelectAlias . '.' : '';
94
-		$qb->andWhere($expr->eq($pf . $field, $qb->createNamedParameter($value)));
93
+		$pf = ($qb->getType() === QueryBuilder::SELECT) ? $this->defaultSelectAlias.'.' : '';
94
+		$qb->andWhere($expr->eq($pf.$field, $qb->createNamedParameter($value)));
95 95
 	}
96 96
 
97 97
 
@@ -102,8 +102,8 @@  discard block
 block discarded – undo
102 102
 	 */
103 103
 	private function limitToDBFieldInt(IQueryBuilder &$qb, string $field, int $value) {
104 104
 		$expr = $qb->expr();
105
-		$pf = ($qb->getType() === QueryBuilder::SELECT) ? $this->defaultSelectAlias . '.' : '';
106
-		$qb->andWhere($expr->eq($pf . $field, $qb->createNamedParameter($value)));
105
+		$pf = ($qb->getType() === QueryBuilder::SELECT) ? $this->defaultSelectAlias.'.' : '';
106
+		$qb->andWhere($expr->eq($pf.$field, $qb->createNamedParameter($value)));
107 107
 	}
108 108
 
109 109
 
Please login to merge, or discard this patch.
lib/Hooks/FilesHooks.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -201,7 +201,7 @@  discard block
 block discarded – undo
201 201
 	 */
202 202
 	public static function onRemoteFileUpdate(array $params) {
203 203
 		\OC::$server->getLogger()
204
-					->log(2, 'onRemoteFileUpdate ' . json_encode($params));
204
+					->log(2, 'onRemoteFileUpdate '.json_encode($params));
205 205
 	}
206 206
 
207 207
 	/**
@@ -209,7 +209,7 @@  discard block
 block discarded – undo
209 209
 	 */
210 210
 	public static function onRemoteFileRename(array $params) {
211 211
 		\OC::$server->getLogger()
212
-					->log(2, 'onRemoteFileRename ' . json_encode($params));
212
+					->log(2, 'onRemoteFileRename '.json_encode($params));
213 213
 	}
214 214
 
215 215
 
@@ -218,7 +218,7 @@  discard block
 block discarded – undo
218 218
 	 */
219 219
 	public static function onRemoteFileDelete(array $params) {
220 220
 		\OC::$server->getLogger()
221
-					->log(2, 'onRemoteFileDelete ' . json_encode($params));
221
+					->log(2, 'onRemoteFileDelete '.json_encode($params));
222 222
 	}
223 223
 
224 224
 
Please login to merge, or discard this patch.