@@ -168,6 +168,9 @@ discard block |
||
| 168 | 168 | curl_setopt( $this->curl_instance, CURLOPT_COOKIEFILE, $cookie_file ); |
| 169 | 169 | } |
| 170 | 170 | |
| 171 | + /** |
|
| 172 | + * @param string $user_agent |
|
| 173 | + */ |
|
| 171 | 174 | public function setUserAgent($user_agent = null) |
| 172 | 175 | { |
| 173 | 176 | $this->user_agent = $user_agent; |
@@ -178,7 +181,7 @@ discard block |
||
| 178 | 181 | } |
| 179 | 182 | |
| 180 | 183 | /** |
| 181 | - * @return string|bool Data. False on failure. |
|
| 184 | + * @return string Data. False on failure. |
|
| 182 | 185 | * @throws CURLError |
| 183 | 186 | */ |
| 184 | 187 | private function doCurlExecWithRetrys() { |
@@ -218,7 +221,7 @@ discard block |
||
| 218 | 221 | * @param array $headers Array of headers to pass to curl |
| 219 | 222 | * @param bool $verifyssl override for the global verifyssl value |
| 220 | 223 | * |
| 221 | - * @return bool|string Result |
|
| 224 | + * @return string Result |
|
| 222 | 225 | */ |
| 223 | 226 | public function get( $url, $data = null, $headers = array(), $verifyssl = null ) { |
| 224 | 227 | global $argv, $displayGetOutData; |
@@ -682,6 +682,9 @@ |
||
| 682 | 682 | echo $this->colorizer->colorize(sprintf('> %s', $message), 'INFO_BAR')."\n"; |
| 683 | 683 | } |
| 684 | 684 | |
| 685 | + /** |
|
| 686 | + * @param string $message |
|
| 687 | + */ |
|
| 685 | 688 | public function error($message, $file = null, $line = null, $traces = array()) |
| 686 | 689 | { |
| 687 | 690 | if ($file !== null) |
@@ -208,7 +208,6 @@ |
||
| 208 | 208 | * @param bool $mailpassword If set to true, a random password will be emailed to the user. Default false. |
| 209 | 209 | * @param string $reason Optional reason for creating the account to be put in the logs. Default null. |
| 210 | 210 | * @param string $realname Real name of user (optional). Default null. |
| 211 | - * @param bool $tboverride Override the title blacklist. Requires the tboverride right. Default false. |
|
| 212 | 211 | * @param string $language Language code to set as default for the user (optional, defaults to content language). Default null. |
| 213 | 212 | * @param string $domain Domain for external authentication (optional). Default null. |
| 214 | 213 | * @return bool True on success, false otherwise |
@@ -1169,7 +1169,7 @@ discard block |
||
| 1169 | 1169 | * Returns a list of recent changes |
| 1170 | 1170 | * |
| 1171 | 1171 | * @access public |
| 1172 | - * @param integer|array|string $namespace Namespace(s) to check |
|
| 1172 | + * @param integer $namespace Namespace(s) to check |
|
| 1173 | 1173 | * @param string $pgTag Only list recent changes bearing this tag. |
| 1174 | 1174 | * @param int $start Only list changes after this timestamp. |
| 1175 | 1175 | * @param int $end Only list changes before this timestamp. |
@@ -1756,7 +1756,7 @@ discard block |
||
| 1756 | 1756 | * Returns meta information about the wiki itself |
| 1757 | 1757 | * |
| 1758 | 1758 | * @access public |
| 1759 | - * @param array $prop Information to retrieve. Default: array( 'general', 'namespaces', 'namespacealiases', 'specialpagealiases', 'magicwords', 'interwikimap', 'dbrepllag', 'statistics', 'usergroups', 'extensions', 'fileextensions', 'rightsinfo', 'languages' ) |
|
| 1759 | + * @param string[] $prop Information to retrieve. Default: array( 'general', 'namespaces', 'namespacealiases', 'specialpagealiases', 'magicwords', 'interwikimap', 'dbrepllag', 'statistics', 'usergroups', 'extensions', 'fileextensions', 'rightsinfo', 'languages' ) |
|
| 1760 | 1760 | * @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 |
| 1761 | 1761 | * @return array |
| 1762 | 1762 | */ |
@@ -2247,7 +2247,7 @@ discard block |
||
| 2247 | 2247 | * |
| 2248 | 2248 | * @access public |
| 2249 | 2249 | * @param mixed $title Title of the page (default: null) |
| 2250 | - * @param mixed $pageid ID of the page (default: null) |
|
| 2250 | + * @param integer|null $pageid ID of the page (default: null) |
|
| 2251 | 2251 | * @param bool $followRedir Should it follow a redirect when retrieving the page (default: true) |
| 2252 | 2252 | * @param bool $normalize Should the class automatically normalize the title (default: true) |
| 2253 | 2253 | * @param string $timestamp Timestamp of a reference point in the program. Used to detect edit conflicts. |
@@ -2278,7 +2278,6 @@ discard block |
||
| 2278 | 2278 | * @access public |
| 2279 | 2279 | * @param string $filename Filename |
| 2280 | 2280 | * @param int $pageid Page ID of image |
| 2281 | - * @param array $prop Informatation to set. Default array( 'timestamp', 'user', 'comment', 'url', 'size', 'dimensions', 'sha1', 'mime', 'metadata', 'archivename', 'bitdepth' ) |
|
| 2282 | 2281 | * @return Image |
| 2283 | 2282 | * @package initFunctions |
| 2284 | 2283 | */ |
@@ -2437,7 +2436,7 @@ discard block |
||
| 2437 | 2436 | * |
| 2438 | 2437 | * @param string $action Name of action. |
| 2439 | 2438 | * @param null|string $title Name of page to check for nobots |
| 2440 | - * @param null $pageidp |
|
| 2439 | + * @param integer $pageidp |
|
| 2441 | 2440 | * @throws AssertFailure |
| 2442 | 2441 | * @throws EditError |
| 2443 | 2442 | * @throws LoggedOut |
@@ -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; |