Completed
Push — master ( 8e5f43...9d98f8 )
by Marcel
43:53
created
lib/private/Files/Cache/FileAccess.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -112,11 +112,11 @@  discard block
 block discarded – undo
112 112
 
113 113
 		$qb = $this->getQuery();
114 114
 
115
-		$path = $root['path'] === '' ? '' : $root['path'] . '/';
115
+		$path = $root['path'] === '' ? '' : $root['path'].'/';
116 116
 
117 117
 		$qb->selectDistinct('f.*')
118 118
 			->from('filecache', 'f')
119
-			->where($qb->expr()->like('f.path', $qb->createNamedParameter($this->connection->escapeLikeParameter($path) . '%')))
119
+			->where($qb->expr()->like('f.path', $qb->createNamedParameter($this->connection->escapeLikeParameter($path).'%')))
120 120
 			->andWhere($qb->expr()->eq('f.storage', $qb->createNamedParameter($storageId)))
121 121
 			->andWhere($qb->expr()->gt('f.fileid', $qb->createNamedParameter($fileIdCursor, IQueryBuilder::PARAM_INT)))
122 122
 			->hintShardKey('storage', $storageId);
@@ -154,7 +154,7 @@  discard block
 block discarded – undo
154 154
 				while (count($rows) < 1000 && ($row = $files->fetch())) {
155 155
 					$rows[] = $row;
156 156
 				}
157
-				$parents = array_map(function ($row) {
157
+				$parents = array_map(function($row) {
158 158
 					return $row['parent'];
159 159
 				}, $rows);
160 160
 
@@ -212,8 +212,8 @@  discard block
 block discarded – undo
212 212
 			/** @var array{storage_id:int, root_id:int,mount_provider_class:string} $row */
213 213
 			$row = $result->fetch()
214 214
 		) {
215
-			$storageId = (int)$row['storage_id'];
216
-			$rootId = (int)$row['root_id'];
215
+			$storageId = (int) $row['storage_id'];
216
+			$rootId = (int) $row['root_id'];
217 217
 			$overrideRoot = $rootId;
218 218
 			// LocalHomeMountProvider is the default provider for user home directories
219 219
 			// ObjectHomeMountProvider is the home directory provider for when S3 primary storage is used
@@ -232,10 +232,10 @@  discard block
 block discarded – undo
232 232
 					/** @var array|false $root */
233 233
 					$root = $qb->executeQuery()->fetch();
234 234
 					if ($root !== false) {
235
-						$overrideRoot = (int)$root['fileid'];
235
+						$overrideRoot = (int) $root['fileid'];
236 236
 					}
237 237
 				} catch (Exception $e) {
238
-					$this->logger->error('Could not fetch home storage files root for storage ' . $storageId, ['exception' => $e]);
238
+					$this->logger->error('Could not fetch home storage files root for storage '.$storageId, ['exception' => $e]);
239 239
 					continue;
240 240
 				}
241 241
 			}
Please login to merge, or discard this patch.