Completed
Branch master (37eb21)
by
unknown
25:17
created
includes/api/ApiCSPReport.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
 	/**
65 65
 	 * Log CSP report, with a different severity depending on $flags
66 66
 	 * @param $flags Array Flags for this report
67
-	 * @param $logLine String text of log entry
67
+	 * @param string $logLine String text of log entry
68 68
 	 * @param $context Array logging context
69 69
 	 */
70 70
 	private function logReport( $flags, $logLine, $context ) {
@@ -165,7 +165,7 @@  discard block
 block discarded – undo
165 165
 	 * Stop processing the request, and output/log an error
166 166
 	 *
167 167
 	 * @param $code String error code
168
-	 * @param $method String method that made error
168
+	 * @param string $method String method that made error
169 169
 	 * @throws UsageException Always
170 170
 	 */
171 171
 	private function error( $code, $method ) {
Please login to merge, or discard this patch.
includes/specialpage/ChangesListSpecialPage.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -107,7 +107,7 @@
 block discarded – undo
107 107
 	/**
108 108
 	 * Create a FormOptions object with options as specified by the user
109 109
 	 *
110
-	 * @param array $parameters
110
+	 * @param string $parameters
111 111
 	 *
112 112
 	 * @return FormOptions
113 113
 	 */
Please login to merge, or discard this patch.
includes/changes/ChangesList.php 1 patch
Doc Comments   +9 added lines, -3 removed lines patch added patch discarded remove patch
@@ -153,7 +153,7 @@  discard block
 block discarded – undo
153 153
 	 * @param RecentChange|RCCacheEntry $rc
154 154
 	 * @param string|bool $watched Optionally timestamp for adding watched class
155 155
 	 *
156
-	 * @return array of classes
156
+	 * @return string[] of classes
157 157
 	 */
158 158
 	protected function getHTMLClasses( $rc, $watched ) {
159 159
 		$classes = [];
@@ -228,7 +228,7 @@  discard block
 block discarded – undo
228 228
 	}
229 229
 
230 230
 	/**
231
-	 * @param ResultWrapper|array $rows
231
+	 * @param ResultWrapper $rows
232 232
 	 */
233 233
 	public function initChangesListRows( $rows ) {
234 234
 		Hooks::run( 'ChangesListInitRows', [ $this, $rows ] );
@@ -478,6 +478,8 @@  discard block
 block discarded – undo
478 478
 	 *
479 479
 	 * @param string &$s HTML to update
480 480
 	 * @param RecentChange &$rc
481
+	 * @param string $s
482
+	 * @param RecentChange $rc
481 483
 	 */
482 484
 	public function insertUserRelatedLinks( &$s, &$rc ) {
483 485
 		if ( $this->isDeleted( $rc, Revision::DELETED_USER ) ) {
@@ -636,7 +638,7 @@  discard block
 block discarded – undo
636 638
 
637 639
 	/**
638 640
 	 * @param RecentChange $rc
639
-	 * @param array $classes
641
+	 * @param string[] $classes
640 642
 	 * @return string
641 643
 	 * @since 1.26
642 644
 	 */
@@ -646,6 +648,10 @@  discard block
 block discarded – undo
646 648
 		return $s;
647 649
 	}
648 650
 
651
+	/**
652
+	 * @param string $s
653
+	 * @param RecentChange $rc
654
+	 */
649 655
 	public function insertExtra( &$s, &$rc, &$classes ) {
650 656
 		// Empty, used for subclasses to add anything special.
651 657
 	}
Please login to merge, or discard this patch.
includes/gallery/SlideshowImageGallery.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -85,7 +85,7 @@
 block discarded – undo
85 85
 	}
86 86
 
87 87
 	/**
88
-	 * @return array
88
+	 * @return string[]
89 89
 	 */
90 90
 	function getOrderFields() {
91 91
 		return array( 'rd_namespace', 'rd_title', 'rd_from' );
Please login to merge, or discard this patch.
includes/Sanitizer.php 1 patch
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -1206,7 +1206,7 @@  discard block
 block discarded – undo
1206 1206
 	 * @since 1.27
1207 1207
 	 *
1208 1208
 	 * @param string $referenceString Space delimited list of ids
1209
-	 * @param string|array $options String or array of strings (default is array()):
1209
+	 * @param string $options String or array of strings (default is array()):
1210 1210
 	 *   'noninitial': This is a non-initial fragment of an id, not a full id,
1211 1211
 	 *       so don't pay attention if the first character isn't valid at the
1212 1212
 	 *       beginning of an id.  Only matters if $wgExperimentalHtmlIds is
@@ -1334,7 +1334,7 @@  discard block
 block discarded – undo
1334 1334
 	 * Pick the appropriate attribute value from a match set from the
1335 1335
 	 * attribs regex matches.
1336 1336
 	 *
1337
-	 * @param array $set
1337
+	 * @param string[] $set
1338 1338
 	 * @throws MWException When tag conditions are not met.
1339 1339
 	 * @return string
1340 1340
 	 */
@@ -1850,7 +1850,7 @@  discard block
 block discarded – undo
1850 1850
 
1851 1851
 	/**
1852 1852
 	 * @param string $url
1853
-	 * @return mixed|string
1853
+	 * @return string
1854 1854
 	 */
1855 1855
 	static function cleanUrl( $url ) {
1856 1856
 		# Normalize any HTML entities in input. They will be
@@ -1936,7 +1936,7 @@  discard block
 block discarded – undo
1936 1936
 	 * @since 1.18
1937 1937
 	 *
1938 1938
 	 * @param string $addr E-mail address
1939
-	 * @return bool
1939
+	 * @return null|boolean
1940 1940
 	 */
1941 1941
 	public static function validateEmail( $addr ) {
1942 1942
 		$result = null;
Please login to merge, or discard this patch.
includes/utils/MWGrants.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -100,7 +100,7 @@
 block discarded – undo
100 100
 
101 101
 	/**
102 102
 	 * Fetch the rights allowed by a set of grants.
103
-	 * @param string[]|string $grants
103
+	 * @param string[] $grants
104 104
 	 * @return string[]
105 105
 	 */
106 106
 	public static function getGrantRights( $grants ) {
Please login to merge, or discard this patch.
includes/GlobalFunctions.php 1 patch
Doc Comments   +12 added lines, -18 removed lines patch added patch discarded remove patch
@@ -234,7 +234,6 @@  discard block
 block discarded – undo
234 234
  *   		array( 'y' )
235 235
  *   	)
236 236
  *
237
- * @param array $array1,...
238 237
  * @return array
239 238
  */
240 239
 function wfMergeErrorArrays( /*...*/ ) {
@@ -261,7 +260,7 @@  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
263
+ * @param string $after The key to insert after
265 264
  * @return array
266 265
  */
267 266
 function wfArrayInsertAfter( array $array, array $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;
@@ -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 );
@@ -3399,7 +3393,7 @@  discard block
 block discarded – undo
3399 3393
 /**
3400 3394
  * Set PHP's time limit to the larger of php.ini or $wgTransactionalTimeLimit
3401 3395
  *
3402
- * @return int Prior time limit
3396
+ * @return string Prior time limit
3403 3397
  * @since 1.26
3404 3398
  */
3405 3399
 function wfTransactionalTimeLimit() {
@@ -3535,7 +3529,7 @@  discard block
 block discarded – undo
3535 3529
  *
3536 3530
  * @param string $format The format string (See php's docs)
3537 3531
  * @param string $data A binary string of binary data
3538
- * @param int|bool $length The minimum length of $data or false. This is to
3532
+ * @param integer $length The minimum length of $data or false. This is to
3539 3533
  *	prevent reading beyond the end of $data. false to disable the check.
3540 3534
  *
3541 3535
  * Also be careful when using this function to read unsigned 32 bit integer
Please login to merge, or discard this patch.
includes/api/ApiBase.php 1 patch
Doc Comments   +9 added lines, -5 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();
@@ -2543,7 +2547,7 @@  discard block
 block discarded – undo
2543 2547
 	 * "apihelp-{$this->getModulePath()}-description".
2544 2548
 	 *
2545 2549
 	 * @deprecated since 1.25
2546
-	 * @return Message|string|array
2550
+	 * @return boolean
2547 2551
 	 */
2548 2552
 	protected function getDescription() {
2549 2553
 		return false;
@@ -2698,7 +2702,7 @@  discard block
 block discarded – undo
2698 2702
 	 * Generates the parameter descriptions for this module, to be displayed in the
2699 2703
 	 * module's help.
2700 2704
 	 * @deprecated since 1.25
2701
-	 * @return string|bool
2705
+	 * @return string|false
2702 2706
 	 */
2703 2707
 	public function makeHelpMsgParameters() {
2704 2708
 		wfDeprecated( __METHOD__, '1.25' );
@@ -2889,7 +2893,7 @@  discard block
 block discarded – undo
2889 2893
 
2890 2894
 	/**
2891 2895
 	 * @deprecated since 1.25, always returns 0
2892
-	 * @return float
2896
+	 * @return integer
2893 2897
 	 */
2894 2898
 	public function getProfileTime() {
2895 2899
 		wfDeprecated( __METHOD__, '1.25' );
@@ -2912,7 +2916,7 @@  discard block
 block discarded – undo
2912 2916
 
2913 2917
 	/**
2914 2918
 	 * @deprecated since 1.25, always returns 0
2915
-	 * @return float
2919
+	 * @return integer
2916 2920
 	 */
2917 2921
 	public function getProfileDBTime() {
2918 2922
 		wfDeprecated( __METHOD__, '1.25' );
Please login to merge, or discard this patch.
includes/Block.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -185,7 +185,7 @@  discard block
 block discarded – undo
185 185
 	/**
186 186
 	 * Return the list of ipblocks fields that should be selected to create
187 187
 	 * a new block.
188
-	 * @return array
188
+	 * @return string[]
189 189
 	 */
190 190
 	public static function selectFields() {
191 191
 		return [
@@ -1004,7 +1004,7 @@  discard block
 block discarded – undo
1004 1004
 	/**
1005 1005
 	 * Get a timestamp of the expiry for autoblocks
1006 1006
 	 *
1007
-	 * @param string|int $timestamp
1007
+	 * @param string|false $timestamp
1008 1008
 	 * @return string
1009 1009
 	 */
1010 1010
 	public static function getAutoblockExpiry( $timestamp ) {
@@ -1361,7 +1361,7 @@  discard block
 block discarded – undo
1361 1361
 	/**
1362 1362
 	 * @since 1.19
1363 1363
 	 *
1364
-	 * @return mixed|string
1364
+	 * @return string
1365 1365
 	 */
1366 1366
 	public function getExpiry() {
1367 1367
 		return $this->mExpiry;
Please login to merge, or discard this patch.