aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Files/Storage/Common.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/private/Files/Storage/Common.php')
-rw-r--r--lib/private/Files/Storage/Common.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/Files/Storage/Common.php b/lib/private/Files/Storage/Common.php
index f2d427227c9..456980db538 100644
--- a/lib/private/Files/Storage/Common.php
+++ b/lib/private/Files/Storage/Common.php
@@ -104,7 +104,7 @@ abstract class Common implements Storage, ILockingStorage, IWriteStreamStorage {
protected function remove($path) {
if ($this->is_dir($path)) {
return $this->rmdir($path);
- } else if ($this->is_file($path)) {
+ } elseif ($this->is_file($path)) {
return $this->unlink($path);
} else {
return false;
@@ -439,7 +439,7 @@ abstract class Common implements Storage, ILockingStorage, IWriteStreamStorage {
foreach (explode('/', $path) as $chunk) {
if ($chunk == '..') {
array_pop($output);
- } else if ($chunk == '.') {
+ } elseif ($chunk == '.') {
} else {
$output[] = $chunk;
}