Completed
Branch master (31d435)
by
unknown
37:18
created
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 );
@@ -301,7 +302,6 @@  discard block
 block discarded – undo
301 302
  *   		array( 'y' )
302 303
  *   	)
303 304
  *
304
- * @param array $array1,...
305 305
  * @return array
306 306
  */
307 307
 function wfMergeErrorArrays( /*...*/ ) {
@@ -1353,7 +1353,7 @@  discard block
 block discarded – undo
1353 1353
 /**
1354 1354
  * Get the value of $wgReadOnly or the contents of $wgReadOnlyFile.
1355 1355
  *
1356
- * @return string|bool String when in read-only mode; false otherwise
1356
+ * @return string|false String when in read-only mode; false otherwise
1357 1357
  * @since 1.27
1358 1358
  */
1359 1359
 function wfConfiguredReadOnlyReason() {
@@ -1428,7 +1428,6 @@  discard block
 block discarded – undo
1428 1428
  * This function replaces all old wfMsg* functions.
1429 1429
  *
1430 1430
  * @param string|string[]|MessageSpecifier $key Message key, or array of keys, or a MessageSpecifier
1431
- * @param mixed $params,... Normal message parameters
1432 1431
  * @return Message
1433 1432
  *
1434 1433
  * @since 1.17
@@ -1449,7 +1448,6 @@  discard block
 block discarded – undo
1449 1448
  * for the first message which is non-empty. If all messages are empty then an
1450 1449
  * instance of the first message key is returned.
1451 1450
  *
1452
- * @param string|string[] $keys,... Message keys
1453 1451
  * @return Message
1454 1452
  *
1455 1453
  * @since 1.18
@@ -1680,7 +1678,7 @@  discard block
 block discarded – undo
1680 1678
  * @todo FIXME: We may want to blacklist some broken browsers
1681 1679
  *
1682 1680
  * @param bool $force
1683
- * @return bool Whereas client accept gzip compression
1681
+ * @return null|boolean Whereas client accept gzip compression
1684 1682
  */
1685 1683
 function wfClientAcceptsGzip( $force = false ) {
1686 1684
 	static $result = null;
@@ -1816,7 +1814,7 @@  discard block
 block discarded – undo
1816 1814
 /**
1817 1815
  * Provide a simple HTTP error.
1818 1816
  *
1819
- * @param int|string $code
1817
+ * @param integer $code
1820 1818
  * @param string $label
1821 1819
  * @param string $desc
1822 1820
  */
@@ -2098,8 +2096,8 @@  discard block
 block discarded – undo
2098 2096
  *
2099 2097
  * @param mixed $outputtype A timestamp in one of the supported formats, the
2100 2098
  *   function will autodetect which format is supplied and act accordingly.
2101
- * @param mixed $ts Optional timestamp to convert, default 0 for the current time
2102
- * @return string|bool String / false The same date in the format specified in $outputtype or false
2099
+ * @param integer $ts Optional timestamp to convert, default 0 for the current time
2100
+ * @return string|false String / false The same date in the format specified in $outputtype or false
2103 2101
  */
2104 2102
 function wfTimestamp( $outputtype = TS_UNIX, $ts = 0 ) {
2105 2103
 	try {
@@ -2140,7 +2138,7 @@  discard block
 block discarded – undo
2140 2138
 /**
2141 2139
  * Check if the operating system is Windows
2142 2140
  *
2143
- * @return bool True if it's Windows, false otherwise.
2141
+ * @return boolean|null True if it's Windows, false otherwise.
2144 2142
  */
2145 2143
 function wfIsWindows() {
2146 2144
 	static $isWindows = null;
@@ -2376,7 +2374,7 @@  discard block
 block discarded – undo
2376 2374
 /**
2377 2375
  * Check if wfShellExec() is effectively disabled via php.ini config
2378 2376
  *
2379
- * @return bool|string False or one of (safemode,disabled)
2377
+ * @return string|false False or one of (safemode,disabled)
2380 2378
  * @since 1.22
2381 2379
  */
2382 2380
 function wfShellExecDisabled() {
@@ -2997,7 +2995,7 @@  discard block
 block discarded – undo
2997 2995
  * @param int $pad Minimum number of digits in the output (pad with zeroes)
2998 2996
  * @param bool $lowercase Whether to output in lowercase or uppercase
2999 2997
  * @param string $engine Either "gmp", "bcmath", or "php"
3000
- * @return string|bool The output number as a string, or false on error
2998
+ * @return false|string The output number as a string, or false on error
3001 2999
  */
3002 3000
 function wfBaseConvert( $input, $sourceBase, $destBase, $pad = 1,
3003 3001
 	$lowercase = true, $engine = 'auto'
@@ -3105,7 +3103,6 @@  discard block
 block discarded – undo
3105 3103
 /**
3106 3104
  * Make a cache key for the local wiki.
3107 3105
  *
3108
- * @param string $args,...
3109 3106
  * @return string
3110 3107
  */
3111 3108
 function wfMemcKey( /*...*/ ) {
@@ -3122,7 +3119,6 @@  discard block
 block discarded – undo
3122 3119
  *
3123 3120
  * @param string $db
3124 3121
  * @param string $prefix
3125
- * @param string $args,...
3126 3122
  * @return string
3127 3123
  */
3128 3124
 function wfForeignMemcKey( $db, $prefix /*...*/ ) {
@@ -3142,7 +3138,6 @@  discard block
 block discarded – undo
3142 3138
  * in the first segment will clash with wfMemcKey/wfForeignMemcKey.
3143 3139
  *
3144 3140
  * @since 1.26
3145
- * @param string $args,...
3146 3141
  * @return string
3147 3142
  */
3148 3143
 function wfGlobalCacheKey( /*...*/ ) {
@@ -3244,7 +3239,7 @@  discard block
 block discarded – undo
3244 3239
  * Returns a valid placeholder object if the file does not exist.
3245 3240
  *
3246 3241
  * @param Title|string $title
3247
- * @return LocalFile|null A File, or null if passed an invalid Title
3242
+ * @return File|null A File, or null if passed an invalid Title
3248 3243
  */
3249 3244
 function wfLocalFile( $title ) {
3250 3245
 	return RepoGroup::singleton()->getLocalRepo()->newFile( $title );
@@ -3468,7 +3463,7 @@  discard block
 block discarded – undo
3468 3463
 /**
3469 3464
  * Set PHP's time limit to the larger of php.ini or $wgTransactionalTimeLimit
3470 3465
  *
3471
- * @return int Prior time limit
3466
+ * @return string Prior time limit
3472 3467
  * @since 1.26
3473 3468
  */
3474 3469
 function wfTransactionalTimeLimit() {
@@ -3604,7 +3599,7 @@  discard block
 block discarded – undo
3604 3599
  *
3605 3600
  * @param string $format The format string (See php's docs)
3606 3601
  * @param string $data A binary string of binary data
3607
- * @param int|bool $length The minimum length of $data or false. This is to
3602
+ * @param integer $length The minimum length of $data or false. This is to
3608 3603
  *	prevent reading beyond the end of $data. false to disable the check.
3609 3604
  *
3610 3605
  * Also be careful when using this function to read unsigned 32 bit integer
Please login to merge, or discard this patch.
includes/HistoryBlob.php 1 patch
Doc Comments   +5 added lines, -4 removed lines patch added patch discarded remove patch
@@ -55,6 +55,7 @@  discard block
 block discarded – undo
55 55
 	 * Default text is not required for two-part external storage URLs.
56 56
 	 *
57 57
 	 * @param string $text
58
+	 * @return void
58 59
 	 */
59 60
 	function setText( $text );
60 61
 
@@ -161,7 +162,7 @@  discard block
 block discarded – undo
161 162
 	}
162 163
 
163 164
 	/**
164
-	 * @return array
165
+	 * @return string[]
165 166
 	 */
166 167
 	function __sleep() {
167 168
 		$this->compress();
@@ -531,7 +532,7 @@  discard block
 block discarded – undo
531 532
 	/**
532 533
 	 * @param string $base
533 534
 	 * @param string $diff
534
-	 * @return bool|string
535
+	 * @return string|false
535 536
 	 */
536 537
 	function patch( $base, $diff ) {
537 538
 		if ( function_exists( 'xdiff_string_bpatch' ) ) {
@@ -593,7 +594,7 @@  discard block
 block discarded – undo
593 594
 	 * the bytes backwards and initialised with 0 instead of 1. See bug 34428.
594 595
 	 *
595 596
 	 * @param string $s
596
-	 * @return string|bool False if the hash extension is not available
597
+	 * @return false|string False if the hash extension is not available
597 598
 	 */
598 599
 	function xdiffAdler32( $s ) {
599 600
 		if ( !function_exists( 'hash' ) ) {
@@ -626,7 +627,7 @@  discard block
 block discarded – undo
626 627
 	}
627 628
 
628 629
 	/**
629
-	 * @return array
630
+	 * @return string[]
630 631
 	 */
631 632
 	function __sleep() {
632 633
 		$this->compress();
Please login to merge, or discard this patch.
includes/htmlform/HTMLButtonField.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -125,7 +125,7 @@
 block discarded – undo
125 125
 
126 126
 	/**
127 127
 	 * IE<8 has bugs with <button>, so we'll need to avoid them.
128
-	 * @return bool Whether the request is from a bad version of IE
128
+	 * @return integer Whether the request is from a bad version of IE
129 129
 	 */
130 130
 	private function isBadIE() {
131 131
 		$request = $this->mParent
Please login to merge, or discard this patch.
includes/htmlform/HTMLCheckMatrix.php 1 patch
Doc Comments   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
 	 * mParams['rows'] is an array with row labels as keys and row tags as values.
76 76
 	 * mParams['columns'] is an array with column labels as keys and column tags as values.
77 77
 	 *
78
-	 * @param array $value Array of the options that should be checked
78
+	 * @param string $value Array of the options that should be checked
79 79
 	 *
80 80
 	 * @return string
81 81
 	 */
@@ -151,6 +151,9 @@  discard block
 block discarded – undo
151 151
 		return $html;
152 152
 	}
153 153
 
154
+	/**
155
+	 * @param boolean $checked
156
+	 */
154 157
 	protected function getOneCheckbox( $checked, $attribs ) {
155 158
 		if ( $this->mParent instanceof OOUIHTMLForm ) {
156 159
 			return new OOUI\CheckboxInputWidget( array(
Please login to merge, or discard this patch.
includes/htmlform/HTMLForm.php 1 patch
Doc Comments   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -250,7 +250,6 @@  discard block
 block discarded – undo
250 250
 	 * Construct a HTMLForm object for given display type. May return a HTMLForm subclass.
251 251
 	 *
252 252
 	 * @param string $displayFormat
253
-	 * @param mixed $arguments... Additional arguments to pass to the constructor.
254 253
 	 * @return HTMLForm
255 254
 	 */
256 255
 	public static function factory( $displayFormat/*, $arguments...*/ ) {
@@ -1359,7 +1358,7 @@  discard block
 block discarded – undo
1359 1358
 	 * this message as its "<legend>" element.
1360 1359
 	 * @since 1.19
1361 1360
 	 *
1362
-	 * @param string|Message $msg Message key or Message object
1361
+	 * @param string $msg Message key or Message object
1363 1362
 	 *
1364 1363
 	 * @return HTMLForm $this for chaining calls (since 1.20)
1365 1364
 	 */
Please login to merge, or discard this patch.
includes/htmlform/HTMLFormField.php 1 patch
Doc Comments   +9 added lines, -3 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
 	 * Defaults to false, which getOOUI will interpret as "use the HTML version"
50 50
 	 *
51 51
 	 * @param string $value
52
-	 * @return OOUI\Widget|false
52
+	 * @return boolean
53 53
 	 */
54 54
 	function getInputOOUI( $value ) {
55 55
 		return false;
@@ -318,6 +318,9 @@  discard block
 block discarded – undo
318 318
 		return true;
319 319
 	}
320 320
 
321
+	/**
322
+	 * @param HTMLFormField[] $alldata
323
+	 */
321 324
 	function filter( $value, $alldata ) {
322 325
 		if ( isset( $this->mFilterCallback ) ) {
323 326
 			$value = call_user_func( $this->mFilterCallback, $value, $alldata, $this->mParent );
@@ -803,7 +806,7 @@  discard block
 block discarded – undo
803 806
 	 * @since 1.20
804 807
 	 *
805 808
 	 * @param string $value The value of the input
806
-	 * @return array array( $errors, $errorClass )
809
+	 * @return string[] array( $errors, $errorClass )
807 810
 	 */
808 811
 	public function getErrorsAndErrorClass( $value ) {
809 812
 		$errors = $this->validate( $value, $this->mParent->mFieldData );
@@ -891,6 +894,9 @@  discard block
 block discarded – undo
891 894
 		return $html;
892 895
 	}
893 896
 
897
+	/**
898
+	 * @return string
899
+	 */
894 900
 	function getDefault() {
895 901
 		if ( isset( $this->mDefault ) ) {
896 902
 			return $this->mDefault;
@@ -1086,7 +1092,7 @@  discard block
 block discarded – undo
1086 1092
 	/**
1087 1093
 	 * Formats one or more errors as accepted by field validation-callback.
1088 1094
 	 *
1089
-	 * @param string|Message|array $errors Array of strings or Message instances
1095
+	 * @param string $errors Array of strings or Message instances
1090 1096
 	 * @return string HTML
1091 1097
 	 * @since 1.18
1092 1098
 	 */
Please login to merge, or discard this patch.
includes/htmlform/HTMLMultiSelectField.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -63,6 +63,9 @@
 block discarded – undo
63 63
 		return $html;
64 64
 	}
65 65
 
66
+	/**
67
+	 * @param boolean $checked
68
+	 */
66 69
 	protected function getOneCheckbox( $checked, $attribs, $label ) {
67 70
 		if ( $this->mParent instanceof OOUIHTMLForm ) {
68 71
 			if ( $this->mOptionsLabelsNotFromMessage ) {
Please login to merge, or discard this patch.
includes/htmlform/HTMLRadioField.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -55,6 +55,9 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
includes/htmlform/OOUIHTMLForm.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -155,7 +155,7 @@
 block discarded – undo
155 155
 	 * @param OOUI\FieldLayout[] $fieldsHtml
156 156
 	 * @param string $sectionName
157 157
 	 * @param bool $anyFieldHasLabel Unused
158
-	 * @return string HTML
158
+	 * @return OOUI\FieldsetLayout HTML
159 159
 	 */
160 160
 	protected function formatSection( array $fieldsHtml, $sectionName, $anyFieldHasLabel ) {
161 161
 		$config = array(
Please login to merge, or discard this patch.