Completed
Branch master (66f57c)
by
unknown
33:51
created
includes/api/ApiQueryBase.php 1 patch
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -118,7 +118,7 @@  discard block
 block discarded – undo
118 118
 	 * See ApiQuery::getNamedDB() for more information
119 119
 	 * @param string $name Name to assign to the database connection
120 120
 	 * @param int $db One of the DB_* constants
121
-	 * @param array $groups Query groups
121
+	 * @param string $groups Query groups
122 122
 	 * @return Database
123 123
 	 */
124 124
 	public function selectNamedDB( $name, $db, $groups ) {
@@ -398,7 +398,7 @@  discard block
 block discarded – undo
398 398
 	 * here in the same way it treats a false return from addValue().
399 399
 	 *
400 400
 	 * @since 1.28
401
-	 * @param object $row Database row
401
+	 * @param stdClass|null $row Database row
402 402
 	 * @param array &$data Data to be added to the result
403 403
 	 * @param array &$hookData Hook data from ApiQueryBase::select()
404 404
 	 * @return bool Return false if row processing should end with continuation
@@ -581,7 +581,7 @@  discard block
 block discarded – undo
581 581
 
582 582
 	/**
583 583
 	 * @param string $hash
584
-	 * @return bool
584
+	 * @return integer
585 585
 	 */
586 586
 	public function validateSha1Hash( $hash ) {
587 587
 		return preg_match( '/^[a-f0-9]{40}$/', $hash );
@@ -589,7 +589,7 @@  discard block
 block discarded – undo
589 589
 
590 590
 	/**
591 591
 	 * @param string $hash
592
-	 * @return bool
592
+	 * @return integer
593 593
 	 */
594 594
 	public function validateSha1Base36Hash( $hash ) {
595 595
 		return preg_match( '/^[a-z0-9]{31}$/', $hash );
Please login to merge, or discard this patch.
includes/user/BotPassword.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@
 block discarded – undo
68 68
 	/**
69 69
 	 * Get a database connection for the bot passwords database
70 70
 	 * @param int $db Index of the connection to get, e.g. DB_MASTER or DB_REPLICA.
71
-	 * @return Database
71
+	 * @return DBConnRef
72 72
 	 */
73 73
 	public static function getDB( $db ) {
74 74
 		global $wgBotPasswordsCluster, $wgBotPasswordsDatabase;
Please login to merge, or discard this patch.
includes/tidy/Balancer.php 1 patch
Doc Comments   +17 added lines, -2 removed lines patch added patch discarded remove patch
@@ -809,7 +809,7 @@  discard block
 block discarded – undo
809 809
 
810 810
 	/**
811 811
 	 * Determine if the stack has $tag in button scope.
812
-	 * @param BalanceElement|array|string $tag
812
+	 * @param string $tag
813 813
 	 * @return bool
814 814
 	 * @see https://html.spec.whatwg.org/multipage/syntax.html#has-an-element-in-button-scope
815 815
 	 */
@@ -899,6 +899,7 @@  discard block
 block discarded – undo
899 899
 
900 900
 	/**
901 901
 	 * Return the adjusted current node.
902
+	 * @param BalanceElement|null $fragmentContext
902 903
 	 */
903 904
 	public function adjustedCurrentNode( $fragmentContext ) {
904 905
 		return ( $fragmentContext && count( $this->elements ) === 1 ) ?
@@ -1144,7 +1145,7 @@  discard block
 block discarded – undo
1144 1145
 	 * @param string $tag The subject tag name.
1145 1146
 	 * @param BalanceActiveFormattingElements $afe The current
1146 1147
 	 *   active formatting elements list.
1147
-	 * @return true if the adoption agency algorithm "did something", false
1148
+	 * @return boolean if the adoption agency algorithm "did something", false
1148 1149
 	 *   if more processing is required by the caller.
1149 1150
 	 * @see https://html.spec.whatwg.org/multipage/syntax.html#adoption-agency-algorithm
1150 1151
 	 */
@@ -1510,6 +1511,7 @@  discard block
 block discarded – undo
1510 1511
 	 * Find and return the last element with the specified tag between the
1511 1512
 	 * end of the list and the last marker on the list.
1512 1513
 	 * Used when parsing <a> "in body mode".
1514
+	 * @param string $tag
1513 1515
 	 */
1514 1516
 	public function findElementByTag( $tag ) {
1515 1517
 		$elt = $this->tail;
@@ -1666,6 +1668,10 @@  discard block
 block discarded – undo
1666 1668
 	 * @see https://html.spec.whatwg.org/multipage/syntax.html#reconstruct-the-active-formatting-elements
1667 1669
 	 */
1668 1670
 	// @codingStandardsIgnoreEnd
1671
+
1672
+	/**
1673
+	 * @param BalanceStack $stack
1674
+	 */
1669 1675
 	public function reconstruct( $stack ) {
1670 1676
 		$entry = $this->tail;
1671 1677
 		// If there are no entries in the list of active formatting elements,
@@ -2240,6 +2246,10 @@  discard block
 block discarded – undo
2240 2246
 		return $oldMode;
2241 2247
 	}
2242 2248
 
2249
+	/**
2250
+	 * @param string $mode
2251
+	 * @param boolean $selfClose
2252
+	 */
2243 2253
 	private function switchModeAndReprocess( $mode, $token, $value, $attribs, $selfClose ) {
2244 2254
 		$this->switchMode( $mode );
2245 2255
 		return $this->insertToken( $token, $value, $attribs, $selfClose );
@@ -3325,6 +3335,11 @@  discard block
 block discarded – undo
3325 3335
 			return false;
3326 3336
 		}
3327 3337
 	}
3338
+
3339
+	/**
3340
+	 * @param string $token
3341
+	 * @param string $value
3342
+	 */
3328 3343
 	private function inCellMode( $token, $value, $attribs = null, $selfClose = false ) {
3329 3344
 		if ( $token === 'tag' ) {
3330 3345
 			switch ( $value ) {
Please login to merge, or discard this patch.
includes/skins/BaseTemplate.php 1 patch
Doc Comments   +6 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,13 +29,15 @@  discard block
 block discarded – undo
29 29
 	 * Get a Message object with its context set
30 30
 	 *
31 31
 	 * @param string $name Message name
32
-	 * @param ... $params Message params
33 32
 	 * @return Message
34 33
 	 */
35 34
 	public function getMsg( $name /* ... */ ) {
36 35
 		return call_user_func_array( [ $this->getSkin(), 'msg' ], func_get_args() );
37 36
 	}
38 37
 
38
+	/**
39
+	 * @param string $str
40
+	 */
39 41
 	function msg( $str ) {
40 42
 		echo $this->getMsg( $str )->escaped();
41 43
 	}
@@ -507,6 +509,9 @@  discard block
 block discarded – undo
507 509
 		return Html::element( 'input', $realAttrs );
508 510
 	}
509 511
 
512
+	/**
513
+	 * @param string $mode
514
+	 */
510 515
 	function makeSearchButton( $mode, $attrs = [] ) {
511 516
 		switch ( $mode ) {
512 517
 			case 'go':
Please login to merge, or discard this patch.
includes/diff/DifferenceEngine.php 1 patch
Doc Comments   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -106,7 +106,7 @@  discard block
 block discarded – undo
106 106
 	 * Constructor
107 107
 	 * @param IContextSource $context Context to use, anything else will be ignored
108 108
 	 * @param int $old Old ID we want to show and diff with.
109
-	 * @param string|int $new Either revision ID or 'prev' or 'next'. Default: 0.
109
+	 * @param integer $new Either revision ID or 'prev' or 'next'. Default: 0.
110 110
 	 * @param int $rcid Deprecated, no longer used!
111 111
 	 * @param bool $refreshCache If set, refreshes the diff cache
112 112
 	 * @param bool $unhide If set, allow viewing deleted revs
@@ -176,7 +176,7 @@  discard block
 block discarded – undo
176 176
 	 *
177 177
 	 * @param int $id Revision ID
178 178
 	 *
179
-	 * @return string|bool Link HTML or false
179
+	 * @return string|false Link HTML or false
180 180
 	 */
181 181
 	public function deletedLink( $id ) {
182 182
 		if ( $this->getUser()->isAllowed( 'deletedhistory' ) ) {
@@ -712,7 +712,7 @@  discard block
 block discarded – undo
712 712
 	 * @param string|bool $ntitle Header for new text or false
713 713
 	 * @param string $notice HTML between diff header and body
714 714
 	 *
715
-	 * @return mixed
715
+	 * @return false|string
716 716
 	 */
717 717
 	public function getDiff( $otitle, $ntitle, $notice = '' ) {
718 718
 		$body = $this->getDiffBody();
@@ -734,7 +734,7 @@  discard block
 block discarded – undo
734 734
 	/**
735 735
 	 * Get the diff table body, without header
736 736
 	 *
737
-	 * @return mixed (string/false)
737
+	 * @return false|string (string/false)
738 738
 	 */
739 739
 	public function getDiffBody() {
740 740
 		$this->mCacheHit = true;
@@ -996,7 +996,7 @@  discard block
 block discarded – undo
996 996
 	 *
997 997
 	 * @param string $text
998 998
 	 *
999
-	 * @return mixed
999
+	 * @return string
1000 1000
 	 */
1001 1001
 	public function localiseLineNumbers( $text ) {
1002 1002
 		return preg_replace_callback(
Please login to merge, or discard this patch.
includes/libs/mime/IEContentAnalyzer.php 1 patch
Doc Comments   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -384,9 +384,9 @@  discard block
 block discarded – undo
384 384
 	/**
385 385
 	 * Get the MIME type for a given named version
386 386
 	 * @param $version
387
-	 * @param $fileName
388
-	 * @param $chunk
389
-	 * @param $proposed
387
+	 * @param string $fileName
388
+	 * @param string $chunk
389
+	 * @param string $proposed
390 390
 	 * @return bool|string
391 391
 	 */
392 392
 	protected function getMimeTypeForVersion( $version, $fileName, $chunk, $proposed ) {
@@ -554,8 +554,8 @@  discard block
 block discarded – undo
554 554
 	 * Check for text headers at the start of the chunk
555 555
 	 * Confirmed same in 5 and 7.
556 556
 	 * @param $version
557
-	 * @param $chunk
558
-	 * @return bool|string
557
+	 * @param string $chunk
558
+	 * @return string|false
559 559
 	 */
560 560
 	private function checkTextHeaders( $version, $chunk ) {
561 561
 		$chunk2 = substr( $chunk, 0, 2 );
@@ -580,8 +580,8 @@  discard block
 block discarded – undo
580 580
 	 * Check for binary headers at the start of the chunk
581 581
 	 * Confirmed same in 5 and 7.
582 582
 	 * @param $version
583
-	 * @param $chunk
584
-	 * @return bool|string
583
+	 * @param string $chunk
584
+	 * @return string|false
585 585
 	 */
586 586
 	private function checkBinaryHeaders( $version, $chunk ) {
587 587
 		$chunk2 = substr( $chunk, 0, 2 );
@@ -681,7 +681,7 @@  discard block
 block discarded – undo
681 681
 	 * Do heuristic checks on the bulk of the data sample.
682 682
 	 * Search for HTML tags.
683 683
 	 * @param $version
684
-	 * @param $chunk
684
+	 * @param string $chunk
685 685
 	 * @return array
686 686
 	 */
687 687
 	protected function sampleData( $version, $chunk ) {
Please login to merge, or discard this patch.
includes/libs/mime/MimeAnalyzer.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -620,7 +620,7 @@
 block discarded – undo
620 620
 	 * @todo Remove $ext param
621 621
 	 *
622 622
 	 * @param string $file
623
-	 * @param mixed $ext
623
+	 * @param boolean|string $ext
624 624
 	 * @return bool|string
625 625
 	 * @throws MWException
626 626
 	 */
Please login to merge, or discard this patch.
includes/libs/mime/XmlTypeCheck.php 1 patch
Doc Comments   +6 added lines, -2 removed lines patch added patch discarded remove patch
@@ -134,7 +134,8 @@  discard block
 block discarded – undo
134 134
 
135 135
 
136 136
 	/**
137
-	 * @param string $fname the filename
137
+	 * @param string $xml
138
+	 * @param boolean $isFile
138 139
 	 */
139 140
 	private function validateFromInput( $xml, $isFile ) {
140 141
 		$reader = new XMLReader();
@@ -175,6 +176,9 @@  discard block
 block discarded – undo
175 176
 		$this->wellFormed = false;
176 177
 	}
177 178
 
179
+	/**
180
+	 * @param XMLReader $reader
181
+	 */
178 182
 	private function validate( $reader ) {
179 183
 
180 184
 		// First, move through anything that isn't an element, and
@@ -286,7 +290,7 @@  discard block
 block discarded – undo
286 290
 	}
287 291
 
288 292
 	/**
289
-	 * @param $name
293
+	 * @param string $name
290 294
 	 * @param $attribs
291 295
 	 */
292 296
 	private function elementOpen( $name, $attribs ) {
Please login to merge, or discard this patch.
includes/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.