Completed
Branch master (a8a8eb)
by
unknown
24:51
created
includes/htmlform/fields/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/fields/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/fields/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/utils/AutoloadGenerator.php 1 patch
Doc Comments   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -158,8 +158,8 @@  discard block
 block discarded – undo
158 158
 	/**
159 159
 	 * Generates a PHP file setting up autoload information.
160 160
 	 *
161
-	 * @param {string} $commandName Command name to include in comment
162
-	 * @param {string} $filename of PHP file to put autoload information in.
161
+	 * @param string $commandName Command name to include in comment
162
+	 * @param string $filename of PHP file to put autoload information in.
163 163
 	 */
164 164
 	protected function generatePHPAutoload( $commandName, $filename ) {
165 165
 		// No existing JSON file found; update/generate PHP file
@@ -320,6 +320,7 @@  discard block
 block discarded – undo
320 320
 
321 321
 	/**
322 322
 	 * @var string $code PHP code (including <?php) to detect class names from
323
+	 * @param string $code
323 324
 	 * @return array List of FQCN detected within the tokens
324 325
 	 */
325 326
 	public function getClasses( $code ) {
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
@@ -652,7 +652,7 @@  discard block
 block discarded – undo
652 652
 	 * Add one or more head items to the output
653 653
 	 *
654 654
 	 * @since 1.28
655
-	 * @param string|string[] $value Raw HTML
655
+	 * @param string|string[] $values Raw HTML
656 656
 	 */
657 657
 	public function addHeadItems( $values ) {
658 658
 		$this->mHeadItems = array_merge( $this->mHeadItems, (array)$values );
@@ -969,7 +969,7 @@  discard block
 block discarded – undo
969 969
 	/**
970 970
 	 * Replace the subtitle with $str
971 971
 	 *
972
-	 * @param string|Message $str New value of the subtitle. String should be safe HTML.
972
+	 * @param string $str New value of the subtitle. String should be safe HTML.
973 973
 	 */
974 974
 	public function setSubtitle( $str ) {
975 975
 		$this->clearSubtitle();
@@ -1587,7 +1587,7 @@  discard block
 block discarded – undo
1587 1587
 	/**
1588 1588
 	 * Set the displayed file version
1589 1589
 	 *
1590
-	 * @param File|bool $file
1590
+	 * @param File $file
1591 1591
 	 * @return mixed Previous value
1592 1592
 	 */
1593 1593
 	public function setFileVersion( $file ) {
@@ -1936,7 +1936,7 @@  discard block
 block discarded – undo
1936 1936
 	/**
1937 1937
 	 * Get the list of cookies that will influence on the cache
1938 1938
 	 *
1939
-	 * @return array
1939
+	 * @return string[]
1940 1940
 	 */
1941 1941
 	function getCacheVaryCookies() {
1942 1942
 		static $cookies;
@@ -2315,7 +2315,7 @@  discard block
 block discarded – undo
2315 2315
 	 * indexing, clear the current text and redirect, set the page's title
2316 2316
 	 * and optionally an custom HTML title (content of the "<title>" tag).
2317 2317
 	 *
2318
-	 * @param string|Message $pageTitle Will be passed directly to setPageTitle()
2318
+	 * @param Message $pageTitle Will be passed directly to setPageTitle()
2319 2319
 	 * @param string|Message $htmlTitle Will be passed directly to setHTMLTitle();
2320 2320
 	 *                   optional, if not passed the "<title>" attribute will be
2321 2321
 	 *                   based on $pageTitle
@@ -2341,8 +2341,8 @@  discard block
 block discarded – undo
2341 2341
 	 * showErrorPage( 'titlemsg', $messageObject );
2342 2342
 	 * showErrorPage( $titleMessageObject, $messageObject );
2343 2343
 	 *
2344
-	 * @param string|Message $title Message key (string) for page title, or a Message object
2345
-	 * @param string|Message $msg Message key (string) for page text, or a Message object
2344
+	 * @param string $title Message key (string) for page title, or a Message object
2345
+	 * @param string $msg Message key (string) for page text, or a Message object
2346 2346
 	 * @param array $params Message parameters; ignored if $msg is a Message object
2347 2347
 	 */
2348 2348
 	public function showErrorPage( $title, $msg, $params = [] ) {
@@ -2538,6 +2538,9 @@  discard block
 block discarded – undo
2538 2538
 		}
2539 2539
 	}
2540 2540
 
2541
+	/**
2542
+	 * @param string $message
2543
+	 */
2541 2544
 	public function showFatalError( $message ) {
2542 2545
 		$this->prepareErrorPage( $this->msg( 'internalerror' ) );
2543 2546
 
@@ -2556,6 +2559,9 @@  discard block
 block discarded – undo
2556 2559
 		$this->showFatalError( $this->msg( 'filerenameerror', $old, $new )->text() );
2557 2560
 	}
2558 2561
 
2562
+	/**
2563
+	 * @param string $name
2564
+	 */
2559 2565
 	public function showFileDeleteError( $name ) {
2560 2566
 		$this->showFatalError( $this->msg( 'filedeleteerror', $name )->text() );
2561 2567
 	}
@@ -2582,7 +2588,7 @@  discard block
 block discarded – undo
2582 2588
 	 * Add a "return to" link pointing to a specified title,
2583 2589
 	 * or the title indicated in the request, or else the main page
2584 2590
 	 *
2585
-	 * @param mixed $unused
2591
+	 * @param null|boolean $unused
2586 2592
 	 * @param Title|string $returnto Title or String to return to
2587 2593
 	 * @param string $returntoquery Query string for the return to link
2588 2594
 	 */
@@ -3843,7 +3849,7 @@  discard block
 block discarded – undo
3843 3849
 	 * Caller is responsible for ensuring the file exists. Emits a PHP warning otherwise.
3844 3850
 	 *
3845 3851
 	 * @since 1.27
3846
-	 * @param string $remotePath URL path prefix that points to $localPath
3852
+	 * @param string $remotePathPrefix URL path prefix that points to $localPath
3847 3853
 	 * @param string $localPath File directory exposed at $remotePath
3848 3854
 	 * @param string $file Path to target file relative to $localPath
3849 3855
 	 * @return string URL
Please login to merge, or discard this patch.
includes/htmlform/HTMLFormField.php 1 patch
Doc Comments   +9 added lines, -2 removed lines patch added patch discarded remove patch
@@ -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 );
@@ -645,6 +648,7 @@  discard block
 block discarded – undo
645 648
 
646 649
 	/**
647 650
 	 * Get a FieldLayout (or subclass thereof) to wrap this field in when using OOUI output.
651
+	 * @param OOUI\Widget $inputField
648 652
 	 * @return OOUI\FieldLayout|OOUI\ActionFieldLayout
649 653
 	 */
650 654
 	protected function getFieldLayoutOOUI( $inputField, $config ) {
@@ -818,7 +822,7 @@  discard block
 block discarded – undo
818 822
 	 * @since 1.20
819 823
 	 *
820 824
 	 * @param string $value The value of the input
821
-	 * @return array array( $errors, $errorClass )
825
+	 * @return string[] array( $errors, $errorClass )
822 826
 	 */
823 827
 	public function getErrorsAndErrorClass( $value ) {
824 828
 		$errors = $this->validate( $value, $this->mParent->mFieldData );
@@ -930,6 +934,9 @@  discard block
 block discarded – undo
930 934
 		return $html;
931 935
 	}
932 936
 
937
+	/**
938
+	 * @return callable
939
+	 */
933 940
 	function getDefault() {
934 941
 		if ( isset( $this->mDefault ) ) {
935 942
 			return $this->mDefault;
@@ -1103,7 +1110,7 @@  discard block
 block discarded – undo
1103 1110
 	/**
1104 1111
 	 * Formats one or more errors as accepted by field validation-callback.
1105 1112
 	 *
1106
-	 * @param string|Message|array $errors Array of strings or Message instances
1113
+	 * @param string $errors Array of strings or Message instances
1107 1114
 	 * @return string HTML
1108 1115
 	 * @since 1.18
1109 1116
 	 */
Please login to merge, or discard this patch.
includes/tidy/Balancer.php 1 patch
Doc Comments   +18 added lines, -3 removed lines patch added patch discarded remove patch
@@ -800,7 +800,7 @@  discard block
 block discarded – undo
800 800
 
801 801
 	/**
802 802
 	 * Determine if the stack has $tag in button scope.
803
-	 * @param BalanceElement|array|string $tag
803
+	 * @param string $tag
804 804
 	 * @return bool
805 805
 	 * @see https://html.spec.whatwg.org/multipage/syntax.html#has-an-element-in-button-scope
806 806
 	 */
@@ -890,6 +890,7 @@  discard block
 block discarded – undo
890 890
 
891 891
 	/**
892 892
 	 * Return the adjusted current node.
893
+	 * @param BalanceElement|null $fragmentContext
893 894
 	 */
894 895
 	public function adjustedCurrentNode( $fragmentContext ) {
895 896
 		return ( $fragmentContext && count( $this->elements ) === 1 ) ?
@@ -899,7 +900,7 @@  discard block
 block discarded – undo
899 900
 	/**
900 901
 	 * Return an iterator over this stack which visits the current node
901 902
 	 * first, and the root node last.
902
-	 * @return Iterator
903
+	 * @return ReverseArrayIterator
903 904
 	 */
904 905
 	public function getIterator() {
905 906
 		return new ReverseArrayIterator( $this->elements );
@@ -1133,7 +1134,7 @@  discard block
 block discarded – undo
1133 1134
 	 * @param string $tag The subject tag name.
1134 1135
 	 * @param BalanceActiveFormattingElements $afe The current
1135 1136
 	 *   active formatting elements list.
1136
-	 * @return true if the adoption agency algorithm "did something", false
1137
+	 * @return boolean if the adoption agency algorithm "did something", false
1137 1138
 	 *   if more processing is required by the caller.
1138 1139
 	 * @see https://html.spec.whatwg.org/multipage/syntax.html#adoption-agency-algorithm
1139 1140
 	 */
@@ -1499,6 +1500,7 @@  discard block
 block discarded – undo
1499 1500
 	 * Find and return the last element with the specified tag between the
1500 1501
 	 * end of the list and the last marker on the list.
1501 1502
 	 * Used when parsing &lt;a&gt; "in body mode".
1503
+	 * @param string $tag
1502 1504
 	 */
1503 1505
 	public function findElementByTag( $tag ) {
1504 1506
 		$elt = $this->tail;
@@ -1646,6 +1648,10 @@  discard block
 block discarded – undo
1646 1648
 	 * @see https://html.spec.whatwg.org/multipage/syntax.html#reconstruct-the-active-formatting-elements
1647 1649
 	 */
1648 1650
 	// @codingStandardsIgnoreEnd
1651
+
1652
+	/**
1653
+	 * @param BalanceStack|null $stack
1654
+	 */
1649 1655
 	public function reconstruct( $stack ) {
1650 1656
 		$entry = $this->tail;
1651 1657
 		// If there are no entries in the list of active formatting elements,
@@ -2214,6 +2220,10 @@  discard block
 block discarded – undo
2214 2220
 		return $oldMode;
2215 2221
 	}
2216 2222
 
2223
+	/**
2224
+	 * @param string $mode
2225
+	 * @param boolean $selfClose
2226
+	 */
2217 2227
 	private function switchModeAndReprocess( $mode, $token, $value, $attribs, $selfClose ) {
2218 2228
 		$this->switchMode( $mode );
2219 2229
 		return $this->insertToken( $token, $value, $attribs, $selfClose );
@@ -3299,6 +3309,11 @@  discard block
 block discarded – undo
3299 3309
 			return false;
3300 3310
 		}
3301 3311
 	}
3312
+
3313
+	/**
3314
+	 * @param string $token
3315
+	 * @param string $value
3316
+	 */
3302 3317
 	private function inCellMode( $token, $value, $attribs = null, $selfClose = false ) {
3303 3318
 		if ( $token === 'tag' ) {
3304 3319
 			switch ( $value ) {
Please login to merge, or discard this patch.
includes/specials/SpecialContributions.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -128,7 +128,7 @@
 block discarded – undo
128 128
 	/**
129 129
 	 * Generates the subheading with links
130 130
 	 * @param User $userObj User object for the target
131
-	 * @return string Appropriately-escaped HTML to be output literally
131
+	 * @return Message Appropriately-escaped HTML to be output literally
132 132
 	 * @todo FIXME: Almost the same as contributionsSub in SpecialContributions.php. Could be combined.
133 133
 	 */
134 134
 	function getSubTitle( $userObj ) {
Please login to merge, or discard this patch.
includes/specials/SpecialProtectedpages.php 1 patch
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -181,7 +181,7 @@  discard block
 block discarded – undo
181 181
 
182 182
 	/**
183 183
 	 * @param string $sizetype "min" or "max"
184
-	 * @param mixed $size
184
+	 * @param integer $size
185 185
 	 * @return string Formatted HTML
186 186
 	 */
187 187
 	protected function getSizeLimit( $sizetype, $size ) {
@@ -290,9 +290,9 @@  discard block
 block discarded – undo
290 290
 	/**
291 291
 	 * @param SpecialProtectedpages $form
292 292
 	 * @param array $conds
293
-	 * @param $type
294
-	 * @param $level
295
-	 * @param $namespace
293
+	 * @param null|string $type
294
+	 * @param null|string $level
295
+	 * @param integer|null $namespace
296 296
 	 * @param string $sizetype
297 297
 	 * @param int $size
298 298
 	 * @param bool $indefonly
Please login to merge, or discard this patch.