Merge "Special:Newpages feed now shows first revision instead of latest revision"
[lhc/web/wiklou.git] / languages / classes / LanguageZh_hans.php
index 75a05fd..9d81c21 100644 (file)
@@ -56,7 +56,6 @@ class LanguageZh_hans extends Language {
         * @return string
         */
        function normalizeForSearch( $s ) {
-
                // Double-width roman characters
                $s = parent::normalizeForSearch( $s );
                $s = trim( $s );
@@ -75,14 +74,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,