From: Sam Reed Date: Sun, 5 Dec 2010 16:15:28 +0000 (+0000) Subject: Swap @private for setting function definition to private X-Git-Tag: 1.31.0-rc.0~33543 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/exercices/bilan.php?a=commitdiff_plain;h=f980fa58a14b66ccd875d481c632ee3213b375b9;p=lhc%2Fweb%2Fwiklou.git Swap @private for setting function definition to private --- diff --git a/includes/CategoryPage.php b/includes/CategoryPage.php index 0ee9dba020..365a255fed 100644 --- a/includes/CategoryPage.php +++ b/includes/CategoryPage.php @@ -101,9 +101,8 @@ class CategoryViewer { * Format the category data list. * * @return string HTML output - * @private */ - function getHTML() { + private function getHTML() { global $wgOut, $wgCategoryMagicGallery, $wgContLang; wfProfileIn( __METHOD__ ); @@ -418,9 +417,8 @@ class CategoryViewer { * @param $articles_start_char Array * @param $cutoff Int * @return String - * @private */ - function formatList( $articles, $articles_start_char, $cutoff = 6 ) { + private function formatList( $articles, $articles_start_char, $cutoff = 6 ) { if ( count ( $articles ) > $cutoff ) { return self::columnList( $articles, $articles_start_char ); } elseif ( count( $articles ) > 0 ) { @@ -443,9 +441,8 @@ class CategoryViewer { * @param $articles Array * @param $articles_start_char Array * @return String - * @private */ - static function columnList( $articles, $articles_start_char ) { + private static function columnList( $articles, $articles_start_char ) { $columns = array_combine( $articles, $articles_start_char ); # Split into three columns $columns = array_chunk( $columns, ceil( count( $columns ) / 3 ), true /* preserve keys */ ); @@ -495,9 +492,8 @@ class CategoryViewer { * @param $articles Array * @param $articles_start_char Array * @return String - * @private */ - static function shortList( $articles, $articles_start_char ) { + private static function shortList( $articles, $articles_start_char ) { $r = '

' . htmlspecialchars( $articles_start_char[0] ) . "

\n"; $r .= '