Skip to content

Commit 1ca5c29

Browse files
localheinzcmb69
andcommitted
Fix: Manually fix coding standard issues
Co-authored-by: Andreas Möller <am@localheinz.com> Co-authored-by: Christoph M. Becker <cmbecker69@gmx.de>
1 parent a1e609c commit 1ca5c29

File tree

2 files changed

+18
-6
lines changed

2 files changed

+18
-6
lines changed

error.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,9 +122,13 @@
122122
// Some nice URLs for getting something for download
123123
if (preg_match("!^get/([^/]+)$!", $URI, $what)) {
124124
switch ($what[1]) {
125-
case "php": $URI = "downloads"; break;
125+
case "php":
126+
$URI = "downloads";
127+
break;
126128
case "docs": // intentional
127-
case "documentation": $URI = "download-docs"; break;
129+
case "documentation":
130+
$URI = "download-docs";
131+
break;
128132
}
129133
}
130134

include/langchooser.inc

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -122,10 +122,18 @@ function language_choose_code()
122122

123123
// Translation table for accept-language codes and phpdoc codes
124124
switch ($langdata[0]) {
125-
case "pt-br": $langdata[0] = 'pt_br'; break;
126-
case "zh-cn": $langdata[0] = 'zh'; break;
127-
case "zh-hk": $langdata[0] = 'hk'; break;
128-
case "zh-tw": $langdata[0] = 'tw'; break;
125+
case "pt-br":
126+
$langdata[0] = 'pt_br';
127+
break;
128+
case "zh-cn":
129+
$langdata[0] = 'zh';
130+
break;
131+
case "zh-hk":
132+
$langdata[0] = 'hk';
133+
break;
134+
case "zh-tw":
135+
$langdata[0] = 'tw';
136+
break;
129137
}
130138

131139
// We do not support flavors of languages (except the ones above)

0 commit comments

Comments
 (0)