Index: trunk/phase3/includes/parser/Preprocessor_Hash.php |
— | — | @@ -27,8 +27,8 @@ |
28 | 28 | * Preprocess some wikitext and return the document tree. |
29 | 29 | * This is the ghost of Parser::replace_variables(). |
30 | 30 | * |
31 | | - * @param string $text The text to parse |
32 | | - * @param integer flags Bitwise combination of: |
| 31 | + * @param $text String: the text to parse |
| 32 | + * @param $flags Integer: bitwise combination of: |
33 | 33 | * Parser::PTD_FOR_INCLUSION Handle <noinclude>/<includeonly> as if the text is being |
34 | 34 | * included. Default is to assume a direct page view. |
35 | 35 | * |
— | — | @@ -804,7 +804,7 @@ |
805 | 805 | |
806 | 806 | /** |
807 | 807 | * Construct a new preprocessor frame. |
808 | | - * @param Preprocessor $preprocessor The parent preprocessor |
| 808 | + * @param $preprocessor Preprocessor: the parent preprocessor |
809 | 809 | */ |
810 | 810 | function __construct( $preprocessor ) { |
811 | 811 | $this->preprocessor = $preprocessor; |
Index: trunk/phase3/includes/parser/Tidy.php |
— | — | @@ -16,8 +16,8 @@ |
17 | 17 | * If tidy isn't able to correct the markup, the original will be |
18 | 18 | * returned in all its glory with a warning comment appended. |
19 | 19 | * |
20 | | - * @param string $text Hideous HTML input |
21 | | - * @return string Corrected HTML output |
| 20 | + * @param $text String: hideous HTML input |
| 21 | + * @return String: corrected HTML output |
22 | 22 | */ |
23 | 23 | public static function tidy( $text ) { |
24 | 24 | global $wgTidyInternal; |
— | — | @@ -71,7 +71,7 @@ |
72 | 72 | * @param $text String: HTML to check |
73 | 73 | * @param $stderr Boolean: Whether to read from STDERR rather than STDOUT |
74 | 74 | * @param &$retval Exit code (-1 on internal error) |
75 | | - * @retrun mixed String or null |
| 75 | + * @return mixed String or null |
76 | 76 | */ |
77 | 77 | private static function execExternalTidy( $text, $stderr = false, &$retval = null ) { |
78 | 78 | global $wgTidyConf, $wgTidyBin, $wgTidyOpts; |
Index: trunk/phase3/includes/parser/LinkHolderArray.php |
— | — | @@ -405,8 +405,9 @@ |
406 | 406 | /** |
407 | 407 | * Replace <!--LINK--> link placeholders with plain text of links |
408 | 408 | * (not HTML-formatted). |
409 | | - * @param string $text |
410 | | - * @return string |
| 409 | + * |
| 410 | + * @param $text String |
| 411 | + * @return String |
411 | 412 | */ |
412 | 413 | function replaceText( $text ) { |
413 | 414 | wfProfileIn( __METHOD__ ); |
— | — | @@ -421,7 +422,9 @@ |
422 | 423 | } |
423 | 424 | |
424 | 425 | /** |
425 | | - * @param array $matches |
| 426 | + * Callback for replaceText() |
| 427 | + * |
| 428 | + * @param $matches Array |
426 | 429 | * @return string |
427 | 430 | * @private |
428 | 431 | */ |
Index: trunk/phase3/includes/parser/CoreParserFunctions.php |
— | — | @@ -131,7 +131,7 @@ |
132 | 132 | * Or to encode a value for the HTTP "path", spaces are encoded as '%20'. |
133 | 133 | * For links to "wiki"s, or similar software, spaces are encoded as '_', |
134 | 134 | * |
135 | | - * @param $parser. |
| 135 | + * @param $parser Parser object |
136 | 136 | * @param $s String: The text to encode. |
137 | 137 | * @param $arg String (optional): The type of encoding. |
138 | 138 | */ |
Index: trunk/phase3/includes/parser/DateFormatter.php |
— | — | @@ -116,6 +116,7 @@ |
117 | 117 | /** |
118 | 118 | * @param $preference String: User preference |
119 | 119 | * @param $text String: Text to reformat |
| 120 | + * @param $options Array: can contain 'linked' and/or 'match-whole' |
120 | 121 | */ |
121 | 122 | function reformat( $preference, $text, $options = array('linked') ) { |
122 | 123 | |
Index: trunk/phase3/includes/parser/Preprocessor_DOM.php |
— | — | @@ -45,8 +45,8 @@ |
46 | 46 | * Preprocess some wikitext and return the document tree. |
47 | 47 | * This is the ghost of Parser::replace_variables(). |
48 | 48 | * |
49 | | - * @param string $text The text to parse |
50 | | - * @param integer flags Bitwise combination of: |
| 49 | + * @param $text String: the text to parse |
| 50 | + * @param $flags Integer: bitwise combination of: |
51 | 51 | * Parser::PTD_FOR_INCLUSION Handle <noinclude>/<includeonly> as if the text is being |
52 | 52 | * included. Default is to assume a direct page view. |
53 | 53 | * |
— | — | @@ -822,7 +822,7 @@ |
823 | 823 | |
824 | 824 | /** |
825 | 825 | * Construct a new preprocessor frame. |
826 | | - * @param Preprocessor $preprocessor The parent preprocessor |
| 826 | + * @param $preprocessor Preprocessor: The parent preprocessor |
827 | 827 | */ |
828 | 828 | function __construct( $preprocessor ) { |
829 | 829 | $this->preprocessor = $preprocessor; |
Index: trunk/phase3/includes/parser/ParserOptions.php |
— | — | @@ -111,7 +111,9 @@ |
112 | 112 | |
113 | 113 | /** |
114 | 114 | * Get parser options |
115 | | - * @static |
| 115 | + * |
| 116 | + * @param $user User object |
| 117 | + * @return ParserOptions object |
116 | 118 | */ |
117 | 119 | static function newFromUser( $user ) { |
118 | 120 | return new ParserOptions( $user ); |