* @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));
}
}