From: Andreas Fischer Date: Wed, 23 Oct 2013 10:39:12 +0000 (+0200) Subject: Fix coding style for else. X-Git-Tag: v6.0.0beta2~10^2~7 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=207f6d55ce5047e43f7250ef30b14525dee6bd65;p=nextcloud-server.git Fix coding style for else. --- diff --git a/lib/private/l10n.php b/lib/private/l10n.php index 38efa88388d..99481404f62 100644 --- a/lib/private/l10n.php +++ b/lib/private/l10n.php @@ -438,8 +438,7 @@ class OC_L10N implements \OCP\IL10N { if(is_array($app)) { $available = $app; $lang_exists = array_search($lang, $available) !== false; - } - else { + } else { $lang_exists = self::languageExists($app, $lang); } if($lang_exists) { @@ -457,8 +456,7 @@ class OC_L10N implements \OCP\IL10N { $accepted_languages = preg_split('/,\s*/', strtolower($_SERVER['HTTP_ACCEPT_LANGUAGE'])); if(is_array($app)) { $available = $app; - } - else{ + } else { $available = self::findAvailableLanguages($app); } foreach($accepted_languages as $i) {