aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Lock
diff options
context:
space:
mode:
authorOle Ostergaard <ole.c.ostergaard@gmail.com>2019-02-26 14:08:55 +0100
committerOle Ostergaard <ole.c.ostergaard@gmail.com>2019-03-21 11:42:00 +0100
commit0d778fcc4e489f541271fa25087777a9253d129e (patch)
tree158dc4b47060c79394580c3365dd778d55ffed6b /lib/private/Lock
parent63350423d48b1d4fef842666ae3b7627396ca8d1 (diff)
downloadnextcloud-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.php7
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
+ ]);
}
/**