@@ -111,7 +111,7 @@ |
||
111 | 111 | } |
112 | 112 | |
113 | 113 | /** |
114 | - * @return mixed |
|
114 | + * @return integer |
|
115 | 115 | */ |
116 | 116 | function stream_tell() { |
117 | 117 | return $this->mPosition; |
@@ -384,14 +384,14 @@ discard block |
||
384 | 384 | } |
385 | 385 | |
386 | 386 | /** |
387 | - * @return mixed |
|
387 | + * @return string |
|
388 | 388 | */ |
389 | 389 | function getSrc() { |
390 | 390 | return $this->src; |
391 | 391 | } |
392 | 392 | |
393 | 393 | /** |
394 | - * @return bool|string |
|
394 | + * @return false|string |
|
395 | 395 | */ |
396 | 396 | function getSha1() { |
397 | 397 | if ( $this->sha1base36 ) { |
@@ -415,7 +415,7 @@ discard block |
||
415 | 415 | } |
416 | 416 | |
417 | 417 | /** |
418 | - * @return mixed |
|
418 | + * @return string |
|
419 | 419 | */ |
420 | 420 | function getFilename() { |
421 | 421 | return $this->filename; |
@@ -429,7 +429,7 @@ discard block |
||
429 | 429 | } |
430 | 430 | |
431 | 431 | /** |
432 | - * @return mixed |
|
432 | + * @return integer |
|
433 | 433 | */ |
434 | 434 | function getSize() { |
435 | 435 | return $this->size; |
@@ -681,7 +681,7 @@ discard block |
||
681 | 681 | } |
682 | 682 | |
683 | 683 | /** |
684 | - * @return bool|string |
|
684 | + * @return false|string |
|
685 | 685 | */ |
686 | 686 | function downloadSource() { |
687 | 687 | if ( !$this->config->get( 'EnableUploads' ) ) { |
@@ -393,7 +393,7 @@ discard block |
||
393 | 393 | /** |
394 | 394 | * Get a variable, taking local defaults into account. |
395 | 395 | * @param string $var |
396 | - * @param mixed|null $default |
|
396 | + * @param boolean $default |
|
397 | 397 | * @return mixed |
398 | 398 | */ |
399 | 399 | public function getVar( $var, $default = null ) { |
@@ -516,8 +516,8 @@ discard block |
||
516 | 516 | * Convenience function to set variables based on form data. |
517 | 517 | * Assumes that variables containing "password" in the name are (potentially |
518 | 518 | * fake) passwords. |
519 | - * @param array $varNames |
|
520 | - * @return array |
|
519 | + * @param string[] $varNames |
|
520 | + * @return string[] |
|
521 | 521 | */ |
522 | 522 | public function setVarsFromRequest( $varNames ) { |
523 | 523 | return $this->parent->setVarsFromRequest( $varNames, $this->getName() . '_' ); |
@@ -21,6 +21,10 @@ |
||
21 | 21 | */ |
22 | 22 | |
23 | 23 | class InstallDocFormatter { |
24 | + |
|
25 | + /** |
|
26 | + * @param string $text |
|
27 | + */ |
|
24 | 28 | static function format( $text ) { |
25 | 29 | $obj = new self( $text ); |
26 | 30 |
@@ -578,7 +578,7 @@ discard block |
||
578 | 578 | * fake password in which case leave it as it is. |
579 | 579 | * |
580 | 580 | * @param string $name |
581 | - * @param mixed $value |
|
581 | + * @param string $value |
|
582 | 582 | */ |
583 | 583 | public function setPassword( $name, $value ) { |
584 | 584 | if ( !preg_match( '/^\*+$/', $value ) ) { |
@@ -1266,7 +1266,7 @@ discard block |
||
1266 | 1266 | * |
1267 | 1267 | * If $versionInfo is not false, only executables with a version |
1268 | 1268 | * matching $versionInfo[1] will be returned. |
1269 | - * @return bool|string |
|
1269 | + * @return string|false |
|
1270 | 1270 | */ |
1271 | 1271 | public static function locateExecutable( $path, $names, $versionInfo = false ) { |
1272 | 1272 | if ( !is_array( $names ) ) { |
@@ -1298,14 +1298,14 @@ discard block |
||
1298 | 1298 | /** |
1299 | 1299 | * Same as locateExecutable(), but checks in getPossibleBinPaths() by default |
1300 | 1300 | * @see locateExecutable() |
1301 | - * @param array $names Array of possible names. |
|
1302 | - * @param array|bool $versionInfo Default: false or array with two members: |
|
1301 | + * @param string[] $names Array of possible names. |
|
1302 | + * @param string[] $versionInfo Default: false or array with two members: |
|
1303 | 1303 | * 0 => Command to run for version check, with $1 for the full executable name |
1304 | 1304 | * 1 => String to compare the output with |
1305 | 1305 | * |
1306 | 1306 | * If $versionInfo is not false, only executables with a version |
1307 | 1307 | * matching $versionInfo[1] will be returned. |
1308 | - * @return bool|string |
|
1308 | + * @return string|false |
|
1309 | 1309 | */ |
1310 | 1310 | public static function locateExecutableInDefaultPaths( $names, $versionInfo = false ) { |
1311 | 1311 | foreach ( self::getPossibleBinPaths() as $path ) { |
@@ -1324,7 +1324,7 @@ discard block |
||
1324 | 1324 | * Used only by environment checks. |
1325 | 1325 | * @param string $dir |
1326 | 1326 | * @param string $url |
1327 | - * @return bool|int|string |
|
1327 | + * @return string|false |
|
1328 | 1328 | */ |
1329 | 1329 | public function dirIsExecutable( $dir, $url ) { |
1330 | 1330 | $scriptTypes = array( |
@@ -289,7 +289,7 @@ |
||
289 | 289 | * @param string $table Table name |
290 | 290 | * @param string $field Field name to check |
291 | 291 | * @param string $patchFile Path to the patch to correct the field |
292 | - * @return bool |
|
292 | + * @return boolean|null |
|
293 | 293 | */ |
294 | 294 | protected function checkBin( $table, $field, $patchFile ) { |
295 | 295 | if ( !$this->doTable( $table ) ) { |
@@ -546,6 +546,9 @@ discard block |
||
546 | 546 | return $colnames; |
547 | 547 | } |
548 | 548 | |
549 | + /** |
|
550 | + * @param string $fkey |
|
551 | + */ |
|
549 | 552 | function fkeyDeltype( $fkey ) { |
550 | 553 | $q = <<<END |
551 | 554 | SELECT confdeltype FROM pg_constraint, pg_namespace |
@@ -726,6 +729,9 @@ discard block |
||
726 | 729 | } |
727 | 730 | } |
728 | 731 | |
732 | + /** |
|
733 | + * @param string $default |
|
734 | + */ |
|
729 | 735 | protected function setDefault( $table, $field, $default ) { |
730 | 736 | |
731 | 737 | $info = $this->db->fieldInfo( $table, $field ); |
@@ -388,7 +388,7 @@ discard block |
||
388 | 388 | /** |
389 | 389 | * Show an error message in a box. Parameters are like wfMessage(), or |
390 | 390 | * alternatively, pass a Message object in. |
391 | - * @param string|Message $msg |
|
391 | + * @param string $msg |
|
392 | 392 | */ |
393 | 393 | public function showError( $msg /*...*/ ) { |
394 | 394 | if ( !( $msg instanceof Message ) ) { |
@@ -486,7 +486,7 @@ discard block |
||
486 | 486 | * Set a session variable. |
487 | 487 | * |
488 | 488 | * @param string $name Key for the variable |
489 | - * @param mixed $value |
|
489 | + * @param boolean $value |
|
490 | 490 | */ |
491 | 491 | public function setSession( $name, $value ) { |
492 | 492 | $this->session[$name] = $value; |
@@ -130,7 +130,7 @@ discard block |
||
130 | 130 | } |
131 | 131 | |
132 | 132 | /** |
133 | - * @return int|null UNIX timestamp to delay running this job until, otherwise null |
|
133 | + * @return string|null UNIX timestamp to delay running this job until, otherwise null |
|
134 | 134 | * @since 1.22 |
135 | 135 | */ |
136 | 136 | public function getReleaseTimestamp() { |
@@ -140,7 +140,7 @@ discard block |
||
140 | 140 | } |
141 | 141 | |
142 | 142 | /** |
143 | - * @return int|null UNIX timestamp of when the job was queued, or null |
|
143 | + * @return string|null UNIX timestamp of when the job was queued, or null |
|
144 | 144 | * @since 1.26 |
145 | 145 | */ |
146 | 146 | public function getQueuedTimestamp() { |
@@ -150,7 +150,7 @@ discard block |
||
150 | 150 | } |
151 | 151 | |
152 | 152 | /** |
153 | - * @return int|null UNIX timestamp of when the job was runnable, or null |
|
153 | + * @return string|null UNIX timestamp of when the job was runnable, or null |
|
154 | 154 | * @since 1.26 |
155 | 155 | */ |
156 | 156 | public function getReadyTimestamp() { |