Fixed some doxygen warnings
authorAlexandre Emsenhuber <ialex@users.mediawiki.org>
Wed, 9 Jun 2010 14:57:59 +0000 (14:57 +0000)
committerAlexandre Emsenhuber <ialex@users.mediawiki.org>
Wed, 9 Jun 2010 14:57:59 +0000 (14:57 +0000)
includes/parser/CoreParserFunctions.php
includes/parser/DateFormatter.php
includes/parser/LinkHolderArray.php
includes/parser/ParserOptions.php
includes/parser/Preprocessor_DOM.php
includes/parser/Preprocessor_Hash.php
includes/parser/Tidy.php

index c3e9884..9289742 100644 (file)
@@ -131,7 +131,7 @@ class CoreParserFunctions {
         * Or to encode a value for the HTTP "path", spaces are encoded as '%20'.
         * For links to "wiki"s, or similar software, spaces are encoded as '_',
         *
-        * @param $parser.
+        * @param $parser Parser object
         * @param $s String: The text to encode.
         * @param $arg String (optional): The type of encoding.
         */
index 602bcff..83b609d 100644 (file)
@@ -116,6 +116,7 @@ class DateFormatter
        /**
         * @param $preference String: User preference
         * @param $text String: Text to reformat
+        * @param $options Array: can contain 'linked' and/or 'match-whole'
         */
        function reformat( $preference, $text, $options = array('linked') ) {
        
index 00e5ef5..17cffe8 100644 (file)
@@ -405,8 +405,9 @@ class LinkHolderArray {
        /**
         * Replace <!--LINK--> link placeholders with plain text of links
         * (not HTML-formatted).
-        * @param string $text
-        * @return string
+        *
+        * @param $text String
+        * @return String
         */
        function replaceText( $text ) {
                wfProfileIn( __METHOD__ );
@@ -421,7 +422,9 @@ class LinkHolderArray {
        }
 
        /**
-        * @param array $matches
+        * Callback for replaceText()
+        *
+        * @param $matches Array
         * @return string
         * @private
         */
index 985bba2..71377e3 100644 (file)
@@ -111,7 +111,9 @@ class ParserOptions {
 
        /**
         * Get parser options
-        * @static
+        *
+        * @param $user User object
+        * @return ParserOptions object
         */
        static function newFromUser( $user ) {
                return new ParserOptions( $user );
index 673ac24..625dc8a 100644 (file)
@@ -45,8 +45,8 @@ class Preprocessor_DOM implements Preprocessor {
         * Preprocess some wikitext and return the document tree.
         * This is the ghost of Parser::replace_variables().
         *
-        * @param string $text The text to parse
-        * @param integer flags Bitwise combination of:
+        * @param $text String: the text to parse
+        * @param $flags Integer: bitwise combination of:
         *          Parser::PTD_FOR_INCLUSION    Handle <noinclude>/<includeonly> as if the text is being
         *                                     included. Default is to assume a direct page view.
         *
@@ -822,7 +822,7 @@ class PPFrame_DOM implements PPFrame {
 
        /**
         * Construct a new preprocessor frame.
-        * @param Preprocessor $preprocessor The parent preprocessor
+        * @param $preprocessor Preprocessor: The parent preprocessor
         */
        function __construct( $preprocessor ) {
                $this->preprocessor = $preprocessor;
index c5d6968..5015f12 100644 (file)
@@ -27,8 +27,8 @@ class Preprocessor_Hash implements Preprocessor {
         * Preprocess some wikitext and return the document tree.
         * This is the ghost of Parser::replace_variables().
         *
-        * @param string $text The text to parse
-        * @param integer flags Bitwise combination of:
+        * @param $text String: the text to parse
+        * @param $flags Integer: bitwise combination of:
         *          Parser::PTD_FOR_INCLUSION    Handle <noinclude>/<includeonly> as if the text is being
         *                                     included. Default is to assume a direct page view.
         *
@@ -804,7 +804,7 @@ class PPFrame_Hash implements PPFrame {
 
        /**
         * Construct a new preprocessor frame.
-        * @param Preprocessor $preprocessor The parent preprocessor
+        * @param $preprocessor Preprocessor: the parent preprocessor
         */
        function __construct( $preprocessor ) {
                $this->preprocessor = $preprocessor;
index 85e5394..a4bd19b 100644 (file)
@@ -16,8 +16,8 @@ class MWTidy {
         * If tidy isn't able to correct the markup, the original will be
         * returned in all its glory with a warning comment appended.
         *
-        * @param string $text Hideous HTML input
-        * @return string Corrected HTML output
+        * @param $text String: hideous HTML input
+        * @return String: corrected HTML output
         */
        public static function tidy( $text ) {
                global $wgTidyInternal;
@@ -71,7 +71,7 @@ class MWTidy {
         * @param $text String: HTML to check
         * @param $stderr Boolean: Whether to read from STDERR rather than STDOUT
         * @param &$retval Exit code (-1 on internal error)
-        * @retrun mixed String or null
+        * @return mixed String or null
         */
        private static function execExternalTidy( $text, $stderr = false, &$retval = null ) {
                global $wgTidyConf, $wgTidyBin, $wgTidyOpts;