Fix coding style for else.

This commit is contained in:
Andreas Fischer 2013-10-23 12:39:12 +02:00
parent 9d1b425b62
commit 207f6d55ce
1 changed files with 2 additions and 4 deletions

View File

@ -438,8 +438,7 @@ class OC_L10N implements \OCP\IL10N {
if(is_array($app)) { if(is_array($app)) {
$available = $app; $available = $app;
$lang_exists = array_search($lang, $available) !== false; $lang_exists = array_search($lang, $available) !== false;
} } else {
else {
$lang_exists = self::languageExists($app, $lang); $lang_exists = self::languageExists($app, $lang);
} }
if($lang_exists) { if($lang_exists) {
@ -457,8 +456,7 @@ class OC_L10N implements \OCP\IL10N {
$accepted_languages = preg_split('/,\s*/', strtolower($_SERVER['HTTP_ACCEPT_LANGUAGE'])); $accepted_languages = preg_split('/,\s*/', strtolower($_SERVER['HTTP_ACCEPT_LANGUAGE']));
if(is_array($app)) { if(is_array($app)) {
$available = $app; $available = $app;
} } else {
else{
$available = self::findAvailableLanguages($app); $available = self::findAvailableLanguages($app);
} }
foreach($accepted_languages as $i) { foreach($accepted_languages as $i) {