Passed
Push — master ( 9c516c...27720d )
by Robin
15:40 queued 14s
created
lib/private/Files/Cache/Propagator.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
 			}
77 77
 		}
78 78
 
79
-		$storageId = (int)$this->storage->getStorageCache()->getNumericId();
79
+		$storageId = (int) $this->storage->getStorageCache()->getNumericId();
80 80
 
81 81
 		$parents = $this->getParents($internalPath);
82 82
 
@@ -91,12 +91,12 @@  discard block
 block discarded – undo
91 91
 		$etag = uniqid(); // since we give all folders the same etag we don't ask the storage for the etag
92 92
 
93 93
 		$builder = $this->connection->getQueryBuilder();
94
-		$hashParams = array_map(function ($hash) use ($builder) {
94
+		$hashParams = array_map(function($hash) use ($builder) {
95 95
 			return $builder->expr()->literal($hash);
96 96
 		}, $parentHashes);
97 97
 
98 98
 		$builder->update('filecache')
99
-			->set('mtime', $builder->func()->greatest('mtime', $builder->createNamedParameter((int)$time, IQueryBuilder::PARAM_INT)))
99
+			->set('mtime', $builder->func()->greatest('mtime', $builder->createNamedParameter((int) $time, IQueryBuilder::PARAM_INT)))
100 100
 			->where($builder->expr()->eq('storage', $builder->createNamedParameter($storageId, IQueryBuilder::PARAM_INT)))
101 101
 			->andWhere($builder->expr()->in('path_hash', $hashParams));
102 102
 		if (!$this->storage->instanceOfStorage(IReliableEtagStorage::class)) {
@@ -139,7 +139,7 @@  discard block
 block discarded – undo
139 139
 			} catch (RetryableException $e) {
140 140
 				/** @var LoggerInterface $loggerInterface */
141 141
 				$loggerInterface = \OCP\Server::get(LoggerInterface::class);
142
-				$loggerInterface->warning('Retrying propagation query after retryable exception.', [ 'exception' => $e ]);
142
+				$loggerInterface->warning('Retrying propagation query after retryable exception.', ['exception' => $e]);
143 143
 			}
144 144
 		}
145 145
 	}
@@ -150,7 +150,7 @@  discard block
 block discarded – undo
150 150
 		$parents = [];
151 151
 		foreach ($parts as $part) {
152 152
 			$parents[] = $parent;
153
-			$parent = trim($parent . '/' . $part, '/');
153
+			$parent = trim($parent.'/'.$part, '/');
154 154
 		}
155 155
 		return $parents;
156 156
 	}
@@ -194,7 +194,7 @@  discard block
 block discarded – undo
194 194
 		$this->connection->beginTransaction();
195 195
 
196 196
 		$query = $this->connection->getQueryBuilder();
197
-		$storageId = (int)$this->storage->getStorageCache()->getNumericId();
197
+		$storageId = (int) $this->storage->getStorageCache()->getNumericId();
198 198
 
199 199
 		$query->update('filecache')
200 200
 			->set('mtime', $query->func()->greatest('mtime', $query->createParameter('time')))
Please login to merge, or discard this patch.