diff options
author | Morris Jobke <hey@morrisjobke.de> | 2018-01-26 12:36:25 +0100 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2018-01-26 12:36:25 +0100 |
commit | 6bbea33133867c0fc7dc0ab1df74a38c30843141 (patch) | |
tree | 035b6310da06ca747733c36b5c09d0c97b886e22 /lib/private/Files | |
parent | 26682b6936dcc127393655754500a1848d28c7d0 (diff) | |
download | nextcloud-server-6bbea33133867c0fc7dc0ab1df74a38c30843141.tar.gz nextcloud-server-6bbea33133867c0fc7dc0ab1df74a38c30843141.zip |
Simplify ternary operator statements
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'lib/private/Files')
-rw-r--r-- | lib/private/Files/Storage/Wrapper/Encryption.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/Files/Storage/Wrapper/Encryption.php b/lib/private/Files/Storage/Wrapper/Encryption.php index d443ccfd49b..e40a4830953 100644 --- a/lib/private/Files/Storage/Wrapper/Encryption.php +++ b/lib/private/Files/Storage/Wrapper/Encryption.php @@ -379,7 +379,7 @@ class Encryption extends Wrapper { $shouldEncrypt = false; $encryptionModule = null; $header = $this->getHeader($path); - $signed = (isset($header['signed']) && $header['signed'] === 'true') ? true : false; + $signed = isset($header['signed']) && $header['signed'] === 'true'; $fullPath = $this->getFullPath($path); $encryptionModuleId = $this->util->getEncryptionModuleId($header); @@ -544,7 +544,7 @@ class Encryption extends Wrapper { return 0; } - $signed = (isset($header['signed']) && $header['signed'] === 'true') ? true : false; + $signed = isset($header['signed']) && $header['signed'] === 'true'; $unencryptedBlockSize = $encryptionModule->getUnencryptedBlockSize($signed); // calculate last chunk nr |