summaryrefslogtreecommitdiffstats
path: root/lib/private/Lock/AbstractLockingProvider.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/private/Lock/AbstractLockingProvider.php')
-rw-r--r--lib/private/Lock/AbstractLockingProvider.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/Lock/AbstractLockingProvider.php b/lib/private/Lock/AbstractLockingProvider.php
index 91870325fe2..81d949d2a06 100644
--- a/lib/private/Lock/AbstractLockingProvider.php
+++ b/lib/private/Lock/AbstractLockingProvider.php
@@ -87,7 +87,7 @@ abstract class AbstractLockingProvider implements ILockingProvider {
unset($this->acquiredLocks['shared'][$path]);
}
}
- } else if ($type === self::LOCK_EXCLUSIVE) {
+ } elseif ($type === self::LOCK_EXCLUSIVE) {
unset($this->acquiredLocks['exclusive'][$path]);
}
}
@@ -105,7 +105,7 @@ abstract class AbstractLockingProvider implements ILockingProvider {
$this->acquiredLocks['shared'][$path] = 0;
}
$this->acquiredLocks['shared'][$path]++;
- } else if ($targetType === self::LOCK_EXCLUSIVE) {
+ } elseif ($targetType === self::LOCK_EXCLUSIVE) {
$this->acquiredLocks['exclusive'][$path] = true;
$this->acquiredLocks['shared'][$path]--;
}