From cbccddcf6e8abfd2b33368f47817bef32db2d6aa Mon Sep 17 00:00:00 2001 From: Naoto Kobayashi Date: Tue, 16 Nov 2021 21:05:43 +0900 Subject: [PATCH] OC_Util::isNonUTF8Locale: fix lint error Signed-off-by: Naoto Kobayashi --- lib/private/legacy/OC_Util.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/private/legacy/OC_Util.php b/lib/private/legacy/OC_Util.php index e476c449f9e..64a1083805d 100644 --- a/lib/private/legacy/OC_Util.php +++ b/lib/private/legacy/OC_Util.php @@ -1297,12 +1297,12 @@ class OC_Util { * @return bool */ private static function isNonUTF8Locale() { - if (function_exists("escapeshellcmd")) { - return ('' === escapeshellcmd('§')); - } else if (function_exists("escapeshellarg")) { - return ('\'\'' === escapeshellarg('§')); + if (function_exists('escapeshellcmd')) { + return '' === escapeshellcmd('§'); + } elseif (function_exists('escapeshellarg')) { + return '\'\'' === escapeshellarg('§'); } else { - return (0 === preg_match('/utf-?8/i', setlocale(LC_CTYPE, 0))); + return 0 === preg_match('/utf-?8/i', setlocale(LC_CTYPE, 0)); } } -- 2.39.5