@@ -201,10 +201,10 @@ |
||
| 201 | 201 | |
| 202 | 202 | /** |
| 203 | 203 | * Attempts to find a signature in $input. Returns the name of the user, false on failure. |
| 204 | - * @param $input |
|
| 204 | + * @param string $input |
|
| 205 | 205 | * @param $iffy |
| 206 | 206 | * |
| 207 | - * @return bool|string false if not found Signature, or the Signature if it is found |
|
| 207 | + * @return string|false false if not found Signature, or the Signature if it is found |
|
| 208 | 208 | */ |
| 209 | 209 | protected function findSigInLine( $input, &$iffy ) { |
| 210 | 210 | $iffy = 0; |
@@ -169,7 +169,7 @@ discard block |
||
| 169 | 169 | * Convenience function to build an HTML text input field |
| 170 | 170 | * @param string $name value of the name attribute |
| 171 | 171 | * @param bool|int $size value of the size attribute |
| 172 | - * @param mixed $value mixed value of the value attribute |
|
| 172 | + * @param boolean $value mixed value of the value attribute |
|
| 173 | 173 | * @param array $attribs other attributes |
| 174 | 174 | * @return string HTML |
| 175 | 175 | */ |
@@ -202,7 +202,7 @@ discard block |
||
| 202 | 202 | /** |
| 203 | 203 | * Internal function for use in checkboxes and radio buttons and such. |
| 204 | 204 | * |
| 205 | - * @param $name string |
|
| 205 | + * @param string $name string |
|
| 206 | 206 | * @param $present bool |
| 207 | 207 | * |
| 208 | 208 | * @return array |
@@ -292,14 +292,14 @@ discard block |
||
| 292 | 292 | /** |
| 293 | 293 | * Same as self::inputLabel() but return input and label in an array |
| 294 | 294 | * |
| 295 | - * @param $label String |
|
| 296 | - * @param $name String |
|
| 297 | - * @param $id String |
|
| 295 | + * @param string $label String |
|
| 296 | + * @param string $name String |
|
| 297 | + * @param string $id String |
|
| 298 | 298 | * @param $size Int|Bool |
| 299 | 299 | * @param $value String|Bool |
| 300 | 300 | * @param $attribs array |
| 301 | 301 | * |
| 302 | - * @return array |
|
| 302 | + * @return string[] |
|
| 303 | 303 | */ |
| 304 | 304 | public static function inputLabelSep( $label, $name, $id, $size = false, $value = false, $attribs = array() ) { |
| 305 | 305 | return array( |
@@ -1010,8 +1010,8 @@ discard block |
||
| 1010 | 1010 | } |
| 1011 | 1011 | |
| 1012 | 1012 | /** |
| 1013 | - * @param $name string |
|
| 1014 | - * @param $value |
|
| 1013 | + * @param string $name string |
|
| 1014 | + * @param boolean $value |
|
| 1015 | 1015 | */ |
| 1016 | 1016 | public function setAttribute( $name, $value ) { |
| 1017 | 1017 | $this->attributes[$name] = $value; |
@@ -655,6 +655,10 @@ discard block |
||
| 655 | 655 | $this->nobotsTaskname = $taskname; |
| 656 | 656 | } |
| 657 | 657 | |
| 658 | + /** |
|
| 659 | + * @param string $method |
|
| 660 | + * @param boolean|string $url |
|
| 661 | + */ |
|
| 658 | 662 | private function generateSignature( $method, $url, $params = array() ) { |
| 659 | 663 | $parts = parse_url( $url ); |
| 660 | 664 | |
@@ -1359,7 +1363,7 @@ discard block |
||
| 1359 | 1363 | * Returns a list of recent changes |
| 1360 | 1364 | * |
| 1361 | 1365 | * @access public |
| 1362 | - * @param integer|array|string $namespace Namespace(s) to check |
|
| 1366 | + * @param integer $namespace Namespace(s) to check |
|
| 1363 | 1367 | * @param string $pgTag Only list recent changes bearing this tag. |
| 1364 | 1368 | * @param int $start Only list changes after this timestamp. |
| 1365 | 1369 | * @param int $end Only list changes before this timestamp. |
@@ -1946,7 +1950,7 @@ discard block |
||
| 1946 | 1950 | * Returns meta information about the wiki itself |
| 1947 | 1951 | * |
| 1948 | 1952 | * @access public |
| 1949 | - * @param array $prop Information to retrieve. Default: array( 'general', 'namespaces', 'namespacealiases', 'specialpagealiases', 'magicwords', 'interwikimap', 'dbrepllag', 'statistics', 'usergroups', 'extensions', 'fileextensions', 'rightsinfo', 'languages' ) |
|
| 1953 | + * @param string[] $prop Information to retrieve. Default: array( 'general', 'namespaces', 'namespacealiases', 'specialpagealiases', 'magicwords', 'interwikimap', 'dbrepllag', 'statistics', 'usergroups', 'extensions', 'fileextensions', 'rightsinfo', 'languages' ) |
|
| 1950 | 1954 | * @param bool $iwfilter When used with prop 'interwikimap', returns only local or only nonlocal entries of the interwiki map. True = local, false = nonlocal. Default null |
| 1951 | 1955 | * @return array |
| 1952 | 1956 | */ |
@@ -2437,7 +2441,7 @@ discard block |
||
| 2437 | 2441 | * |
| 2438 | 2442 | * @access public |
| 2439 | 2443 | * @param mixed $title Title of the page (default: null) |
| 2440 | - * @param mixed $pageid ID of the page (default: null) |
|
| 2444 | + * @param integer|null $pageid ID of the page (default: null) |
|
| 2441 | 2445 | * @param bool $followRedir Should it follow a redirect when retrieving the page (default: true) |
| 2442 | 2446 | * @param bool $normalize Should the class automatically normalize the title (default: true) |
| 2443 | 2447 | * @param string $timestamp Timestamp of a reference point in the program. Used to detect edit conflicts. |
@@ -2468,7 +2472,6 @@ discard block |
||
| 2468 | 2472 | * @access public |
| 2469 | 2473 | * @param string $filename Filename |
| 2470 | 2474 | * @param int $pageid Page ID of image |
| 2471 | - * @param array $prop Informatation to set. Default array( 'timestamp', 'user', 'comment', 'url', 'size', 'dimensions', 'sha1', 'mime', 'metadata', 'archivename', 'bitdepth' ) |
|
| 2472 | 2475 | * @return Image |
| 2473 | 2476 | * @package initFunctions |
| 2474 | 2477 | */ |
@@ -2627,7 +2630,7 @@ discard block |
||
| 2627 | 2630 | * |
| 2628 | 2631 | * @param string $action Name of action. |
| 2629 | 2632 | * @param null|string $title Name of page to check for nobots |
| 2630 | - * @param null $pageidp |
|
| 2633 | + * @param integer $pageidp |
|
| 2631 | 2634 | * @throws AssertFailure |
| 2632 | 2635 | * @throws EditError |
| 2633 | 2636 | * @throws LoggedOut |
@@ -186,7 +186,7 @@ discard block |
||
| 186 | 186 | } |
| 187 | 187 | |
| 188 | 188 | /** |
| 189 | - * @return string|bool Data. False on failure. |
|
| 189 | + * @return string Data. False on failure. |
|
| 190 | 190 | * @throws CURLError |
| 191 | 191 | */ |
| 192 | 192 | private function doCurlExecWithRetrys() { |
@@ -226,7 +226,7 @@ discard block |
||
| 226 | 226 | * @param array $headers Array of headers to pass to curl |
| 227 | 227 | * @param bool $verifyssl override for the global verifyssl value |
| 228 | 228 | * |
| 229 | - * @return bool|string Result |
|
| 229 | + * @return string Result |
|
| 230 | 230 | */ |
| 231 | 231 | public function get( $url, $data = null, $headers = array(), $verifyssl = null ) { |
| 232 | 232 | global $argv, $displayGetOutData; |
@@ -280,7 +280,7 @@ discard block |
||
| 280 | 280 | * |
| 281 | 281 | * @param string $url URL to send |
| 282 | 282 | * @param array $data Array of data to pass. |
| 283 | - * @param array $headers Array of headers to pass to curl |
|
| 283 | + * @param string $headers Array of headers to pass to curl |
|
| 284 | 284 | * |
| 285 | 285 | * @param bool|null $verifyssl override for global verifyssl value |
| 286 | 286 | * |
@@ -644,7 +644,7 @@ |
||
| 644 | 644 | * @param $file |
| 645 | 645 | * @param $line |
| 646 | 646 | * @param $context |
| 647 | - * @return bool |
|
| 647 | + * @return false|null |
|
| 648 | 648 | * |
| 649 | 649 | * @FIXME: This method has inconsistent return types |
| 650 | 650 | */ |
@@ -37,7 +37,7 @@ |
||
| 37 | 37 | |
| 38 | 38 | /** |
| 39 | 39 | * @param null $php_cli |
| 40 | - * @return null|string |
|
| 40 | + * @return string |
|
| 41 | 41 | * @throws Exception |
| 42 | 42 | */ |
| 43 | 43 | protected function find_php_cli($php_cli = null) |
@@ -47,7 +47,7 @@ discard block |
||
| 47 | 47 | } |
| 48 | 48 | |
| 49 | 49 | /** |
| 50 | - * @param $message |
|
| 50 | + * @param string $message |
|
| 51 | 51 | * @param null $file |
| 52 | 52 | * @param null $line |
| 53 | 53 | * @param array $traces |
@@ -116,7 +116,7 @@ discard block |
||
| 116 | 116 | /** |
| 117 | 117 | * @param $message |
| 118 | 118 | * @param null $colorizer_parameter |
| 119 | - * @param bool|true $colorize |
|
| 119 | + * @param boolean $colorize |
|
| 120 | 120 | */ |
| 121 | 121 | public function echoln($message, $colorizer_parameter = null, $colorize = true) |
| 122 | 122 | { |
@@ -2112,7 +2112,7 @@ |
||
| 2112 | 2112 | * @param string $summary Override the default edit summary for this rollback. Default null. |
| 2113 | 2113 | * @param bool $markbot If set, both the rollback and the revisions being rolled back will be marked as bot edits. |
| 2114 | 2114 | * @param string|bool $watch Unconditionally add or remove the page from your watchlist, use preferences or do not change watch. Default preferences. |
| 2115 | - * @return array Details of the rollback perform. ['revid']: The revision ID of the rollback. ['old_revid']: The revision ID of the first (most recent) revision that was rolled back. ['last_revid']: The revision ID of the last (oldest) revision that was rolled back. |
|
| 2115 | + * @return boolean Details of the rollback perform. ['revid']: The revision ID of the rollback. ['old_revid']: The revision ID of the first (most recent) revision that was rolled back. ['last_revid']: The revision ID of the last (oldest) revision that was rolled back. |
|
| 2116 | 2116 | */ |
| 2117 | 2117 | public function rollback( $force = false, $summary = null, $markbot = false, $watch = null ) { |
| 2118 | 2118 | global $pgNotag, $pgTag; |