@@ -142,7 +142,7 @@ discard block |
||
| 142 | 142 | ->setValue('lock', $builder->createNamedParameter($lock)) |
| 143 | 143 | ->setValue('ttl', $builder->createNamedParameter($expire)) |
| 144 | 144 | ->execute(); |
| 145 | - } catch(UniqueConstraintViolationException $e) { |
|
| 145 | + } catch (UniqueConstraintViolationException $e) { |
|
| 146 | 146 | return 0; |
| 147 | 147 | } |
| 148 | 148 | } |
@@ -165,7 +165,7 @@ discard block |
||
| 165 | 165 | } |
| 166 | 166 | $query = $this->connection->prepare('SELECT `lock` from `*PREFIX*file_locks` WHERE `key` = ?'); |
| 167 | 167 | $query->execute([$path]); |
| 168 | - $lockValue = (int)$query->fetchColumn(); |
|
| 168 | + $lockValue = (int) $query->fetchColumn(); |
|
| 169 | 169 | if ($type === self::LOCK_SHARED) { |
| 170 | 170 | if ($this->isLocallyLocked($path)) { |
| 171 | 171 | // if we have a shared lock we kept open locally but it's released we always have at least 1 shared lock in the db |
@@ -304,7 +304,7 @@ discard block |
||
| 304 | 304 | } |
| 305 | 305 | // since we keep shared locks we need to manually clean those |
| 306 | 306 | $lockedPaths = array_keys($this->sharedLocks); |
| 307 | - $lockedPaths = array_filter($lockedPaths, function ($path) { |
|
| 307 | + $lockedPaths = array_filter($lockedPaths, function($path) { |
|
| 308 | 308 | return $this->sharedLocks[$path]; |
| 309 | 309 | }); |
| 310 | 310 | |