Completed
Branch master (37eb21)
by
unknown
25:17
created
includes/specialpage/AuthManagerSpecialPage.php 1 patch
Doc Comments   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -197,7 +197,7 @@  discard block
 block discarded – undo
197 197
 	 * Get the default action for this special page, if none is given via URL/POST data.
198 198
 	 * Subclasses should override this (or override loadAuth() so this is never called).
199 199
 	 * @param string $subPage Subpage of the special page.
200
-	 * @return string an AuthManager::ACTION_* constant.
200
+	 * @return string|null an AuthManager::ACTION_* constant.
201 201
 	 */
202 202
 	protected function getDefaultAction( $subPage ) {
203 203
 		throw new BadMethodCallException( 'Subclass did not implement getDefaultAction' );
@@ -206,6 +206,7 @@  discard block
 block discarded – undo
206 206
 	/**
207 207
 	 * Return custom message key.
208 208
 	 * Allows subclasses to customize messages.
209
+	 * @param string $defaultKey
209 210
 	 * @return string
210 211
 	 */
211 212
 	protected function messageKey( $defaultKey ) {
@@ -708,7 +709,7 @@  discard block
 block discarded – undo
708 709
 	 * Get an array value, or a default if it does not exist.
709 710
 	 * @param array $array
710 711
 	 * @param string $fieldName
711
-	 * @param mixed $default
712
+	 * @param integer $default
712 713
 	 * @return mixed
713 714
 	 */
714 715
 	protected static function getField( array $array, $fieldName, $default = null ) {
Please login to merge, or discard this patch.
includes/specialpage/LoginSignupSpecialPage.php 1 patch
Doc Comments   +11 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 );
@@ -342,7 +345,7 @@  discard block
 block discarded – undo
342 345
 	 * Show the success page.
343 346
 	 *
344 347
 	 * @param string $type Condition of return to; see `executeReturnTo`
345
-	 * @param string|Message $title Page's title
348
+	 * @param Message $title Page's title
346 349
 	 * @param string $msgname
347 350
 	 * @param string $injected_html
348 351
 	 * @param StatusValue|null $extraMessages
@@ -391,7 +394,6 @@  discard block
 block discarded – undo
391 394
 	/**
392 395
 	 * Replace some globals to make sure the fact that the user has just been logged in is
393 396
 	 * reflected in the current request.
394
-	 * @param User $user
395 397
 	 */
396 398
 	protected function setSessionUserForCurrentRequest() {
397 399
 		global $wgUser, $wgLang;
@@ -1322,6 +1324,9 @@  discard block
 block discarded – undo
1322 1324
 class LoginForm extends SpecialPage {
1323 1325
 	private $realLoginForm;
1324 1326
 
1327
+	/**
1328
+	 * @param DerivativeRequest $request
1329
+	 */
1325 1330
 	public function __construct( $request = null ) {
1326 1331
 		global $wgDisableAuthManager;
1327 1332
 		if ( $wgDisableAuthManager ) {
@@ -1418,6 +1423,10 @@  discard block
 block discarded – undo
1418 1423
 	function getPageTitle( $subpage = false ) {
1419 1424
 		return call_user_func_array( [ $this->realLoginForm, __FUNCTION__ ], func_get_args() );
1420 1425
 	}
1426
+
1427
+	/**
1428
+	 * @param IContextSource $context
1429
+	 */
1421 1430
 	public function setContext( $context ) {
1422 1431
 		return call_user_func_array( [ $this->realLoginForm, __FUNCTION__ ], func_get_args() );
1423 1432
 	}
Please login to merge, or discard this patch.
includes/specials/helpers/LoginHelper.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/specials/pre-authmanager/SpecialUserlogin.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -136,7 +136,7 @@  discard block
 block discarded – undo
136 136
 	/**
137 137
 	 * Returns an array of all valid error messages.
138 138
 	 *
139
-	 * @return array
139
+	 * @return string[]
140 140
 	 */
141 141
 	public static function getValidErrorMessages() {
142 142
 		static $messages = null;
@@ -1222,7 +1222,7 @@  discard block
 block discarded – undo
1222 1222
 	 * Display a "successful action" page.
1223 1223
 	 *
1224 1224
 	 * @param string $type Condition of return to; see `executeReturnTo`
1225
-	 * @param string|Message $title Page's title
1225
+	 * @param Message $title Page's title
1226 1226
 	 * @param string $msgname
1227 1227
 	 * @param string $injected_html
1228 1228
 	 */
@@ -1735,7 +1735,7 @@  discard block
 block discarded – undo
1735 1735
 	 * Private function to check password expiration, until AuthManager comes
1736 1736
 	 * along to handle that.
1737 1737
 	 * @param User $user
1738
-	 * @return string|bool
1738
+	 * @return string|false
1739 1739
 	 */
1740 1740
 	private function checkUserPasswordExpired( User $user ) {
1741 1741
 		global $wgPasswordExpireGrace;
Please login to merge, or discard this patch.
includes/diff/DairikiDiff.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -232,7 +232,7 @@
 block discarded – undo
232 232
 	 *    $diff = new Diff($lines1, $lines2);
233 233
 	 *    $rev = $diff->reverse();
234 234
 	 *
235
-	 * @return Object A Diff object representing the inverse of the
235
+	 * @return Diff A Diff object representing the inverse of the
236 236
 	 *   original diff.
237 237
 	 */
238 238
 	public function reverse() {
Please login to merge, or discard this patch.
includes/diff/DiffEngine.php 1 patch
Doc Comments   +18 added lines patch added patch discarded remove patch
@@ -222,6 +222,13 @@  discard block
 block discarded – undo
222 222
 		return $ranges;
223 223
 	}
224 224
 
225
+	/**
226
+	 * @param integer $bottoml1
227
+	 * @param integer $topl1
228
+	 * @param integer $bottoml2
229
+	 * @param integer $topl2
230
+	 * @param integer[] $snake
231
+	 */
225 232
 	private function lcs_rec( $bottoml1, $topl1, $bottoml2, $topl2, &$V, &$snake ) {
226 233
 		// check that both sequences are non-empty
227 234
 		if ( $bottoml1 > $topl1 || $bottoml2 > $topl2 ) {
@@ -490,6 +497,11 @@  discard block
 block discarded – undo
490 497
 		*/
491 498
 	}
492 499
 
500
+	/**
501
+	 * @param double $M
502
+	 * @param double $N
503
+	 * @param double $limit
504
+	 */
493 505
 	private static function findMostProgress( $M, $N, $limit, $V ) {
494 506
 		$delta = $N - $M;
495 507
 
@@ -609,6 +621,12 @@  discard block
 block discarded – undo
609 621
 	/** @var int */
610 622
 	public $rightlength;
611 623
 
624
+	/**
625
+	 * @param integer $leftstart
626
+	 * @param integer $leftend
627
+	 * @param integer $rightstart
628
+	 * @param integer $rightend
629
+	 */
612 630
 	function __construct( $leftstart, $leftend, $rightstart, $rightend ) {
613 631
 		$this->leftstart = $leftstart;
614 632
 		$this->leftend = $leftend;
Please login to merge, or discard this patch.
includes/interwiki/ClassicInterwikiLookup.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -112,6 +112,9 @@
 block discarded – undo
112 112
 		}
113 113
 	}
114 114
 
115
+	/**
116
+	 * @return string
117
+	 */
115 118
 	function stripParameters( $text ) {
116 119
 		if ( !$this->stripParametersEnabled ) {
117 120
 			return $text;
Please login to merge, or discard this patch.
includes/linker/LinkRenderer.php 1 patch
Doc Comments   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
 	}
99 99
 
100 100
 	/**
101
-	 * @param string|bool|int $expand A PROTO_* constant or false
101
+	 * @param string $expand A PROTO_* constant or false
102 102
 	 */
103 103
 	public function setExpandURLs( $expand ) {
104 104
 		$this->expandUrls = $expand;
@@ -189,6 +189,9 @@  discard block
 block discarded – undo
189 189
 		return $options;
190 190
 	}
191 191
 
192
+	/**
193
+	 * @param boolean $isKnown
194
+	 */
192 195
 	private function runBeginHook( LinkTarget $target, &$text, &$extraAttribs, &$query, $isKnown ) {
193 196
 		$ret = null;
194 197
 		if ( !Hooks::run( 'HtmlPageLinkRendererBegin',
Please login to merge, or discard this patch.
includes/resourceloader/ResourceLoaderFileModule.php 1 patch
Doc Comments   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -381,7 +381,7 @@  discard block
 block discarded – undo
381 381
 	 * Get all styles for a given context.
382 382
 	 *
383 383
 	 * @param ResourceLoaderContext $context
384
-	 * @return array CSS code for $context as an associative array mapping media type to CSS text.
384
+	 * @return string CSS code for $context as an associative array mapping media type to CSS text.
385 385
 	 */
386 386
 	public function getStyles( ResourceLoaderContext $context ) {
387 387
 		$styles = $this->readStyleFiles(
@@ -631,7 +631,7 @@  discard block
 block discarded – undo
631 631
 	 * @param array $list List of file paths in any combination of index/path
632 632
 	 *     or path/options pairs
633 633
 	 * @param string $option Option name
634
-	 * @param mixed $default Default value if the option isn't set
634
+	 * @param string $default Default value if the option isn't set
635 635
 	 * @return array List of file paths, collated by $option
636 636
 	 */
637 637
 	protected static function collateFilePathListByOption( array $list, $option, $default ) {
@@ -1007,6 +1007,7 @@  discard block
 block discarded – undo
1007 1007
 	 * the BOM character is not valid in the middle of a string.
1008 1008
 	 * We already assume UTF-8 everywhere, so this should be safe.
1009 1009
 	 *
1010
+	 * @param string $input
1010 1011
 	 * @return string input minus the intial BOM char
1011 1012
 	 */
1012 1013
 	protected function stripBom( $input ) {
Please login to merge, or discard this patch.