@@ -35,6 +35,7 @@ |
||
35 | 35 | * The sample rate specified in a StatsdData entity overrides the sample rate specified here. |
36 | 36 | * |
37 | 37 | * {@inheritDoc} |
38 | + * @return StatsdDataInterface[] |
|
38 | 39 | */ |
39 | 40 | public function appendSampleRate( $data, $sampleRate = 1 ) { |
40 | 41 | if ( $sampleRate < 1 ) { |
@@ -417,6 +417,9 @@ discard block |
||
417 | 417 | return $this->mEnableOOUI; |
418 | 418 | } |
419 | 419 | |
420 | + /** |
|
421 | + * @param string $text |
|
422 | + */ |
|
420 | 423 | public function setText( $text ) { |
421 | 424 | return wfSetVar( $this->mText, $text ); |
422 | 425 | } |
@@ -437,32 +440,52 @@ discard block |
||
437 | 440 | return wfSetVar( $this->mSections, $toc ); |
438 | 441 | } |
439 | 442 | |
443 | + /** |
|
444 | + * @param boolean $t |
|
445 | + */ |
|
440 | 446 | public function setEditSectionTokens( $t ) { |
441 | 447 | return wfSetVar( $this->mEditSectionTokens, $t ); |
442 | 448 | } |
443 | 449 | |
450 | + /** |
|
451 | + * @param string $policy |
|
452 | + */ |
|
444 | 453 | public function setIndexPolicy( $policy ) { |
445 | 454 | return wfSetVar( $this->mIndexPolicy, $policy ); |
446 | 455 | } |
447 | 456 | |
457 | + /** |
|
458 | + * @param string $tochtml |
|
459 | + */ |
|
448 | 460 | public function setTOCHTML( $tochtml ) { |
449 | 461 | return wfSetVar( $this->mTOCHTML, $tochtml ); |
450 | 462 | } |
451 | 463 | |
464 | + /** |
|
465 | + * @param false|string $timestamp |
|
466 | + */ |
|
452 | 467 | public function setTimestamp( $timestamp ) { |
453 | 468 | return wfSetVar( $this->mTimestamp, $timestamp ); |
454 | 469 | } |
455 | 470 | |
471 | + /** |
|
472 | + * @param boolean $flag |
|
473 | + */ |
|
456 | 474 | public function setTOCEnabled( $flag ) { |
457 | 475 | return wfSetVar( $this->mTOCEnabled, $flag ); |
458 | 476 | } |
459 | 477 | |
478 | + /** |
|
479 | + * @param string $c |
|
480 | + */ |
|
460 | 481 | public function addCategory( $c, $sort ) { |
461 | 482 | $this->mCategories[$c] = $sort; |
462 | 483 | } |
463 | 484 | |
464 | 485 | /** |
465 | 486 | * @since 1.25 |
487 | + * @param string $id |
|
488 | + * @param string $content |
|
466 | 489 | */ |
467 | 490 | public function setIndicator( $id, $content ) { |
468 | 491 | $this->mIndicators[$id] = $content; |
@@ -479,10 +502,16 @@ discard block |
||
479 | 502 | $this->mEnableOOUI = $enable; |
480 | 503 | } |
481 | 504 | |
505 | + /** |
|
506 | + * @param string $t |
|
507 | + */ |
|
482 | 508 | public function addLanguageLink( $t ) { |
483 | 509 | $this->mLanguageLinks[] = $t; |
484 | 510 | } |
485 | 511 | |
512 | + /** |
|
513 | + * @param string $s |
|
514 | + */ |
|
486 | 515 | public function addWarning( $s ) { |
487 | 516 | $this->mWarnings[$s] = 1; |
488 | 517 | } |
@@ -491,9 +520,16 @@ discard block |
||
491 | 520 | $this->mOutputHooks[] = [ $hook, $data ]; |
492 | 521 | } |
493 | 522 | |
523 | + /** |
|
524 | + * @param boolean $value |
|
525 | + */ |
|
494 | 526 | public function setNewSection( $value ) { |
495 | 527 | $this->mNewSection = (bool)$value; |
496 | 528 | } |
529 | + |
|
530 | + /** |
|
531 | + * @param boolean $value |
|
532 | + */ |
|
497 | 533 | public function hideNewSection( $value ) { |
498 | 534 | $this->mHideNewSection = (bool)$value; |
499 | 535 | } |
@@ -822,6 +858,8 @@ discard block |
||
822 | 858 | * $parser->getOutput()->my_ext_foo = '...'; |
823 | 859 | * @endcode |
824 | 860 | * |
861 | + * @param string $name |
|
862 | + * @param string $value |
|
825 | 863 | */ |
826 | 864 | public function setProperty( $name, $value ) { |
827 | 865 | $this->mProperties[$name] = $value; |
@@ -830,7 +868,7 @@ discard block |
||
830 | 868 | /** |
831 | 869 | * @param string $name The property name to look up. |
832 | 870 | * |
833 | - * @return mixed|bool The value previously set using setProperty(). False if null or no value |
|
871 | + * @return string The value previously set using setProperty(). False if null or no value |
|
834 | 872 | * was set for the given property name. |
835 | 873 | * |
836 | 874 | * @note You need to use getProperties() to check for boolean and null properties. |
@@ -945,6 +983,9 @@ discard block |
||
945 | 983 | return null; |
946 | 984 | } |
947 | 985 | |
986 | + /** |
|
987 | + * @param string $clock |
|
988 | + */ |
|
948 | 989 | private static function getTimes( $clock = null ) { |
949 | 990 | $ret = []; |
950 | 991 | if ( !$clock || $clock === 'wall' ) { |
@@ -57,7 +57,7 @@ discard block |
||
57 | 57 | /** |
58 | 58 | * Get the internal type name of this list. Equal to the table name. |
59 | 59 | * Override this function. |
60 | - * @return null |
|
60 | + * @return string |
|
61 | 61 | */ |
62 | 62 | public function getType() { |
63 | 63 | return null; |
@@ -228,7 +228,7 @@ discard block |
||
228 | 228 | |
229 | 229 | /** |
230 | 230 | * Get the timestamp in MW 14-char form |
231 | - * @return mixed |
|
231 | + * @return false|string |
|
232 | 232 | */ |
233 | 233 | public function getTimestamp() { |
234 | 234 | $field = $this->getTimestampField(); |
@@ -110,7 +110,7 @@ |
||
110 | 110 | |
111 | 111 | /** |
112 | 112 | * @param MWRestrictions $value |
113 | - * @return string |
|
113 | + * @return OOUI\TextInputWidget |
|
114 | 114 | */ |
115 | 115 | public function getInputOOUI( $value ) { |
116 | 116 | if ( $value instanceof MWRestrictions ) { |
@@ -55,6 +55,9 @@ |
||
55 | 55 | ) + $this->getAttributes( array( 'disabled', 'tabindex' ), array( 'tabindex' => 'tabIndex' ) ) ); |
56 | 56 | } |
57 | 57 | |
58 | + /** |
|
59 | + * @param string $value |
|
60 | + */ |
|
58 | 61 | function formatOptions( $options, $value ) { |
59 | 62 | $html = ''; |
60 | 63 |
@@ -112,6 +112,11 @@ |
||
112 | 112 | return $status; |
113 | 113 | } |
114 | 114 | |
115 | + /** |
|
116 | + * @param string $lockSrv |
|
117 | + * |
|
118 | + * @return StatusValue |
|
119 | + */ |
|
115 | 120 | abstract protected function doGetLocksOnServer( $lockSrv, array $paths, $type ); |
116 | 121 | |
117 | 122 | protected function freeLocksOnServer( $lockSrv, array $pathsByType ) { |
@@ -328,7 +328,7 @@ |
||
328 | 328 | /** |
329 | 329 | * @param DatabaseBase $db |
330 | 330 | * @param string $error |
331 | - * @param int|string $errno |
|
331 | + * @param integer $errno |
|
332 | 332 | * @param string $sql |
333 | 333 | * @param string $fname |
334 | 334 | */ |
@@ -56,14 +56,14 @@ discard block |
||
56 | 56 | } |
57 | 57 | |
58 | 58 | /** |
59 | - * @return IDatabase |
|
59 | + * @return DatabaseBase|null |
|
60 | 60 | */ |
61 | 61 | function getMasterDB() { |
62 | 62 | return wfGetDB( DB_MASTER, [], $this->wiki ); |
63 | 63 | } |
64 | 64 | |
65 | 65 | /** |
66 | - * @return IDatabase |
|
66 | + * @return DatabaseBase|null |
|
67 | 67 | */ |
68 | 68 | function getSlaveDB() { |
69 | 69 | return wfGetDB( DB_REPLICA, [], $this->wiki ); |
@@ -87,7 +87,7 @@ discard block |
||
87 | 87 | * Get a key on the primary cache for this repository. |
88 | 88 | * Returns false if the repository's cache is not accessible at this site. |
89 | 89 | * The parameters are the parts of the key, as for wfMemcKey(). |
90 | - * @return bool|string |
|
90 | + * @return string|false |
|
91 | 91 | */ |
92 | 92 | function getSharedCacheKey( /*...*/ ) { |
93 | 93 | if ( $this->hasSharedCache() ) { |
@@ -753,7 +753,7 @@ discard block |
||
753 | 753 | /** |
754 | 754 | * @see FileBackendStore::getFileSha1Base36() |
755 | 755 | * @param array $params |
756 | - * @return bool|string |
|
756 | + * @return false|string |
|
757 | 757 | */ |
758 | 758 | protected function doGetFileSha1Base36( array $params ) { |
759 | 759 | $fsFile = $this->getLocalReference( $params ); |
@@ -1031,7 +1031,7 @@ discard block |
||
1031 | 1031 | * to a list of storage paths to be locked. All returned paths are |
1032 | 1032 | * normalized. |
1033 | 1033 | * |
1034 | - * @param array $performOps List of FileOp objects |
|
1034 | + * @param FileOp[] $performOps List of FileOp objects |
|
1035 | 1035 | * @return array (LockManager::LOCK_UW => path list, LockManager::LOCK_EX => path list) |
1036 | 1036 | */ |
1037 | 1037 | final public function getPathsToLockForOpsInternal( array $performOps ) { |