Completed
Branch master (d57458)
by
unknown
21:51
created
includes/page/WikiPage.php 1 patch
Doc Comments   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -261,7 +261,7 @@  discard block
 block discarded – undo
261 261
 	 * Return the list of revision fields that should be selected to create
262 262
 	 * a new page.
263 263
 	 *
264
-	 * @return array
264
+	 * @return string[]
265 265
 	 */
266 266
 	public static function selectFields() {
267 267
 		global $wgContentHandlerUseDB, $wgPageLanguageUseDB;
@@ -522,7 +522,7 @@  discard block
 block discarded – undo
522 522
 
523 523
 	/**
524 524
 	 * Get the page_links_updated field
525
-	 * @return string|null Containing GMT timestamp
525
+	 * @return string Containing GMT timestamp
526 526
 	 */
527 527
 	public function getLinksTimestamp() {
528 528
 		if ( !$this->mDataLoaded ) {
@@ -1050,7 +1050,7 @@  discard block
 block discarded – undo
1050 1050
 	 * @param null|int $oldid Revision ID to get the text from, passing null or 0 will
1051 1051
 	 *   get the current revision (default value)
1052 1052
 	 *
1053
-	 * @return ParserOutput|bool ParserOutput or false if the revision was not found
1053
+	 * @return ParserOutput ParserOutput or false if the revision was not found
1054 1054
 	 */
1055 1055
 	public function getParserOutput( ParserOptions $parserOptions, $oldid = null ) {
1056 1056
 
@@ -1151,7 +1151,7 @@  discard block
 block discarded – undo
1151 1151
 	 * @param IDatabase $dbw
1152 1152
 	 * @param int|null $pageId Custom page ID that will be used for the insert statement
1153 1153
 	 *
1154
-	 * @return bool|int The newly created page_id key; false if the title already existed
1154
+	 * @return integer The newly created page_id key; false if the title already existed
1155 1155
 	 */
1156 1156
 	public function insertOn( $dbw, $pageId = null ) {
1157 1157
 		$pageIdForInsert = $pageId ?: $dbw->nextSequenceValue( 'page_page_id_seq' );
@@ -1408,7 +1408,7 @@  discard block
 block discarded – undo
1408 1408
 	 * @param int|null $baseRevId
1409 1409
 	 *
1410 1410
 	 * @throws MWException
1411
-	 * @return Content|null New complete article content, or null if error.
1411
+	 * @return Content New complete article content, or null if error.
1412 1412
 	 *
1413 1413
 	 * @since 1.24
1414 1414
 	 */
@@ -1494,7 +1494,7 @@  discard block
 block discarded – undo
1494 1494
 	 * error will be returned. These two conditions are also possible with
1495 1495
 	 * auto-detection due to MediaWiki's performance-optimised locking strategy.
1496 1496
 	 *
1497
-	 * @param bool|int $baseRevId The revision ID this edit was based off, if any.
1497
+	 * @param boolean $baseRevId The revision ID this edit was based off, if any.
1498 1498
 	 *   This is not the parent revision ID, rather the revision ID for older
1499 1499
 	 *   content used as the source for a rollback, for example.
1500 1500
 	 * @param User $user The user doing the edit
@@ -3320,7 +3320,7 @@  discard block
 block discarded – undo
3320 3320
 	 * Returns a list of categories this page is a member of.
3321 3321
 	 * Results will include hidden categories
3322 3322
 	 *
3323
-	 * @return TitleArray
3323
+	 * @return TitleArrayFromResult|null
3324 3324
 	 */
3325 3325
 	public function getCategories() {
3326 3326
 		$id = $this->getId();
@@ -3395,7 +3395,7 @@  discard block
 block discarded – undo
3395 3395
 	 * Auto-generates a deletion reason
3396 3396
 	 *
3397 3397
 	 * @param bool &$hasHistory Whether the page has a history
3398
-	 * @return string|bool String containing deletion reason or empty string, or boolean false
3398
+	 * @return false|string String containing deletion reason or empty string, or boolean false
3399 3399
 	 *    if no revision occurred
3400 3400
 	 */
3401 3401
 	public function getAutoDeleteReason( &$hasHistory ) {
Please login to merge, or discard this patch.
includes/parser/ParserOutput.php 1 patch
Doc Comments   +49 added lines, -2 removed lines patch added patch discarded remove patch
@@ -382,7 +382,7 @@  discard block
 block discarded – undo
382 382
 	}
383 383
 
384 384
 	/**
385
-	 * @return string|null TS_MW timestamp of the revision content
385
+	 * @return string TS_MW timestamp of the revision content
386 386
 	 */
387 387
 	public function getTimestamp() {
388 388
 		return $this->mTimestamp;
@@ -400,6 +400,9 @@  discard block
 block discarded – undo
400 400
 		return $this->mEnableOOUI;
401 401
 	}
402 402
 
403
+	/**
404
+	 * @param string $text
405
+	 */
403 406
 	public function setText( $text ) {
404 407
 		return wfSetVar( $this->mText, $text );
405 408
 	}
@@ -412,6 +415,9 @@  discard block
 block discarded – undo
412 415
 		return wfSetVar( $this->mCategories, $cl );
413 416
 	}
414 417
 
418
+	/**
419
+	 * @param boolean|string $t
420
+	 */
415 421
 	public function setTitleText( $t ) {
416 422
 		return wfSetVar( $this->mTitleText, $t );
417 423
 	}
@@ -420,32 +426,52 @@  discard block
 block discarded – undo
420 426
 		return wfSetVar( $this->mSections, $toc );
421 427
 	}
422 428
 
429
+	/**
430
+	 * @param boolean $t
431
+	 */
423 432
 	public function setEditSectionTokens( $t ) {
424 433
 		return wfSetVar( $this->mEditSectionTokens, $t );
425 434
 	}
426 435
 
436
+	/**
437
+	 * @param string $policy
438
+	 */
427 439
 	public function setIndexPolicy( $policy ) {
428 440
 		return wfSetVar( $this->mIndexPolicy, $policy );
429 441
 	}
430 442
 
443
+	/**
444
+	 * @param string $tochtml
445
+	 */
431 446
 	public function setTOCHTML( $tochtml ) {
432 447
 		return wfSetVar( $this->mTOCHTML, $tochtml );
433 448
 	}
434 449
 
450
+	/**
451
+	 * @param string|false $timestamp
452
+	 */
435 453
 	public function setTimestamp( $timestamp ) {
436 454
 		return wfSetVar( $this->mTimestamp, $timestamp );
437 455
 	}
438 456
 
457
+	/**
458
+	 * @param boolean $flag
459
+	 */
439 460
 	public function setTOCEnabled( $flag ) {
440 461
 		return wfSetVar( $this->mTOCEnabled, $flag );
441 462
 	}
442 463
 
464
+	/**
465
+	 * @param string $c
466
+	 */
443 467
 	public function addCategory( $c, $sort ) {
444 468
 		$this->mCategories[$c] = $sort;
445 469
 	}
446 470
 
447 471
 	/**
448 472
 	 * @since 1.25
473
+	 * @param string $id
474
+	 * @param string $content
449 475
 	 */
450 476
 	public function setIndicator( $id, $content ) {
451 477
 		$this->mIndicators[$id] = $content;
@@ -462,10 +488,16 @@  discard block
 block discarded – undo
462 488
 		$this->mEnableOOUI = $enable;
463 489
 	}
464 490
 
491
+	/**
492
+	 * @param string $t
493
+	 */
465 494
 	public function addLanguageLink( $t ) {
466 495
 		$this->mLanguageLinks[] = $t;
467 496
 	}
468 497
 
498
+	/**
499
+	 * @param string $s
500
+	 */
469 501
 	public function addWarning( $s ) {
470 502
 		$this->mWarnings[$s] = 1;
471 503
 	}
@@ -474,9 +506,16 @@  discard block
 block discarded – undo
474 506
 		$this->mOutputHooks[] = [ $hook, $data ];
475 507
 	}
476 508
 
509
+	/**
510
+	 * @param boolean $value
511
+	 */
477 512
 	public function setNewSection( $value ) {
478 513
 		$this->mNewSection = (bool)$value;
479 514
 	}
515
+
516
+	/**
517
+	 * @param boolean $value
518
+	 */
480 519
 	public function hideNewSection( $value ) {
481 520
 		$this->mHideNewSection = (bool)$value;
482 521
 	}
@@ -750,6 +789,9 @@  discard block
 block discarded – undo
750 789
 		$this->mFlags[$flag] = true;
751 790
 	}
752 791
 
792
+	/**
793
+	 * @param string $flag
794
+	 */
753 795
 	public function getFlag( $flag ) {
754 796
 		return isset( $this->mFlags[$flag] );
755 797
 	}
@@ -813,6 +855,8 @@  discard block
 block discarded – undo
813 855
 	 *    $parser->getOutput()->my_ext_foo = '...';
814 856
 	 * @endcode
815 857
 	 *
858
+	 * @param string $name
859
+	 * @param string $value
816 860
 	 */
817 861
 	public function setProperty( $name, $value ) {
818 862
 		$this->mProperties[$name] = $value;
@@ -821,7 +865,7 @@  discard block
 block discarded – undo
821 865
 	/**
822 866
 	 * @param string $name The property name to look up.
823 867
 	 *
824
-	 * @return mixed|bool The value previously set using setProperty(). False if null or no value
868
+	 * @return string The value previously set using setProperty(). False if null or no value
825 869
 	 * was set for the given property name.
826 870
 	 *
827 871
 	 * @note You need to use getProperties() to check for boolean and null properties.
@@ -936,6 +980,9 @@  discard block
 block discarded – undo
936 980
 		return null;
937 981
 	}
938 982
 
983
+	/**
984
+	 * @param string $clock
985
+	 */
939 986
 	private static function getTimes( $clock = null ) {
940 987
 		$ret = [];
941 988
 		if ( !$clock || $clock === 'wall' ) {
Please login to merge, or discard this patch.