X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;ds=sidebyside;f=languages%2Fclasses%2FLanguageZh_hans.php;h=77a41e12c164405e8d87b632df54b9bc2433ad20;hb=ded98f8c643eb295f728e37be74d972c101e7012;hp=75a05fdee558aa91f8c42ef04e203ddd039b0d43;hpb=1e209d1e74cf2c0f5f78a3ca8014fc0af9d7f0a5;p=lhc%2Fweb%2Fwiklou.git diff --git a/languages/classes/LanguageZh_hans.php b/languages/classes/LanguageZh_hans.php index 75a05fdee5..77a41e12c1 100644 --- a/languages/classes/LanguageZh_hans.php +++ b/languages/classes/LanguageZh_hans.php @@ -75,14 +75,14 @@ class LanguageZh_hans extends Language { * * @return string */ - public function formatDuration( $seconds, array $chosenIntervals = array() ) { + public function formatDuration( $seconds, array $chosenIntervals = [] ) { if ( empty( $chosenIntervals ) ) { - $chosenIntervals = array( 'centuries', 'years', 'days', 'hours', 'minutes', 'seconds' ); + $chosenIntervals = [ 'centuries', 'years', 'days', 'hours', 'minutes', 'seconds' ]; } $intervals = $this->getDurationIntervals( $seconds, $chosenIntervals ); - $segments = array(); + $segments = []; foreach ( $intervals as $intervalName => $intervalValue ) { // Messages: duration-seconds, duration-minutes, duration-hours, duration-days, duration-weeks,