Completed
Branch master (634899)
by Maxence
01:44
created
lib/Provider/FilesProvider.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -129,7 +129,7 @@  discard block
 block discarded – undo
129 129
 	 *
130 130
 	 * @param string $userId
131 131
 	 *
132
-	 * @return IndexDocument[]
132
+	 * @return FilesDocument[]
133 133
 	 * @throws InterruptException
134 134
 	 * @throws TickDoesNotExistException
135 135
 	 * @throws InvalidPathException
@@ -148,7 +148,7 @@  discard block
 block discarded – undo
148 148
 	 *
149 149
 	 * @param IndexDocument[] $chunk
150 150
 	 *
151
-	 * @return IndexDocument[]
151
+	 * @return FilesDocument[]
152 152
 	 */
153 153
 	public function fillIndexDocuments($chunk) {
154 154
 
@@ -162,7 +162,7 @@  discard block
 block discarded – undo
162 162
 	/**
163 163
 	 * @param Index $index
164 164
 	 *
165
-	 * @return IndexDocument|null
165
+	 * @return FilesDocument|null
166 166
 	 * @throws InvalidPathException
167 167
 	 * @throws NotFoundException
168 168
 	 * @throws NotPermittedException
Please login to merge, or discard this patch.
lib/Service/ExternalFilesService.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -223,7 +223,7 @@
 block discarded – undo
223 223
 
224 224
 
225 225
 	/**
226
-	 * @param $userId
226
+	 * @param string $userId
227 227
 	 *
228 228
 	 * @return ExternalMount[]
229 229
 	 */
Please login to merge, or discard this patch.
lib/Service/ElasticSearchService.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
 		$words = explode(' ', $request->getSearch());
104 104
 		foreach ($words as $word) {
105 105
 			array_push(
106
-				$query, ['wildcard' => ['share_names.' . $request->getAuthor() => '*' . $word . '*']]
106
+				$query, ['wildcard' => ['share_names.'.$request->getAuthor() => '*'.$word.'*']]
107 107
 			);
108 108
 		}
109 109
 
@@ -127,8 +127,8 @@  discard block
 block discarded – undo
127 127
 		}
128 128
 
129 129
 		$query = [
130
-			['wildcard' => ['share_names.' . $request->getAuthor() => '*' . $extension]],
131
-			['wildcard' => ['title' => '*' . $extension]]
130
+			['wildcard' => ['share_names.'.$request->getAuthor() => '*'.$extension]],
131
+			['wildcard' => ['title' => '*'.$extension]]
132 132
 		];
133 133
 
134 134
 		$arr['params']['body']['query']['bool']['filter'][]['bool']['should'] = $query;
Please login to merge, or discard this patch.
lib/Service/FilesService.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -301,7 +301,7 @@  discard block
 block discarded – undo
301 301
 		$dir = substr($path, 0, -strlen($document->getInfo('filename')));
302 302
 		$filename = $document->getInfo('filename');
303 303
 
304
-		$document->setLink('/index.php/apps/files/?dir=' . $dir . '&scrollto=' . $filename);
304
+		$document->setLink('/index.php/apps/files/?dir='.$dir.'&scrollto='.$filename);
305 305
 	}
306 306
 
307 307
 
@@ -313,7 +313,7 @@  discard block
 block discarded – undo
313 313
 	private function getWebdavId($fileId) {
314 314
 		$instanceId = $this->configService->getSystemValue('instanceid');
315 315
 
316
-		return sprintf("%08s", $fileId) . $instanceId;
316
+		return sprintf("%08s", $fileId).$instanceId;
317 317
 	}
318 318
 
319 319
 
@@ -373,7 +373,7 @@  discard block
 block discarded – undo
373 373
 				// TODO - update $document with a error status instead of just ignore !
374 374
 				$document->getIndex()
375 375
 						 ->setStatus(Index::INDEX_IGNORE);
376
-				echo 'Exception: ' . json_encode($e->getTrace()) . ' - ' . $e->getMessage() . "\n";
376
+				echo 'Exception: '.json_encode($e->getTrace()).' - '.$e->getMessage()."\n";
377 377
 			}
378 378
 
379 379
 			$index[] = $document;
Please login to merge, or discard this patch.