Completed
Branch master (8850f3)
by
unknown
38:32
created
includes/page/WikiPage.php 1 patch
Doc Comments   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -257,7 +257,7 @@  discard block
 block discarded – undo
257 257
 	 * Return the list of revision fields that should be selected to create
258 258
 	 * a new page.
259 259
 	 *
260
-	 * @return array
260
+	 * @return string[]
261 261
 	 */
262 262
 	public static function selectFields() {
263 263
 		global $wgContentHandlerUseDB, $wgPageLanguageUseDB;
@@ -1144,7 +1144,7 @@  discard block
 block discarded – undo
1144 1144
 	 * @param IDatabase $dbw
1145 1145
 	 * @param int|null $pageId Custom page ID that will be used for the insert statement
1146 1146
 	 *
1147
-	 * @return bool|int The newly created page_id key; false if the row was not
1147
+	 * @return integer The newly created page_id key; false if the row was not
1148 1148
 	 *   inserted, e.g. because the title already existed or because the specified
1149 1149
 	 *   page ID is already in use.
1150 1150
 	 */
@@ -1491,7 +1491,7 @@  discard block
 block discarded – undo
1491 1491
 	 * error will be returned. These two conditions are also possible with
1492 1492
 	 * auto-detection due to MediaWiki's performance-optimised locking strategy.
1493 1493
 	 *
1494
-	 * @param bool|int $baseRevId The revision ID this edit was based off, if any.
1494
+	 * @param boolean $baseRevId The revision ID this edit was based off, if any.
1495 1495
 	 *   This is not the parent revision ID, rather the revision ID for older
1496 1496
 	 *   content used as the source for a rollback, for example.
1497 1497
 	 * @param User $user The user doing the edit
@@ -3370,7 +3370,7 @@  discard block
 block discarded – undo
3370 3370
 	 * Returns a list of categories this page is a member of.
3371 3371
 	 * Results will include hidden categories
3372 3372
 	 *
3373
-	 * @return TitleArray
3373
+	 * @return TitleArrayFromResult|null
3374 3374
 	 */
3375 3375
 	public function getCategories() {
3376 3376
 		$id = $this->getId();
@@ -3445,7 +3445,7 @@  discard block
 block discarded – undo
3445 3445
 	 * Auto-generates a deletion reason
3446 3446
 	 *
3447 3447
 	 * @param bool &$hasHistory Whether the page has a history
3448
-	 * @return string|bool String containing deletion reason or empty string, or boolean false
3448
+	 * @return false|string String containing deletion reason or empty string, or boolean false
3449 3449
 	 *    if no revision occurred
3450 3450
 	 */
3451 3451
 	public function getAutoDeleteReason( &$hasHistory ) {
Please login to merge, or discard this patch.
maintenance/hhvm/makeRepo.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -129,6 +129,9 @@
 block discarded – undo
129 129
 		return 0;
130 130
 	}
131 131
 
132
+	/**
133
+	 * @param string $tmpDir
134
+	 */
132 135
 	private function cleanupTemp( $tmpDir ) {
133 136
 		if ( file_exists( "$tmpDir/hhvm.hhbc" ) ) {
134 137
 			unlink( "$tmpDir/hhvm.hhbc" );
Please login to merge, or discard this patch.
includes/GlobalFunctions.php 1 patch
Doc Comments   +14 added lines, -20 removed lines patch added patch discarded remove patch
@@ -234,7 +234,6 @@  discard block
 block discarded – undo
234 234
  *   		[ 'y' ]
235 235
  *   	]
236 236
  *
237
- * @param array $array1,...
238 237
  * @return array
239 238
  */
240 239
 function wfMergeErrorArrays( /*...*/ ) {
@@ -261,8 +260,8 @@  discard block
 block discarded – undo
261 260
  *
262 261
  * @param array $array The array.
263 262
  * @param array $insert The array to insert.
264
- * @param mixed $after The key to insert after
265
- * @return array
263
+ * @param string $after The key to insert after
264
+ * @return string[]
266 265
  */
267 266
 function wfArrayInsertAfter( array $array, array $insert, $after ) {
268 267
 	// Find the offset of the element to insert after.
@@ -1300,7 +1299,7 @@  discard block
 block discarded – undo
1300 1299
 /**
1301 1300
  * Get the value of $wgReadOnly or the contents of $wgReadOnlyFile.
1302 1301
  *
1303
- * @return string|bool String when in read-only mode; false otherwise
1302
+ * @return string|false String when in read-only mode; false otherwise
1304 1303
  * @since 1.27
1305 1304
  */
1306 1305
 function wfConfiguredReadOnlyReason() {
@@ -1375,7 +1374,6 @@  discard block
 block discarded – undo
1375 1374
  * This function replaces all old wfMsg* functions.
1376 1375
  *
1377 1376
  * @param string|string[]|MessageSpecifier $key Message key, or array of keys, or a MessageSpecifier
1378
- * @param mixed $params,... Normal message parameters
1379 1377
  * @return Message
1380 1378
  *
1381 1379
  * @since 1.17
@@ -1396,7 +1394,6 @@  discard block
 block discarded – undo
1396 1394
  * for the first message which is non-empty. If all messages are empty then an
1397 1395
  * instance of the first message key is returned.
1398 1396
  *
1399
- * @param string|string[] $keys,... Message keys
1400 1397
  * @return Message
1401 1398
  *
1402 1399
  * @since 1.18
@@ -1627,7 +1624,7 @@  discard block
 block discarded – undo
1627 1624
  * @todo FIXME: We may want to blacklist some broken browsers
1628 1625
  *
1629 1626
  * @param bool $force
1630
- * @return bool Whereas client accept gzip compression
1627
+ * @return null|boolean Whereas client accept gzip compression
1631 1628
  */
1632 1629
 function wfClientAcceptsGzip( $force = false ) {
1633 1630
 	static $result = null;
@@ -1713,7 +1710,7 @@  discard block
 block discarded – undo
1713 1710
  * @param mixed $dest
1714 1711
  * @param mixed $source
1715 1712
  * @param bool $force
1716
- * @return mixed
1713
+ * @return string
1717 1714
  */
1718 1715
 function wfSetVar( &$dest, $source, $force = false ) {
1719 1716
 	$temp = $dest;
@@ -1763,7 +1760,7 @@  discard block
 block discarded – undo
1763 1760
 /**
1764 1761
  * Provide a simple HTTP error.
1765 1762
  *
1766
- * @param int|string $code
1763
+ * @param integer $code
1767 1764
  * @param string $label
1768 1765
  * @param string $desc
1769 1766
  */
@@ -2045,8 +2042,8 @@  discard block
 block discarded – undo
2045 2042
  *
2046 2043
  * @param mixed $outputtype A timestamp in one of the supported formats, the
2047 2044
  *   function will autodetect which format is supplied and act accordingly.
2048
- * @param mixed $ts Optional timestamp to convert, default 0 for the current time
2049
- * @return string|bool String / false The same date in the format specified in $outputtype or false
2045
+ * @param integer $ts Optional timestamp to convert, default 0 for the current time
2046
+ * @return string|false String / false The same date in the format specified in $outputtype or false
2050 2047
  */
2051 2048
 function wfTimestamp( $outputtype = TS_UNIX, $ts = 0 ) {
2052 2049
 	try {
@@ -2087,7 +2084,7 @@  discard block
 block discarded – undo
2087 2084
 /**
2088 2085
  * Check if the operating system is Windows
2089 2086
  *
2090
- * @return bool True if it's Windows, false otherwise.
2087
+ * @return boolean|null True if it's Windows, false otherwise.
2091 2088
  */
2092 2089
 function wfIsWindows() {
2093 2090
 	static $isWindows = null;
@@ -2344,7 +2341,7 @@  discard block
 block discarded – undo
2344 2341
 /**
2345 2342
  * Check if wfShellExec() is effectively disabled via php.ini config
2346 2343
  *
2347
- * @return bool|string False or 'disabled'
2344
+ * @return string|false False or 'disabled'
2348 2345
  * @since 1.22
2349 2346
  */
2350 2347
 function wfShellExecDisabled() {
@@ -2958,7 +2955,7 @@  discard block
 block discarded – undo
2958 2955
  * @param int $pad Minimum number of digits in the output (pad with zeroes)
2959 2956
  * @param bool $lowercase Whether to output in lowercase or uppercase
2960 2957
  * @param string $engine Either "gmp", "bcmath", or "php"
2961
- * @return string|bool The output number as a string, or false on error
2958
+ * @return false|string The output number as a string, or false on error
2962 2959
  */
2963 2960
 function wfBaseConvert( $input, $sourceBase, $destBase, $pad = 1,
2964 2961
 	$lowercase = true, $engine = 'auto'
@@ -3043,7 +3040,6 @@  discard block
 block discarded – undo
3043 3040
 /**
3044 3041
  * Make a cache key for the local wiki.
3045 3042
  *
3046
- * @param string $args,...
3047 3043
  * @return string
3048 3044
  */
3049 3045
 function wfMemcKey( /*...*/ ) {
@@ -3060,7 +3056,6 @@  discard block
 block discarded – undo
3060 3056
  *
3061 3057
  * @param string $db
3062 3058
  * @param string $prefix
3063
- * @param string $args,...
3064 3059
  * @return string
3065 3060
  */
3066 3061
 function wfForeignMemcKey( $db, $prefix /*...*/ ) {
@@ -3080,7 +3075,6 @@  discard block
 block discarded – undo
3080 3075
  * in the first segment will clash with wfMemcKey/wfForeignMemcKey.
3081 3076
  *
3082 3077
  * @since 1.26
3083
- * @param string $args,...
3084 3078
  * @return string
3085 3079
  */
3086 3080
 function wfGlobalCacheKey( /*...*/ ) {
@@ -3195,7 +3189,7 @@  discard block
 block discarded – undo
3195 3189
  * Returns a valid placeholder object if the file does not exist.
3196 3190
  *
3197 3191
  * @param Title|string $title
3198
- * @return LocalFile|null A File, or null if passed an invalid Title
3192
+ * @return File|null A File, or null if passed an invalid Title
3199 3193
  */
3200 3194
 function wfLocalFile( $title ) {
3201 3195
 	return RepoGroup::singleton()->getLocalRepo()->newFile( $title );
@@ -3400,7 +3394,7 @@  discard block
 block discarded – undo
3400 3394
 /**
3401 3395
  * Set PHP's time limit to the larger of php.ini or $wgTransactionalTimeLimit
3402 3396
  *
3403
- * @return int Prior time limit
3397
+ * @return string Prior time limit
3404 3398
  * @since 1.26
3405 3399
  */
3406 3400
 function wfTransactionalTimeLimit() {
@@ -3536,7 +3530,7 @@  discard block
 block discarded – undo
3536 3530
  *
3537 3531
  * @param string $format The format string (See php's docs)
3538 3532
  * @param string $data A binary string of binary data
3539
- * @param int|bool $length The minimum length of $data or false. This is to
3533
+ * @param integer $length The minimum length of $data or false. This is to
3540 3534
  *	prevent reading beyond the end of $data. false to disable the check.
3541 3535
  *
3542 3536
  * Also be careful when using this function to read unsigned 32 bit integer
Please login to merge, or discard this patch.
includes/specialpage/LoginSignupSpecialPage.php 1 patch
Doc Comments   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -81,6 +81,9 @@  discard block
 block discarded – undo
81 81
 	 */
82 82
 	abstract protected function logAuthResult( $success, $status = null );
83 83
 
84
+	/**
85
+	 * @param string $name
86
+	 */
84 87
 	public function __construct( $name ) {
85 88
 		global $wgUseMediaWikiUIEverywhere;
86 89
 		parent::__construct( $name );
@@ -365,7 +368,7 @@  discard block
 block discarded – undo
365 368
 	 * Show the success page.
366 369
 	 *
367 370
 	 * @param string $type Condition of return to; see `executeReturnTo`
368
-	 * @param string|Message $title Page's title
371
+	 * @param Message $title Page's title
369 372
 	 * @param string $msgname
370 373
 	 * @param string $injected_html
371 374
 	 * @param StatusValue|null $extraMessages
@@ -414,7 +417,6 @@  discard block
 block discarded – undo
414 417
 	/**
415 418
 	 * Replace some globals to make sure the fact that the user has just been logged in is
416 419
 	 * reflected in the current request.
417
-	 * @param User $user
418 420
 	 */
419 421
 	protected function setSessionUserForCurrentRequest() {
420 422
 		global $wgUser, $wgLang;
@@ -1254,6 +1256,7 @@  discard block
 block discarded – undo
1254 1256
 
1255 1257
 	/**
1256 1258
 	 * @param array $formDescriptor
1259
+	 * @param AuthenticationRequest[] $requests
1257 1260
 	 */
1258 1261
 	protected function postProcessFormDescriptor( &$formDescriptor, $requests ) {
1259 1262
 		// Pre-fill username (if not creating an account, T46775).
Please login to merge, or discard this patch.
includes/content/TextContent.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -157,7 +157,7 @@
 block discarded – undo
157 157
 	 * changes.
158 158
 	 *
159 159
 	 * @since 1.28
160
-	 * @param $text
160
+	 * @param false|string $text
161 161
 	 * @return string
162 162
 	 */
163 163
 	public static function normalizeLineEndings( $text ) {
Please login to merge, or discard this patch.
includes/db/loadbalancer/LoadBalancer.php 1 patch
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -238,7 +238,7 @@  discard block
 block discarded – undo
238 238
 	 * @param string|bool $group Query group, or false for the generic reader
239 239
 	 * @param string|bool $wiki Wiki ID, or false for the current wiki
240 240
 	 * @throws MWException
241
-	 * @return bool|int|string
241
+	 * @return string
242 242
 	 */
243 243
 	public function getReaderIndex( $group = false, $wiki = false ) {
244 244
 		global $wgDBtype;
@@ -443,7 +443,7 @@  discard block
 block discarded – undo
443 443
 	 * Returns false if there is no connection open
444 444
 	 *
445 445
 	 * @param int $i
446
-	 * @return DatabaseBase|bool False on failure
446
+	 * @return DatabaseBase|null False on failure
447 447
 	 */
448 448
 	public function getAnyOpenConnection( $i ) {
449 449
 		foreach ( $this->mConns as $conns ) {
@@ -982,7 +982,7 @@  discard block
 block discarded – undo
982 982
 
983 983
 	/**
984 984
 	 * Get the current master position for chronology control purposes
985
-	 * @return mixed
985
+	 * @return DBMasterPos
986 986
 	 */
987 987
 	public function getMasterPos() {
988 988
 		# If this entire request was served from a slave without opening a connection to the
@@ -1487,7 +1487,7 @@  discard block
 block discarded – undo
1487 1487
 	 * case on many installations.
1488 1488
 	 *
1489 1489
 	 * @param IDatabase $conn
1490
-	 * @return int|bool Returns false on error
1490
+	 * @return integer Returns false on error
1491 1491
 	 */
1492 1492
 	public function safeGetLag( IDatabase $conn ) {
1493 1493
 		if ( $this->getServerCount() == 1 ) {
Please login to merge, or discard this patch.
includes/upload/UploadBase.php 1 patch
Doc Comments   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -295,7 +295,7 @@  discard block
 block discarded – undo
295 295
 
296 296
 	/**
297 297
 	 * @param string $srcPath The source path
298
-	 * @return string|bool The real path if it was a virtual URL Returns false on failure
298
+	 * @return string|false The real path if it was a virtual URL Returns false on failure
299 299
 	 */
300 300
 	function getRealPath( $srcPath ) {
301 301
 		$repo = RepoGroup::singleton()->getLocalRepo();
@@ -1605,7 +1605,6 @@  discard block
 block discarded – undo
1605 1605
 	 * Check a block of CSS or CSS fragment for anything that looks like
1606 1606
 	 * it is bringing in remote code.
1607 1607
 	 * @param string $value a string of CSS
1608
-	 * @param bool $propOnly only check css properties (start regex with :)
1609 1608
 	 * @return bool true if the CSS contains an illegal string, false if otherwise
1610 1609
 	 */
1611 1610
 	private static function checkCssFragment( $value ) {
Please login to merge, or discard this patch.
includes/api/ApiBase.php 1 patch
Doc Comments   +10 added lines, -6 removed lines patch added patch discarded remove patch
@@ -421,7 +421,7 @@  discard block
 block discarded – undo
421 421
 	 *
422 422
 	 * @since 1.24
423 423
 	 * @param array $params All supplied parameters for the module
424
-	 * @return string|array|null
424
+	 * @return string
425 425
 	 */
426 426
 	protected function getWebUITokenSalt( array $params ) {
427 427
 		return null;
@@ -627,6 +627,7 @@  discard block
 block discarded – undo
627 627
 	/**
628 628
 	 * Set the continuation manager
629 629
 	 * @param ApiContinuationManager|null
630
+	 * @param ApiContinuationManager|null $manager
630 631
 	 */
631 632
 	public function setContinuationManager( $manager ) {
632 633
 		// Main module has setContinuationManager() method overridden
@@ -710,6 +711,7 @@  discard block
 block discarded – undo
710 711
 	 *
711 712
 	 * @param array $params User provided set of parameters, as from $this->extractRequestParams()
712 713
 	 * @param string $required,... Names of parameters of which exactly one must be set
714
+	 * @param string $required
713 715
 	 */
714 716
 	public function requireOnlyOneParameter( $params, $required /*...*/ ) {
715 717
 		$required = func_get_args();
@@ -736,6 +738,7 @@  discard block
 block discarded – undo
736 738
 	 *
737 739
 	 * @param array $params User provided set of parameters, as from $this->extractRequestParams()
738 740
 	 * @param string $required,... Names of parameters of which at most one must be set
741
+	 * @param string $required
739 742
 	 */
740 743
 	public function requireMaxOneParameter( $params, $required /*...*/ ) {
741 744
 		$required = func_get_args();
@@ -759,6 +762,7 @@  discard block
 block discarded – undo
759 762
 	 * @since 1.23
760 763
 	 * @param array $params User provided set of parameters, as from $this->extractRequestParams()
761 764
 	 * @param string $required,... Names of parameters of which at least one must be set
765
+	 * @param string $required
762 766
 	 */
763 767
 	public function requireAtLeastOneParameter( $params, $required /*...*/ ) {
764 768
 		$required = func_get_args();
@@ -1431,7 +1435,7 @@  discard block
 block discarded – undo
1431 1435
 
1432 1436
 	/**
1433 1437
 	 * Truncate an array to a certain length.
1434
-	 * @param array $arr Array to truncate
1438
+	 * @param string[] $arr Array to truncate
1435 1439
 	 * @param int $limit Maximum length
1436 1440
 	 * @return bool True if the array was truncated, false otherwise
1437 1441
 	 */
@@ -2638,7 +2642,7 @@  discard block
 block discarded – undo
2638 2642
 	 * "apihelp-{$this->getModulePath()}-description".
2639 2643
 	 *
2640 2644
 	 * @deprecated since 1.25
2641
-	 * @return Message|string|array
2645
+	 * @return boolean
2642 2646
 	 */
2643 2647
 	protected function getDescription() {
2644 2648
 		return false;
@@ -2793,7 +2797,7 @@  discard block
 block discarded – undo
2793 2797
 	 * Generates the parameter descriptions for this module, to be displayed in the
2794 2798
 	 * module's help.
2795 2799
 	 * @deprecated since 1.25
2796
-	 * @return string|bool
2800
+	 * @return string|false
2797 2801
 	 */
2798 2802
 	public function makeHelpMsgParameters() {
2799 2803
 		wfDeprecated( __METHOD__, '1.25' );
@@ -2984,7 +2988,7 @@  discard block
 block discarded – undo
2984 2988
 
2985 2989
 	/**
2986 2990
 	 * @deprecated since 1.25, always returns 0
2987
-	 * @return float
2991
+	 * @return integer
2988 2992
 	 */
2989 2993
 	public function getProfileTime() {
2990 2994
 		wfDeprecated( __METHOD__, '1.25' );
@@ -3007,7 +3011,7 @@  discard block
 block discarded – undo
3007 3011
 
3008 3012
 	/**
3009 3013
 	 * @deprecated since 1.25, always returns 0
3010
-	 * @return float
3014
+	 * @return integer
3011 3015
 	 */
3012 3016
 	public function getProfileDBTime() {
3013 3017
 		wfDeprecated( __METHOD__, '1.25' );
Please login to merge, or discard this patch.
includes/profiler/Profiler.php 1 patch
Doc Comments   +7 added lines patch added patch discarded remove patch
@@ -145,9 +145,16 @@
 block discarded – undo
145 145
 	}
146 146
 
147 147
 	// Kept BC for now, remove when possible
148
+
149
+	/**
150
+	 * @param string $functionname
151
+	 */
148 152
 	public function profileIn( $functionname ) {
149 153
 	}
150 154
 
155
+	/**
156
+	 * @param string $functionname
157
+	 */
151 158
 	public function profileOut( $functionname ) {
152 159
 	}
153 160
 
Please login to merge, or discard this patch.