Passed
Push — master ( 60f946...983435 )
by Robin
12:53 queued 12s
created
lib/private/Files/Cache/Propagator.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
 			}
73 73
 		}
74 74
 
75
-		$storageId = (int)$this->storage->getStorageCache()->getNumericId();
75
+		$storageId = (int) $this->storage->getStorageCache()->getNumericId();
76 76
 
77 77
 		$parents = $this->getParents($internalPath);
78 78
 
@@ -87,12 +87,12 @@  discard block
 block discarded – undo
87 87
 		$etag = uniqid(); // since we give all folders the same etag we don't ask the storage for the etag
88 88
 
89 89
 		$builder = $this->connection->getQueryBuilder();
90
-		$hashParams = array_map(function ($hash) use ($builder) {
90
+		$hashParams = array_map(function($hash) use ($builder) {
91 91
 			return $builder->expr()->literal($hash);
92 92
 		}, $parentHashes);
93 93
 
94 94
 		$builder->update('filecache')
95
-			->set('mtime', $builder->func()->greatest('mtime', $builder->createNamedParameter((int)$time, IQueryBuilder::PARAM_INT)))
95
+			->set('mtime', $builder->func()->greatest('mtime', $builder->createNamedParameter((int) $time, IQueryBuilder::PARAM_INT)))
96 96
 			->where($builder->expr()->eq('storage', $builder->createNamedParameter($storageId, IQueryBuilder::PARAM_INT)))
97 97
 			->andWhere($builder->expr()->in('path_hash', $hashParams));
98 98
 		if (!$this->storage->instanceOfStorage(IReliableEtagStorage::class)) {
@@ -123,7 +123,7 @@  discard block
 block discarded – undo
123 123
 		$parents = [];
124 124
 		foreach ($parts as $part) {
125 125
 			$parents[] = $parent;
126
-			$parent = trim($parent . '/' . $part, '/');
126
+			$parent = trim($parent.'/'.$part, '/');
127 127
 		}
128 128
 		return $parents;
129 129
 	}
@@ -167,7 +167,7 @@  discard block
 block discarded – undo
167 167
 		$this->connection->beginTransaction();
168 168
 
169 169
 		$query = $this->connection->getQueryBuilder();
170
-		$storageId = (int)$this->storage->getStorageCache()->getNumericId();
170
+		$storageId = (int) $this->storage->getStorageCache()->getNumericId();
171 171
 
172 172
 		$query->update('filecache')
173 173
 			->set('mtime', $query->func()->greatest('mtime', $query->createParameter('time')))
Please login to merge, or discard this patch.