X-Git-Url: https://git.cyclocoop.org/?a=blobdiff_plain;f=maintenance%2Flanguage%2FStatOutputs.php;h=e9d8c86dd0c5c06cd67defea964ee97fe18fa38f;hb=3b92a39b1671b9b70c0cdd3f4b7aa491b50b6d2c;hp=20fb4778725173908947cee2821a712942bd5151;hpb=436be2c15e6c9074c021dd35ac9f7e227dce2ade;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/language/StatOutputs.php b/maintenance/language/StatOutputs.php index 20fb477872..e9d8c86dd0 100644 --- a/maintenance/language/StatOutputs.php +++ b/maintenance/language/StatOutputs.php @@ -1,5 +1,7 @@ php maintenance/language/transstat.php.\n\n"; echo "For additional information on specific languages (the message names, the actual problems, etc.), run php maintenance/language/checkLanguage.php --lang=foo.\n\n"; echo 'English (en) is excluded because it is the default localization'; - if( is_array( $wgDummyLanguageCodes ) ) { + if ( is_array( $wgDummyLanguageCodes ) ) { $dummyCodes = array(); - foreach( $wgDummyLanguageCodes as $dummyCode => $correctCode ) { + foreach ( $wgDummyLanguageCodes as $dummyCode => $correctCode ) { $dummyCodes[] = Language::fetchLanguageName( $dummyCode ) . ' (' . $dummyCode . ')'; } echo ', as well as the following languages that are not intended for system message translations, usually because they redirect to other language codes: ' . implode( ', ', $dummyCodes ); @@ -80,7 +82,9 @@ class wikiStatsOutput extends statsOutput { # Weigh reverse with factor 20 so coloring takes effect more quickly as # this option is used solely for reporting 'bad' percentages. $v = $v * 20; - if ( $v > 255 ) $v = 255; + if ( $v > 255 ) { + $v = 255; + } $v = 255 - $v; } if ( $v < 128 ) {