Add/remove/tweak method documentation
authorSam Reed <reedy@users.mediawiki.org>
Thu, 19 May 2011 00:03:31 +0000 (00:03 +0000)
committerSam Reed <reedy@users.mediawiki.org>
Thu, 19 May 2011 00:03:31 +0000 (00:03 +0000)
includes/AuthPlugin.php
includes/Categoryfinder.php
includes/GlobalFunctions.php
includes/LogPage.php
includes/Sanitizer.php
includes/User.php
includes/db/LoadBalancer.php
includes/db/LoadMonitor.php
includes/media/Generic.php

index 7dc9925..1ce96c1 100644 (file)
@@ -131,6 +131,8 @@ class AuthPlugin {
         * and use the same keys. 'Realname' 'Emailaddress' and 'Nickname'
         * all reference this.
         *
+        * @param $prop string
+        *
         * @return Boolean
         */
        public function allowPropChange( $prop = '' ) {
@@ -254,6 +256,8 @@ class AuthPlugin {
         * Get an instance of a User object
         *
         * @param $user User
+        *
+        * @return AuthPluginUser
         */
        public function getUserInstance( User &$user ) {
                return new AuthPluginUser( $user );
index cc9bf5e..2567de0 100644 (file)
@@ -86,9 +86,9 @@ class Categoryfinder {
 
        /**
         * This functions recurses through the parent representation, trying to match the conditions
-        * @param $id The article/category to check
-        * @param $conds The array of categories to match
-        * @param $path used to check for recursion loops
+        * @param $id int The article/category to check
+        * @param $conds array The array of categories to match
+        * @param $path array used to check for recursion loops
         * @return bool Does this match the conditions?
         */
        function check( $id, &$conds, $path = array() ) {
index b5afa9d..3945efe 100644 (file)
@@ -3305,7 +3305,7 @@ function wfCountDown( $n ) {
  * Generate a random 32-character hexadecimal token.
  * @param $salt Mixed: some sort of salt, if necessary, to add to random
  *              characters before hashing.
- * @return Array
+ * @return string
  * @codeCoverageIgnore
  */
 function wfGenerateToken( $salt = '' ) {
index 2d9304b..ee18d67 100644 (file)
@@ -514,7 +514,7 @@ class LogPage {
        /**
         * Translate a block log flag if possible
         *
-        * @param $flag Flag to translate
+        * @param $flag int Flag to translate
         * @param $forContent Whether to localize the message depending of the user
         *                    language
         * @return String
index df62b5e..dc75a03 100644 (file)
@@ -1282,7 +1282,7 @@ class Sanitizer {
         * return the UTF-8 encoding of that character. Otherwise, returns
         * pseudo-entity source (eg &foo;)
         *
-        * @param $name Strings
+        * @param $name String
         * @return String
         */
        static function decodeEntity( $name ) {
index a669502..186072c 100644 (file)
@@ -3693,6 +3693,8 @@ class User {
         *
         * @param $byEmail Boolean: account made by email?
         * @param $reason String: user supplied reason
+        *
+        * @return true
         */
        public function addNewUserLogEntry( $byEmail = false, $reason = '' ) {
                global $wgUser, $wgContLang, $wgNewUserLog;
@@ -3726,6 +3728,8 @@ class User {
        /**
         * Add an autocreate newuser log entry for this user
         * Used by things like CentralAuth and perhaps other authplugins.
+        *
+        * @return true
         */
        public function addNewUserLogEntryAutoCreate() {
                global $wgNewUserLog;
index 9662b03..a25aec4 100644 (file)
@@ -27,8 +27,7 @@ class LoadBalancer {
         *    masterWaitTimeout Replication lag wait timeout
         *    loadMonitor       Name of a class used to fetch server lag and load.
         */
-       function __construct( $params )
-       {
+       function __construct( $params ) {
                if ( !isset( $params['servers'] ) ) {
                        throw new MWException( __CLASS__.': missing servers parameter' );
                }
index 2a23295..36e9fce 100644 (file)
@@ -21,7 +21,7 @@ interface LoadMonitor {
        
        /**
         * Perform pre-connection load ratio adjustment.
-        * @param $loads Array
+        * @param $loads array
         * @param $group String: the selected query group
         * @param $wiki String
         */
index 92472f9..7901fd7 100644 (file)
@@ -349,7 +349,7 @@ abstract class MediaHandler {
         * @param &$array Array An array containing elements for each type of visibility
         * and each of those elements being an array of metadata items. This function adds
         * a value to that array.
-        * @param $visibility String ('visible' or 'collapsed') if this value is hidden
+        * @param $visibility string ('visible' or 'collapsed') if this value is hidden
         * by default.
         * @param $type String type of metadata tag (currently always 'exif')
         * @param $id String the name of the metadata tag (like 'artist' for example).
@@ -362,8 +362,6 @@ abstract class MediaHandler {
         * @param $param String value to pass to the message for the name of the field
         * as $1. Currently this parameter doesn't seem to ever be used.
         *
-        * @return Array $array but with the new metadata field added.
-        *
         * Note, everything here is passed through the parser later on (!)
         */
        protected static function addMeta( &$array, $visibility, $type, $id, $value, $param = false ) {