diff options
author | Ole Ostergaard <ole.c.ostergaard@gmail.com> | 2019-02-26 14:08:55 +0100 |
---|---|---|
committer | Ole Ostergaard <ole.c.ostergaard@gmail.com> | 2019-03-21 11:42:00 +0100 |
commit | 0d778fcc4e489f541271fa25087777a9253d129e (patch) | |
tree | 158dc4b47060c79394580c3365dd778d55ffed6b /lib/private/Lock | |
parent | 63350423d48b1d4fef842666ae3b7627396ca8d1 (diff) | |
download | nextcloud-server-0d778fcc4e489f541271fa25087777a9253d129e.tar.gz nextcloud-server-0d778fcc4e489f541271fa25087777a9253d129e.zip |
Code cleanup.
Signed-off-by: Ole Ostergaard <ole.c.ostergaard@gmail.com>
Diffstat (limited to 'lib/private/Lock')
-rw-r--r-- | lib/private/Lock/DBLockingProvider.php | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/private/Lock/DBLockingProvider.php b/lib/private/Lock/DBLockingProvider.php index a1859047fe6..bd76385d85d 100644 --- a/lib/private/Lock/DBLockingProvider.php +++ b/lib/private/Lock/DBLockingProvider.php @@ -131,10 +131,13 @@ class DBLockingProvider extends AbstractLockingProvider { * @param int $lock * @return int number of inserted rows */ - protected function initLockField(string $path, int $lock = 0): int { $expire = $this->getExpireTime(); - return $this->connection->insertIgnoreConflict('file_locks', ['key' => $path, 'lock' => $lock, 'ttl' => $expire]); + return $this->connection->insertIgnoreConflict('file_locks', [ + 'key' => $path, + 'lock' => $lock, + 'ttl' => $expire + ]); } /** |