summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorNaoto Kobayashi <naoto.kobayashi4c@gmail.com>2021-11-16 21:05:43 +0900
committerNaoto Kobayashi <naoto.kobayashi4c@gmail.com>2021-11-16 21:05:43 +0900
commit6fc86943244e8acc88a0f742a5f406adb100ee1a (patch)
tree4b4cd0720d536ad2052d60cce1922a04d5ce874e /lib
parentc42c972ab0a79c2c19db569d352e54a2f1b7ea2d (diff)
downloadnextcloud-server-6fc86943244e8acc88a0f742a5f406adb100ee1a.tar.gz
nextcloud-server-6fc86943244e8acc88a0f742a5f406adb100ee1a.zip
OC_Util::isNonUTF8Locale: fix lint error
Signed-off-by: Naoto Kobayashi <naoto.kobayashi4c@gmail.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/private/legacy/OC_Util.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/private/legacy/OC_Util.php b/lib/private/legacy/OC_Util.php
index 757e220223c..078e3cf9a03 100644
--- a/lib/private/legacy/OC_Util.php
+++ b/lib/private/legacy/OC_Util.php
@@ -1244,12 +1244,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));
}
}