Completed
Push — master ( df0d10...b9c55a )
by Maxence
02:20
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/Db/CoreRequestBuilder.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -78,8 +78,8 @@
 block discarded – undo
78 78
 	 */
79 79
 	private function limitToDBField(IQueryBuilder &$qb, $field, $value) {
80 80
 		$expr = $qb->expr();
81
-		$pf = ($qb->getType() === QueryBuilder::SELECT) ? $this->defaultSelectAlias . '.' : '';
82
-		$qb->andWhere($expr->eq($pf . $field, $qb->createNamedParameter($value)));
81
+		$pf = ($qb->getType() === QueryBuilder::SELECT) ? $this->defaultSelectAlias.'.' : '';
82
+		$qb->andWhere($expr->eq($pf.$field, $qb->createNamedParameter($value)));
83 83
 	}
84 84
 
85 85
 
Please login to merge, or discard this patch.
lib/Service/FilesService.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -416,7 +416,7 @@  discard block
 block discarded – undo
416 416
 				// TODO - update $document with a error status instead of just ignore !
417 417
 				$document->getIndex()
418 418
 						 ->setStatus(Index::INDEX_IGNORE);
419
-				echo 'Exception: ' . json_encode($e->getTrace()) . ' - ' . $e->getMessage() . "\n";
419
+				echo 'Exception: '.json_encode($e->getTrace()).' - '.$e->getMessage()."\n";
420 420
 			}
421 421
 
422 422
 			$index[] = $document;
@@ -636,7 +636,7 @@  discard block
 block discarded – undo
636 636
 	private function getWebdavId($fileId) {
637 637
 		$instanceId = $this->configService->getSystemValue('instanceid');
638 638
 
639
-		return sprintf("%08s", $fileId) . $instanceId;
639
+		return sprintf("%08s", $fileId).$instanceId;
640 640
 	}
641 641
 
642 642
 
Please login to merge, or discard this patch.
lib/Service/LocalFilesService.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -160,7 +160,7 @@
 block discarded – undo
160 160
 			array_push($result, $access->getOwnerId());
161 161
 		}
162 162
 
163
-		foreach($result as $user) {
163
+		foreach ($result as $user) {
164 164
 			if (!in_array($user, $users))
165 165
 			{
166 166
 				$users[] = $user;
Please login to merge, or discard this patch.
lib/Service/ExternalFilesService.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -231,7 +231,7 @@
 block discarded – undo
231 231
 
232 232
 
233 233
 	/**
234
-	 * @param $userId
234
+	 * @param string $userId
235 235
 	 *
236 236
 	 * @return MountPoint[]
237 237
 	 */
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -244,7 +244,7 @@
 block discarded – undo
244 244
 		foreach ($mounts as $path => $mount) {
245 245
 			$mountPoint = new MountPoint();
246 246
 			$mountPoint->setId($mount['id'])
247
-						  ->setPath('/' . $userId . '/files/' . $path)
247
+						  ->setPath('/'.$userId.'/files/'.$path)
248 248
 						  ->setGroups($mount['applicable']['groups'])
249 249
 						  ->setUsers($mount['applicable']['users'])
250 250
 						  ->setGlobal((!$mount['personal']));
Please login to merge, or discard this patch.
lib/Service/GroupFoldersService.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -211,7 +211,7 @@
 block discarded – undo
211 211
 		foreach ($mounts as $path => $mount) {
212 212
 			$mountPoint = new MountPoint();
213 213
 			$mountPoint->setId($mount['id'])
214
-					   ->setPath('/' . $userId . '/files/' . $mount['mount_point'])
214
+					   ->setPath('/'.$userId.'/files/'.$mount['mount_point'])
215 215
 					   ->setGroups(array_keys($mount['groups']));
216 216
 			$mountPoints[] = $mountPoint;
217 217
 		}
Please login to merge, or discard this patch.
lib/Service/SearchService.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -75,8 +75,8 @@  discard block
 block discarded – undo
75 75
 		$currentDir = MiscService::noBeginSlash(MiscService::endSlash($currentDir));
76 76
 		$request->addWildcardFilters(
77 77
 			[
78
-				['share_names.' . $username => $currentDir . '*'],
79
-				['title' => $currentDir . '*']
78
+				['share_names.'.$username => $currentDir.'*'],
79
+				['title' => $currentDir.'*']
80 80
 			]
81 81
 		);
82 82
 	}
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
90 90
 		$words = explode(' ', $request->getSearch());
91 91
 		foreach ($words as $word) {
92 92
 			$username = MiscService::secureUsername($request->getAuthor());
93
-			array_push($query, ['share_names.' . $username => '*' . $word . '*']);
93
+			array_push($query, ['share_names.'.$username => '*'.$word.'*']);
94 94
 		}
95 95
 		$request->addWildcardQueries($query);
96 96
 	}
@@ -108,8 +108,8 @@  discard block
 block discarded – undo
108 108
 		$username = MiscService::secureUsername($request->getAuthor());
109 109
 		$request->addRegexFilters(
110 110
 			[
111
-				['share_names.' . $username => '.*\.' . $extension],
112
-				['title' => '.*\.' . $extension]
111
+				['share_names.'.$username => '.*\.'.$extension],
112
+				['title' => '.*\.'.$extension]
113 113
 			]
114 114
 		);
115 115
 	}
Please login to merge, or discard this patch.