diff options
Diffstat (limited to 'lib/private/Encryption')
-rw-r--r-- | lib/private/Encryption/Keys/Storage.php | 2 | ||||
-rw-r--r-- | lib/private/Encryption/Util.php | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/private/Encryption/Keys/Storage.php b/lib/private/Encryption/Keys/Storage.php index 43a291b886c..248011aee5b 100644 --- a/lib/private/Encryption/Keys/Storage.php +++ b/lib/private/Encryption/Keys/Storage.php @@ -269,7 +269,7 @@ class Storage implements IStorage { if ($this->view->file_exists($path)) { if (isset($this->keyCache[$path])) { - $key = $this->keyCache[$path]; + $key = $this->keyCache[$path]; } else { $data = $this->view->file_get_contents($path); diff --git a/lib/private/Encryption/Util.php b/lib/private/Encryption/Util.php index 0bda00a5cbc..f5107d2ec43 100644 --- a/lib/private/Encryption/Util.php +++ b/lib/private/Encryption/Util.php @@ -174,7 +174,7 @@ class Util { if ($c->getType() === 'dir') { $dirList[] = $c->getPath(); } else { - $result[] = $c->getPath(); + $result[] = $c->getPath(); } } } @@ -255,7 +255,7 @@ class Util { // if path also contains a transaction id, we remove it too $extension = pathinfo($fPath, PATHINFO_EXTENSION); if (substr($extension, 0, 12) === 'ocTransferId') { // 12 = strlen("ocTransferId") - $newLength = strlen($fPath) - strlen($extension) -1; + $newLength = strlen($fPath) - strlen($extension) - 1; $fPath = substr($fPath, 0, $newLength); } return $fPath; |