X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fspecials%2FSpecialMediaStatistics.php;h=e591da0ec183092e326558c37b044a72cc8db4a9;hb=acd7881d5fe6afd87a3bd0d7d9f40ece82b48c3f;hp=6dbc09bae0a192f7c4ed9f7fdc61190d51847f91;hpb=7ca601fd08e9abf7f36ec13164742e143e8efd3f;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/specials/SpecialMediaStatistics.php b/includes/specials/SpecialMediaStatistics.php index 6dbc09bae0..e591da0ec1 100644 --- a/includes/specials/SpecialMediaStatistics.php +++ b/includes/specials/SpecialMediaStatistics.php @@ -102,7 +102,7 @@ class MediaStatisticsPage extends QueryPage { * * It's important that img_media_type come first, otherwise the * tables will be fragmented. - * @return Array Fields to sort by + * @return array Fields to sort by */ function getOrderFields() { return [ 'img_media_type', 'count(*)', 'img_major_mime', 'img_minor_mime' ]; @@ -143,7 +143,7 @@ class MediaStatisticsPage extends QueryPage { $this->outputTableEnd(); // add total size of all files $this->outputMediaType( 'total' ); - $this->getOutput()->addWikiText( + $this->getOutput()->addWikiTextAsInterface( $this->msg( 'mediastatistics-allbytes' ) ->numParams( $this->totalSize ) ->sizeParams( $this->totalSize ) @@ -157,7 +157,7 @@ class MediaStatisticsPage extends QueryPage { */ protected function outputTableEnd() { $this->getOutput()->addHTML( Html::closeElement( 'table' ) ); - $this->getOutput()->addWikiText( + $this->getOutput()->addWikiTextAsInterface( $this->msg( 'mediastatistics-bytespertype' ) ->numParams( $this->totalPerType ) ->sizeParams( $this->totalPerType ) @@ -214,7 +214,7 @@ class MediaStatisticsPage extends QueryPage { /** * @param float $decimal A decimal percentage (ie for 12.3%, this would be 0.123) - * @return String The percentage formatted so that 3 significant digits are shown. + * @return string The percentage formatted so that 3 significant digits are shown. */ protected function makePercentPretty( $decimal ) { $decimal *= 100; @@ -275,7 +275,7 @@ class MediaStatisticsPage extends QueryPage { /** * Get (not output) the header row for the table * - * @return String the header row of the able + * @return string The header row of the table */ protected function getTableHeaderRow() { $headers = [ 'mimetype', 'extensions', 'count', 'totalbytes' ];