Completed
Branch master (541b2e)
by
unknown
26:09
created
includes/db/DatabaseOracle.php 1 patch
Doc Comments   +14 added lines, -2 removed lines patch added patch discarded remove patch
@@ -85,6 +85,9 @@  discard block
 block discarded – undo
85 85
 		unset( $this->db );
86 86
 	}
87 87
 
88
+	/**
89
+	 * @param integer $row
90
+	 */
88 91
 	public function seek( $row ) {
89 92
 		$this->cursor = min( $row, $this->nrows );
90 93
 	}
@@ -484,7 +487,7 @@  discard block
 block discarded – undo
484 487
 
485 488
 	/**
486 489
 	 * This must be called after nextSequenceVal
487
-	 * @return null|int
490
+	 * @return integer
488 491
 	 */
489 492
 	function insertId() {
490 493
 		return $this->mInsertId;
@@ -571,6 +574,9 @@  discard block
 block discarded – undo
571 574
 		return $retVal;
572 575
 	}
573 576
 
577
+	/**
578
+	 * @param string $table
579
+	 */
574 580
 	private function fieldBindStatement( $table, $col, &$val, $includeCol = false ) {
575 581
 		$col_info = $this->fieldInfoMulti( $table, $col );
576 582
 		$col_type = $col_info != false ? $col_info->type() : 'CONSTANT';
@@ -812,6 +818,9 @@  discard block
 block discarded – undo
812 818
 		return strtoupper( parent::tableName( $name, $format ) );
813 819
 	}
814 820
 
821
+	/**
822
+	 * @param string $name
823
+	 */
815 824
 	function tableNameInternal( $name ) {
816 825
 		$name = $this->tableName( $name );
817 826
 
@@ -1269,6 +1278,9 @@  discard block
 block discarded – undo
1269 1278
 		return "'" . $this->strencode( $s ) . "'";
1270 1279
 	}
1271 1280
 
1281
+	/**
1282
+	 * @param string $s
1283
+	 */
1272 1284
 	public function addIdentifierQuotes( $s ) {
1273 1285
 		if ( !$this->getFlag( DBO_DDLMODE ) ) {
1274 1286
 			$s = '/*Q*/' . $s;
@@ -1332,7 +1344,7 @@  discard block
 block discarded – undo
1332 1344
 	 *
1333 1345
 	 * @param array $options An associative array of options to be turned into
1334 1346
 	 *   an SQL query, valid keys are listed in the function.
1335
-	 * @return array
1347
+	 * @return string[]
1336 1348
 	 */
1337 1349
 	function makeSelectOptions( $options ) {
1338 1350
 		$preLimitTail = $postLimitTail = '';
Please login to merge, or discard this patch.
includes/db/loadbalancer/LoadBalancer.php 1 patch
Doc Comments   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -232,7 +232,7 @@  discard block
 block discarded – undo
232 232
 	 * @param string|bool $group Query group, or false for the generic reader
233 233
 	 * @param string|bool $wiki Wiki ID, or false for the current wiki
234 234
 	 * @throws MWException
235
-	 * @return bool|int|string
235
+	 * @return string
236 236
 	 */
237 237
 	public function getReaderIndex( $group = false, $wiki = false ) {
238 238
 		global $wgDBtype;
@@ -437,7 +437,7 @@  discard block
 block discarded – undo
437 437
 	 * Returns false if there is no connection open
438 438
 	 *
439 439
 	 * @param int $i
440
-	 * @return DatabaseBase|bool False on failure
440
+	 * @return DatabaseBase|null False on failure
441 441
 	 */
442 442
 	public function getAnyOpenConnection( $i ) {
443 443
 		foreach ( $this->mConns as $conns ) {
@@ -968,7 +968,7 @@  discard block
 block discarded – undo
968 968
 
969 969
 	/**
970 970
 	 * Get the current master position for chronology control purposes
971
-	 * @return mixed
971
+	 * @return DBMasterPos
972 972
 	 */
973 973
 	public function getMasterPos() {
974 974
 		# If this entire request was served from a slave without opening a connection to the
@@ -1289,7 +1289,7 @@  discard block
 block discarded – undo
1289 1289
 	/**
1290 1290
 	 * Call a function with each open connection object
1291 1291
 	 * @param callable $callback
1292
-	 * @param array $params
1292
+	 * @param string[] $params
1293 1293
 	 */
1294 1294
 	public function forEachOpenConnection( $callback, array $params = [] ) {
1295 1295
 		foreach ( $this->mConns as $conns2 ) {
@@ -1364,7 +1364,7 @@  discard block
 block discarded – undo
1364 1364
 	 * case on many installations.
1365 1365
 	 *
1366 1366
 	 * @param IDatabase $conn
1367
-	 * @return int|bool Returns false on error
1367
+	 * @return integer Returns false on error
1368 1368
 	 */
1369 1369
 	public function safeGetLag( IDatabase $conn ) {
1370 1370
 		if ( $this->getServerCount() == 1 ) {
Please login to merge, or discard this patch.
includes/GlobalFunctions.php 1 patch
Doc Comments   +13 added lines, -18 removed lines patch added patch discarded remove patch
@@ -43,6 +43,7 @@  discard block
 block discarded – undo
43 43
 	/**
44 44
 	 * @codeCoverageIgnore
45 45
 	 * @see Fallback::mb_substr
46
+	 * @param integer $start
46 47
 	 * @return string
47 48
 	 */
48 49
 	function mb_substr( $str, $start, $count = 'end' ) {
@@ -85,7 +86,7 @@  discard block
 block discarded – undo
85 86
 	/**
86 87
 	 * @codeCoverageIgnore
87 88
 	 * @see Fallback::mb_strrpos
88
-	 * @return int
89
+	 * @return string|false
89 90
 	 */
90 91
 	function mb_strrpos( $haystack, $needle, $offset = 0, $encoding = '' ) {
91 92
 		return Fallback::mb_strrpos( $haystack, $needle, $offset, $encoding );
@@ -288,7 +289,6 @@  discard block
 block discarded – undo
288 289
  *   		array( 'y' )
289 290
  *   	)
290 291
  *
291
- * @param array $array1,...
292 292
  * @return array
293 293
  */
294 294
 function wfMergeErrorArrays( /*...*/ ) {
@@ -1340,7 +1340,7 @@  discard block
 block discarded – undo
1340 1340
 /**
1341 1341
  * Get the value of $wgReadOnly or the contents of $wgReadOnlyFile.
1342 1342
  *
1343
- * @return string|bool String when in read-only mode; false otherwise
1343
+ * @return string|false String when in read-only mode; false otherwise
1344 1344
  * @since 1.27
1345 1345
  */
1346 1346
 function wfConfiguredReadOnlyReason() {
@@ -1415,7 +1415,6 @@  discard block
 block discarded – undo
1415 1415
  * This function replaces all old wfMsg* functions.
1416 1416
  *
1417 1417
  * @param string|string[]|MessageSpecifier $key Message key, or array of keys, or a MessageSpecifier
1418
- * @param mixed $params,... Normal message parameters
1419 1418
  * @return Message
1420 1419
  *
1421 1420
  * @since 1.17
@@ -1436,7 +1435,6 @@  discard block
 block discarded – undo
1436 1435
  * for the first message which is non-empty. If all messages are empty then an
1437 1436
  * instance of the first message key is returned.
1438 1437
  *
1439
- * @param string|string[] $keys,... Message keys
1440 1438
  * @return Message
1441 1439
  *
1442 1440
  * @since 1.18
@@ -1667,7 +1665,7 @@  discard block
 block discarded – undo
1667 1665
  * @todo FIXME: We may want to blacklist some broken browsers
1668 1666
  *
1669 1667
  * @param bool $force
1670
- * @return bool Whereas client accept gzip compression
1668
+ * @return null|boolean Whereas client accept gzip compression
1671 1669
  */
1672 1670
 function wfClientAcceptsGzip( $force = false ) {
1673 1671
 	static $result = null;
@@ -1803,7 +1801,7 @@  discard block
 block discarded – undo
1803 1801
 /**
1804 1802
  * Provide a simple HTTP error.
1805 1803
  *
1806
- * @param int|string $code
1804
+ * @param integer $code
1807 1805
  * @param string $label
1808 1806
  * @param string $desc
1809 1807
  */
@@ -2085,8 +2083,8 @@  discard block
 block discarded – undo
2085 2083
  *
2086 2084
  * @param mixed $outputtype A timestamp in one of the supported formats, the
2087 2085
  *   function will autodetect which format is supplied and act accordingly.
2088
- * @param mixed $ts Optional timestamp to convert, default 0 for the current time
2089
- * @return string|bool String / false The same date in the format specified in $outputtype or false
2086
+ * @param integer $ts Optional timestamp to convert, default 0 for the current time
2087
+ * @return string|false String / false The same date in the format specified in $outputtype or false
2090 2088
  */
2091 2089
 function wfTimestamp( $outputtype = TS_UNIX, $ts = 0 ) {
2092 2090
 	try {
@@ -2127,7 +2125,7 @@  discard block
 block discarded – undo
2127 2125
 /**
2128 2126
  * Check if the operating system is Windows
2129 2127
  *
2130
- * @return bool True if it's Windows, false otherwise.
2128
+ * @return boolean|null True if it's Windows, false otherwise.
2131 2129
  */
2132 2130
 function wfIsWindows() {
2133 2131
 	static $isWindows = null;
@@ -2366,7 +2364,7 @@  discard block
 block discarded – undo
2366 2364
 /**
2367 2365
  * Check if wfShellExec() is effectively disabled via php.ini config
2368 2366
  *
2369
- * @return bool|string False or 'disabled'
2367
+ * @return string|false False or 'disabled'
2370 2368
  * @since 1.22
2371 2369
  */
2372 2370
 function wfShellExecDisabled() {
@@ -2980,7 +2978,7 @@  discard block
 block discarded – undo
2980 2978
  * @param int $pad Minimum number of digits in the output (pad with zeroes)
2981 2979
  * @param bool $lowercase Whether to output in lowercase or uppercase
2982 2980
  * @param string $engine Either "gmp", "bcmath", or "php"
2983
- * @return string|bool The output number as a string, or false on error
2981
+ * @return false|string The output number as a string, or false on error
2984 2982
  */
2985 2983
 function wfBaseConvert( $input, $sourceBase, $destBase, $pad = 1,
2986 2984
 	$lowercase = true, $engine = 'auto'
@@ -3065,7 +3063,6 @@  discard block
 block discarded – undo
3065 3063
 /**
3066 3064
  * Make a cache key for the local wiki.
3067 3065
  *
3068
- * @param string $args,...
3069 3066
  * @return string
3070 3067
  */
3071 3068
 function wfMemcKey( /*...*/ ) {
@@ -3082,7 +3079,6 @@  discard block
 block discarded – undo
3082 3079
  *
3083 3080
  * @param string $db
3084 3081
  * @param string $prefix
3085
- * @param string $args,...
3086 3082
  * @return string
3087 3083
  */
3088 3084
 function wfForeignMemcKey( $db, $prefix /*...*/ ) {
@@ -3102,7 +3098,6 @@  discard block
 block discarded – undo
3102 3098
  * in the first segment will clash with wfMemcKey/wfForeignMemcKey.
3103 3099
  *
3104 3100
  * @since 1.26
3105
- * @param string $args,...
3106 3101
  * @return string
3107 3102
  */
3108 3103
 function wfGlobalCacheKey( /*...*/ ) {
@@ -3204,7 +3199,7 @@  discard block
 block discarded – undo
3204 3199
  * Returns a valid placeholder object if the file does not exist.
3205 3200
  *
3206 3201
  * @param Title|string $title
3207
- * @return LocalFile|null A File, or null if passed an invalid Title
3202
+ * @return File|null A File, or null if passed an invalid Title
3208 3203
  */
3209 3204
 function wfLocalFile( $title ) {
3210 3205
 	return RepoGroup::singleton()->getLocalRepo()->newFile( $title );
@@ -3408,7 +3403,7 @@  discard block
 block discarded – undo
3408 3403
 /**
3409 3404
  * Set PHP's time limit to the larger of php.ini or $wgTransactionalTimeLimit
3410 3405
  *
3411
- * @return int Prior time limit
3406
+ * @return string Prior time limit
3412 3407
  * @since 1.26
3413 3408
  */
3414 3409
 function wfTransactionalTimeLimit() {
@@ -3544,7 +3539,7 @@  discard block
 block discarded – undo
3544 3539
  *
3545 3540
  * @param string $format The format string (See php's docs)
3546 3541
  * @param string $data A binary string of binary data
3547
- * @param int|bool $length The minimum length of $data or false. This is to
3542
+ * @param integer $length The minimum length of $data or false. This is to
3548 3543
  *	prevent reading beyond the end of $data. false to disable the check.
3549 3544
  *
3550 3545
  * Also be careful when using this function to read unsigned 32 bit integer
Please login to merge, or discard this patch.
includes/interwiki/Interwiki.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -53,6 +53,9 @@  discard block
 block discarded – undo
53 53
 	/** @var bool Whether interwiki transclusions are allowed */
54 54
 	protected $mTrans;
55 55
 
56
+	/**
57
+	 * @param string $prefix
58
+	 */
56 59
 	public function __construct( $prefix = null, $url = '', $api = '', $wikiId = '', $local = 0,
57 60
 		$trans = 0
58 61
 	) {
@@ -192,6 +195,9 @@  discard block
 block discarded – undo
192 195
 		return $value;
193 196
 	}
194 197
 
198
+	/**
199
+	 * @return string
200
+	 */
195 201
 	private static function getCacheValue( $key ) {
196 202
 		global $wgInterwikiCache;
197 203
 		static $reader;
Please login to merge, or discard this patch.
includes/OutputPage.php 1 patch
Doc Comments   +15 added lines, -9 removed lines patch added patch discarded remove patch
@@ -430,7 +430,7 @@  discard block
 block discarded – undo
430 430
 	 * one is set.
431 431
 	 *
432 432
 	 * @since 1.25
433
-	 * @return bool|string
433
+	 * @return boolean
434 434
 	 */
435 435
 	public function getCanonicalUrl() {
436 436
 		return $this->mCanonicalUrl;
@@ -1650,7 +1650,7 @@  discard block
 block discarded – undo
1650 1650
 	 * Get the timestamp of displayed revision.
1651 1651
 	 * This will be null if not filled by setRevisionTimestamp().
1652 1652
 	 *
1653
-	 * @return string|null
1653
+	 * @return string
1654 1654
 	 */
1655 1655
 	public function getRevisionTimestamp() {
1656 1656
 		return $this->mRevisionTimestamp;
@@ -1659,7 +1659,7 @@  discard block
 block discarded – undo
1659 1659
 	/**
1660 1660
 	 * Set the displayed file version
1661 1661
 	 *
1662
-	 * @param File|bool $file
1662
+	 * @param File $file
1663 1663
 	 * @return mixed Previous value
1664 1664
 	 */
1665 1665
 	public function setFileVersion( $file ) {
@@ -2005,7 +2005,7 @@  discard block
 block discarded – undo
2005 2005
 	/**
2006 2006
 	 * Get the list of cookies that will influence on the cache
2007 2007
 	 *
2008
-	 * @return array
2008
+	 * @return string[]
2009 2009
 	 */
2010 2010
 	function getCacheVaryCookies() {
2011 2011
 		static $cookies;
@@ -2379,7 +2379,7 @@  discard block
 block discarded – undo
2379 2379
 	 * indexing, clear the current text and redirect, set the page's title
2380 2380
 	 * and optionally an custom HTML title (content of the "<title>" tag).
2381 2381
 	 *
2382
-	 * @param string|Message $pageTitle Will be passed directly to setPageTitle()
2382
+	 * @param Message $pageTitle Will be passed directly to setPageTitle()
2383 2383
 	 * @param string|Message $htmlTitle Will be passed directly to setHTMLTitle();
2384 2384
 	 *                   optional, if not passed the "<title>" attribute will be
2385 2385
 	 *                   based on $pageTitle
@@ -2405,8 +2405,8 @@  discard block
 block discarded – undo
2405 2405
 	 * showErrorPage( 'titlemsg', $messageObject );
2406 2406
 	 * showErrorPage( $titleMessageObject, $messageObject );
2407 2407
 	 *
2408
-	 * @param string|Message $title Message key (string) for page title, or a Message object
2409
-	 * @param string|Message $msg Message key (string) for page text, or a Message object
2408
+	 * @param string $title Message key (string) for page title, or a Message object
2409
+	 * @param string $msg Message key (string) for page text, or a Message object
2410 2410
 	 * @param array $params Message parameters; ignored if $msg is a Message object
2411 2411
 	 */
2412 2412
 	public function showErrorPage( $title, $msg, $params = [] ) {
@@ -2602,6 +2602,9 @@  discard block
 block discarded – undo
2602 2602
 		}
2603 2603
 	}
2604 2604
 
2605
+	/**
2606
+	 * @param string $message
2607
+	 */
2605 2608
 	public function showFatalError( $message ) {
2606 2609
 		$this->prepareErrorPage( $this->msg( 'internalerror' ) );
2607 2610
 
@@ -2620,6 +2623,9 @@  discard block
 block discarded – undo
2620 2623
 		$this->showFatalError( $this->msg( 'filerenameerror', $old, $new )->text() );
2621 2624
 	}
2622 2625
 
2626
+	/**
2627
+	 * @param string|false $name
2628
+	 */
2623 2629
 	public function showFileDeleteError( $name ) {
2624 2630
 		$this->showFatalError( $this->msg( 'filedeleteerror', $name )->text() );
2625 2631
 	}
@@ -2646,7 +2652,7 @@  discard block
 block discarded – undo
2646 2652
 	 * Add a "return to" link pointing to a specified title,
2647 2653
 	 * or the title indicated in the request, or else the main page
2648 2654
 	 *
2649
-	 * @param mixed $unused
2655
+	 * @param null|boolean $unused
2650 2656
 	 * @param Title|string $returnto Title or String to return to
2651 2657
 	 * @param string $returntoquery Query string for the return to link
2652 2658
 	 */
@@ -3892,7 +3898,7 @@  discard block
 block discarded – undo
3892 3898
 	 * Caller is responsible for ensuring the file exists. Emits a PHP warning otherwise.
3893 3899
 	 *
3894 3900
 	 * @since 1.27
3895
-	 * @param string $remotePath URL path prefix that points to $localPath
3901
+	 * @param string $remotePathPrefix URL path prefix that points to $localPath
3896 3902
 	 * @param string $localPath File directory exposed at $remotePath
3897 3903
 	 * @param string $file Path to target file relative to $localPath
3898 3904
 	 * @return string URL
Please login to merge, or discard this patch.
includes/page/ImagePage.php 1 patch
Doc Comments   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
 	/**
56 56
 	 * Constructor from a page id
57 57
 	 * @param int $id Article ID to load
58
-	 * @return ImagePage|null
58
+	 * @return ImagePage
59 59
 	 */
60 60
 	public static function newFromID( $id ) {
61 61
 		$t = Title::newFromID( $id );
@@ -266,7 +266,7 @@  discard block
 block discarded – undo
266 266
 	 *
267 267
 	 * @todo FIXME: Bad interface, see note on MediaHandler::formatMetadata().
268 268
 	 *
269
-	 * @param array $metadata The array containing the Exif data
269
+	 * @param boolean $metadata The array containing the Exif data
270 270
 	 * @return string The metadata table. This is treated as Wikitext (!)
271 271
 	 */
272 272
 	protected function makeMetadataTable( $metadata ) {
@@ -295,7 +295,7 @@  discard block
 block discarded – undo
295 295
 	 *
296 296
 	 * Omit noarticletext if sharedupload; text will be fetched from the
297 297
 	 * shared upload server if possible.
298
-	 * @return string
298
+	 * @return null|Content
299 299
 	 */
300 300
 	public function getContentObject() {
301 301
 		$this->loadFile();
@@ -636,7 +636,7 @@  discard block
 block discarded – undo
636 636
 	 * Make the text under the image to say what size preview
637 637
 	 *
638 638
 	 * @param $params Array parameters for thumbnail
639
-	 * @param $sizeLinkBigImagePreview HTML for the current size
639
+	 * @param string $sizeLinkBigImagePreview HTML for the current size
640 640
 	 * @return string HTML output
641 641
 	 */
642 642
 	private function getThumbPrevText( $params, $sizeLinkBigImagePreview ) {
@@ -1211,7 +1211,7 @@  discard block
 block discarded – undo
1211 1211
 
1212 1212
 	/**
1213 1213
 	 * @see WikiFilePage::getFile
1214
-	 * @return bool|File
1214
+	 * @return File
1215 1215
 	 */
1216 1216
 	public function getFile() {
1217 1217
 		return $this->mPage->getFile();
Please login to merge, or discard this patch.
includes/page/WikiPage.php 1 patch
Doc Comments   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -267,7 +267,7 @@  discard block
 block discarded – undo
267 267
 	 * Return the list of revision fields that should be selected to create
268 268
 	 * a new page.
269 269
 	 *
270
-	 * @return array
270
+	 * @return string[]
271 271
 	 */
272 272
 	public static function selectFields() {
273 273
 		global $wgContentHandlerUseDB, $wgPageLanguageUseDB;
@@ -528,7 +528,7 @@  discard block
 block discarded – undo
528 528
 
529 529
 	/**
530 530
 	 * Get the page_links_updated field
531
-	 * @return string|null Containing GMT timestamp
531
+	 * @return string Containing GMT timestamp
532 532
 	 */
533 533
 	public function getLinksTimestamp() {
534 534
 		if ( !$this->mDataLoaded ) {
@@ -1157,7 +1157,7 @@  discard block
 block discarded – undo
1157 1157
 	 * @param IDatabase $dbw
1158 1158
 	 * @param int|null $pageId Custom page ID that will be used for the insert statement
1159 1159
 	 *
1160
-	 * @return bool|int The newly created page_id key; false if the title already existed
1160
+	 * @return integer The newly created page_id key; false if the title already existed
1161 1161
 	 */
1162 1162
 	public function insertOn( $dbw, $pageId = null ) {
1163 1163
 		$pageIdForInsert = $pageId ?: $dbw->nextSequenceValue( 'page_page_id_seq' );
@@ -1484,7 +1484,7 @@  discard block
 block discarded – undo
1484 1484
 	 * @param int|null $baseRevId
1485 1485
 	 *
1486 1486
 	 * @throws MWException
1487
-	 * @return Content|null New complete article content, or null if error.
1487
+	 * @return Content New complete article content, or null if error.
1488 1488
 	 *
1489 1489
 	 * @since 1.24
1490 1490
 	 */
@@ -1570,7 +1570,7 @@  discard block
 block discarded – undo
1570 1570
 	 * error will be returned. These two conditions are also possible with
1571 1571
 	 * auto-detection due to MediaWiki's performance-optimised locking strategy.
1572 1572
 	 *
1573
-	 * @param bool|int $baseRevId The revision ID this edit was based off, if any.
1573
+	 * @param boolean $baseRevId The revision ID this edit was based off, if any.
1574 1574
 	 *   This is not the parent revision ID, rather the revision ID for older
1575 1575
 	 *   content used as the source for a rollback, for example.
1576 1576
 	 * @param User $user The user doing the edit
@@ -3379,7 +3379,7 @@  discard block
 block discarded – undo
3379 3379
 	 * Returns a list of categories this page is a member of.
3380 3380
 	 * Results will include hidden categories
3381 3381
 	 *
3382
-	 * @return TitleArray
3382
+	 * @return TitleArrayFromResult|null
3383 3383
 	 */
3384 3384
 	public function getCategories() {
3385 3385
 		$id = $this->getId();
@@ -3454,7 +3454,7 @@  discard block
 block discarded – undo
3454 3454
 	 * Auto-generates a deletion reason
3455 3455
 	 *
3456 3456
 	 * @param bool &$hasHistory Whether the page has a history
3457
-	 * @return string|bool String containing deletion reason or empty string, or boolean false
3457
+	 * @return false|string String containing deletion reason or empty string, or boolean false
3458 3458
 	 *    if no revision occurred
3459 3459
 	 */
3460 3460
 	public function getAutoDeleteReason( &$hasHistory ) {
Please login to merge, or discard this patch.
includes/resourceloader/ResourceLoaderModule.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -87,7 +87,7 @@  discard block
 block discarded – undo
87 87
 	 * Get this module's name. This is set when the module is registered
88 88
 	 * with ResourceLoader::register()
89 89
 	 *
90
-	 * @return string|null Name (string) or null if no name was set
90
+	 * @return string Name (string) or null if no name was set
91 91
 	 */
92 92
 	public function getName() {
93 93
 		return $this->name;
@@ -209,7 +209,7 @@  discard block
 block discarded – undo
209 209
 	 * MUST return either an only= URL or a non-load.php URL.
210 210
 	 *
211 211
 	 * @param ResourceLoaderContext $context
212
-	 * @return array Array of URLs
212
+	 * @return string[] Array of URLs
213 213
 	 */
214 214
 	public function getScriptURLsForDebug( ResourceLoaderContext $context ) {
215 215
 		$resourceLoader = $context->getResourceLoader();
Please login to merge, or discard this patch.
includes/Sanitizer.php 1 patch
Doc Comments   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -449,7 +449,7 @@  discard block
 block discarded – undo
449 449
 	 *   replacements in HTML attribute values
450 450
 	 * @param array|bool $args Arguments for the processing callback
451 451
 	 * @param array $extratags For any extra tags to include
452
-	 * @param array $removetags For any tags (default or extra) to exclude
452
+	 * @param string[] $removetags For any tags (default or extra) to exclude
453 453
 	 * @return string
454 454
 	 */
455 455
 	public static function removeHTMLtags( $text, $processCallback = null,
@@ -1171,7 +1171,7 @@  discard block
 block discarded – undo
1171 1171
 	 * @since 1.27
1172 1172
 	 *
1173 1173
 	 * @param string $referenceString Space delimited list of ids
1174
-	 * @param string|array $options String or array of strings (default is array()):
1174
+	 * @param string $options String or array of strings (default is array()):
1175 1175
 	 *   'noninitial': This is a non-initial fragment of an id, not a full id,
1176 1176
 	 *       so don't pay attention if the first character isn't valid at the
1177 1177
 	 *       beginning of an id.  Only matters if $wgExperimentalHtmlIds is
@@ -1246,7 +1246,7 @@  discard block
 block discarded – undo
1246 1246
 	 * character references are decoded to UTF-8 text.
1247 1247
 	 *
1248 1248
 	 * @param string $text
1249
-	 * @return array
1249
+	 * @return callable
1250 1250
 	 */
1251 1251
 	public static function decodeTagAttributes( $text ) {
1252 1252
 		if ( trim( $text ) == '' ) {
@@ -1299,7 +1299,7 @@  discard block
 block discarded – undo
1299 1299
 	 * Pick the appropriate attribute value from a match set from the
1300 1300
 	 * attribs regex matches.
1301 1301
 	 *
1302
-	 * @param array $set
1302
+	 * @param string[] $set
1303 1303
 	 * @throws MWException When tag conditions are not met.
1304 1304
 	 * @return string
1305 1305
 	 */
@@ -1819,7 +1819,7 @@  discard block
 block discarded – undo
1819 1819
 
1820 1820
 	/**
1821 1821
 	 * @param string $url
1822
-	 * @return mixed|string
1822
+	 * @return string
1823 1823
 	 */
1824 1824
 	static function cleanUrl( $url ) {
1825 1825
 		# Normalize any HTML entities in input. They will be
@@ -1905,7 +1905,7 @@  discard block
 block discarded – undo
1905 1905
 	 * @since 1.18
1906 1906
 	 *
1907 1907
 	 * @param string $addr E-mail address
1908
-	 * @return bool
1908
+	 * @return null|boolean
1909 1909
 	 */
1910 1910
 	public static function validateEmail( $addr ) {
1911 1911
 		$result = null;
Please login to merge, or discard this patch.