From d9015a8c94bfd71fe484618a06d276701d3bf9ff Mon Sep 17 00:00:00 2001 From: Christoph Wurst Date: Mon, 5 Oct 2020 15:12:57 +0200 Subject: Format code to a single space around binary operators Signed-off-by: Christoph Wurst --- lib/private/Encryption/Keys/Storage.php | 2 +- lib/private/Encryption/Util.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/private/Encryption') 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; -- cgit v1.2.3