Merge "Enable $wgVectorUseIconWatch by default."
[lhc/web/wiklou.git] / includes / ChangesList.php
index a9b9c31..0c4d69e 100644 (file)
@@ -60,7 +60,7 @@ class ChangesList extends ContextSource {
        protected $message;
 
        /**
-        * Changeslist contructor
+        * Changeslist constructor
         *
         * @param $obj Skin or IContextSource
         */
@@ -80,7 +80,7 @@ class ChangesList extends ContextSource {
         * This first argument used to be an User object.
         *
         * @deprecated in 1.18; use newFromContext() instead
-        * @param $unused string|User Unused
+        * @param string|User $unused Unused
         * @return ChangesList|EnhancedChangesList|OldChangesList derivative
         */
        public static function newFromUser( $unused ) {
@@ -130,8 +130,8 @@ class ChangesList extends ContextSource {
 
        /**
         * Returns the appropriate flags for new page, minor change and patrolling
-        * @param $flags Array Associative array of 'flag' => Bool
-        * @param $nothing String to use for empty space
+        * @param array $flags Associative array of 'flag' => Bool
+        * @param string $nothing to use for empty space
         * @return String
         */
        protected function recentChangesFlags( $flags, $nothing = ' ' ) {
@@ -150,7 +150,7 @@ class ChangesList extends ContextSource {
         * unpatrolled edit.  By default in English it will contain "N", "m", "b",
         * "!" respectively, plus it will have an appropriate title and class.
         *
-        * @param $flag String: 'newpage', 'unpatrolled', 'minor', or 'bot'
+        * @param string $flag 'newpage', 'unpatrolled', 'minor', or 'bot'
         * @return String: Raw HTML
         */
        public static function flag( $flag ) {
@@ -287,7 +287,7 @@ class ChangesList extends ContextSource {
        }
 
        /**
-        * @param $s string HTML to update
+        * @param string $s HTML to update
         * @param $rc_timestamp mixed
         */
        public function insertDateHeader( &$s, $rc_timestamp ) {
@@ -304,7 +304,7 @@ class ChangesList extends ContextSource {
        }
 
        /**
-        * @param $s string HTML to update
+        * @param string $s HTML to update
         * @param $title Title
         * @param $logtype string
         */
@@ -315,7 +315,7 @@ class ChangesList extends ContextSource {
        }
 
        /**
-        * @param $s string HTML to update
+        * @param string $s HTML to update
         * @param $rc RecentChange
         * @param $unpatrolled
         */
@@ -358,7 +358,7 @@ class ChangesList extends ContextSource {
        }
 
        /**
-        * @param $s string HTML to update
+        * @param string $s HTML to update
         * @param $rc RecentChange
         * @param $unpatrolled
         * @param $watched
@@ -407,7 +407,7 @@ class ChangesList extends ContextSource {
        /**
         * Insert time timestamp string from $rc into $s
         *
-        * @param $s string HTML to update
+        * @param string $s HTML to update
         * @param $rc RecentChange
         */
        public function insertTimestamp( &$s, $rc ) {
@@ -563,7 +563,7 @@ class ChangesList extends ContextSource {
        }
 
        public function insertExtra( &$s, &$rc, &$classes ) {
-               ## Empty, used for subclassers to add anything special.
+               // Empty, used for subclasses to add anything special.
        }
 
        protected function showAsUnpatrolled( RecentChange $rc ) {
@@ -579,7 +579,6 @@ class ChangesList extends ContextSource {
        }
 }
 
-
 /**
  * Generate a list of changes using the good old system (no javascript)
  */
@@ -588,8 +587,8 @@ class OldChangesList extends ChangesList {
         * Format a line using the old system (aka without any javascript).
         *
         * @param $rc RecentChange, passed by reference
-        * @param $watched Bool (default false)
-        * @param $linenumber Int (default null)
+        * @param bool $watched (default false)
+        * @param int $linenumber (default null)
         *
         * @return string|bool
         */
@@ -692,7 +691,6 @@ class OldChangesList extends ChangesList {
        }
 }
 
-
 /**
  * Generate a list of changes using an Enhanced system (uses javascript).
  */
@@ -938,7 +936,7 @@ class EnhancedChangesList extends ChangesList {
                krsort( $userlinks );
                asort( $userlinks );
                $users = array();
-               foreach( $userlinks as $userlink => $count) {
+               foreach( $userlinks as $userlink => $count ) {
                        $text = $userlink;
                        $text .= $this->getLanguage()->getDirMark();
                        if( $count > 1 ) {
@@ -1139,9 +1137,9 @@ class EnhancedChangesList extends ChangesList {
 
        /**
         * Generate HTML for an arrow or placeholder graphic
-        * @param $dir String: one of '', 'd', 'l', 'r'
-        * @param $alt String: text
-        * @param $title String: text
+        * @param string $dir one of '', 'd', 'l', 'r'
+        * @param string $alt text
+        * @param string $title text
         * @return String: HTML "<img>" tag
         */
        protected function arrow( $dir, $alt = '', $title = '' ) {