Completed
Branch master (a8a8eb)
by
unknown
24:51
created
includes/user/User.php 1 patch
Doc Comments   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -1181,7 +1181,7 @@  discard block
 block discarded – undo
1181 1181
 	/**
1182 1182
 	 * Load user data from the session.
1183 1183
 	 *
1184
-	 * @return bool True if the user is logged in, false otherwise.
1184
+	 * @return null|boolean True if the user is logged in, false otherwise.
1185 1185
 	 */
1186 1186
 	private function loadFromSession() {
1187 1187
 		// Deprecated hook
@@ -2855,7 +2855,7 @@  discard block
 block discarded – undo
2855 2855
 	 * resetting it if it's empty (and saving changes).
2856 2856
 	 *
2857 2857
 	 * @param string $oname The option name to retrieve the token from
2858
-	 * @return string|bool User's current value for the option, or false if this option is disabled.
2858
+	 * @return false|string User's current value for the option, or false if this option is disabled.
2859 2859
 	 * @see resetTokenFromOption()
2860 2860
 	 * @see getOption()
2861 2861
 	 * @deprecated since 1.26 Applications should use the OAuth extension
@@ -2884,7 +2884,7 @@  discard block
 block discarded – undo
2884 2884
 	 * *Does not* save user's preferences (similarly to setOption()).
2885 2885
 	 *
2886 2886
 	 * @param string $oname The option name to reset the token in
2887
-	 * @return string|bool New token value, or false if this option is disabled.
2887
+	 * @return false|string New token value, or false if this option is disabled.
2888 2888
 	 * @see getTokenFromOption()
2889 2889
 	 * @see setOption()
2890 2890
 	 */
@@ -2920,7 +2920,7 @@  discard block
 block discarded – undo
2920 2920
 	 * new option kind is added.
2921 2921
 	 *
2922 2922
 	 * @see User::getOptionKinds
2923
-	 * @return array Option kinds
2923
+	 * @return string[] Option kinds
2924 2924
 	 */
2925 2925
 	public static function listOptionKinds() {
2926 2926
 		return [
@@ -4474,7 +4474,7 @@  discard block
 block discarded – undo
4474 4474
 	/**
4475 4475
 	 * Get the timestamp of account creation.
4476 4476
 	 *
4477
-	 * @return string|bool|null Timestamp of account creation, false for
4477
+	 * @return false|string Timestamp of account creation, false for
4478 4478
 	 *  non-existent/anonymous user accounts, or null if existing account
4479 4479
 	 *  but information is not in database.
4480 4480
 	 */
@@ -4489,7 +4489,7 @@  discard block
 block discarded – undo
4489 4489
 	/**
4490 4490
 	 * Get the timestamp of the first edit
4491 4491
 	 *
4492
-	 * @return string|bool Timestamp of first edit, or false for
4492
+	 * @return false|string Timestamp of first edit, or false for
4493 4493
 	 *  non-existent/anonymous user accounts.
4494 4494
 	 */
4495 4495
 	public function getFirstEditTimestamp() {
@@ -5259,7 +5259,7 @@  discard block
 block discarded – undo
5259 5259
 	/**
5260 5260
 	 * Return the list of user fields that should be selected to create
5261 5261
 	 * a new user object.
5262
-	 * @return array
5262
+	 * @return string[]
5263 5263
 	 */
5264 5264
 	public static function selectFields() {
5265 5265
 		return [
Please login to merge, or discard this patch.
includes/api/ApiUpload.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -663,7 +663,7 @@
 block discarded – undo
663 663
 	 * Handles a stash exception, giving a useful error to the user.
664 664
 	 * @param string $exceptionType Class name of the exception we encountered.
665 665
 	 * @param string $message Message of the exception we encountered.
666
-	 * @return array Array of message and code, suitable for passing to dieUsage()
666
+	 * @return string[] Array of message and code, suitable for passing to dieUsage()
667 667
 	 */
668 668
 	protected function handleStashException( $exceptionType, $message ) {
669 669
 		switch ( $exceptionType ) {
Please login to merge, or discard this patch.
includes/media/DjVuImage.php 1 patch
Doc Comments   +13 added lines patch added patch discarded remove patch
@@ -92,6 +92,10 @@  discard block
 block discarded – undo
92 92
 		fclose( $file );
93 93
 	}
94 94
 
95
+	/**
96
+	 * @param resource $file
97
+	 * @param integer $indent
98
+	 */
95 99
 	private function dumpForm( $file, $length, $indent ) {
96 100
 		$start = ftell( $file );
97 101
 		$secondary = fread( $file, 4 );
@@ -165,6 +169,9 @@  discard block
 block discarded – undo
165 169
 		}
166 170
 	}
167 171
 
172
+	/**
173
+	 * @param integer $chunkLength
174
+	 */
168 175
 	private function skipChunk( $file, $chunkLength ) {
169 176
 		fseek( $file, $chunkLength, SEEK_CUR );
170 177
 
@@ -174,6 +181,9 @@  discard block
 block discarded – undo
174 181
 		}
175 182
 	}
176 183
 
184
+	/**
185
+	 * @param resource $file
186
+	 */
177 187
 	private function getMultiPageInfo( $file, $formLength ) {
178 188
 		// For now, we'll just look for the first page in the file
179 189
 		// and report its information, hoping others are the same size.
@@ -368,6 +378,9 @@  discard block
 block discarded – undo
368 378
 		return $xml;
369 379
 	}
370 380
 
381
+	/**
382
+	 * @param string $line
383
+	 */
371 384
 	function parseFormDjvu( $line, &$xml ) {
372 385
 		$parentLevel = strspn( $line, ' ' );
373 386
 		$line = strtok( "\n" );
Please login to merge, or discard this patch.
includes/resourceloader/ResourceLoaderClientHtml.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -104,7 +104,6 @@
 block discarded – undo
104 104
 	 *
105 105
 	 * See OutputPage::buildExemptModules() for use cases.
106 106
 	 *
107
-	 * @param array $modules Module state keyed by module name
108 107
 	 */
109 108
 	public function setExemptStates( array $states ) {
110 109
 		$this->exemptStates = $states;
Please login to merge, or discard this patch.
includes/WebRequest.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -234,7 +234,7 @@  discard block
 block discarded – undo
234 234
 	 * This is for use prior to Setup.php, when no WebRequest object is available.
235 235
 	 * At other times, use the non-static function getProtocol().
236 236
 	 *
237
-	 * @return array
237
+	 * @return string
238 238
 	 */
239 239
 	public static function detectProtocol() {
240 240
 		if ( ( !empty( $_SERVER['HTTPS'] ) && $_SERVER['HTTPS'] !== 'off' ) ||
@@ -604,7 +604,7 @@  discard block
 block discarded – undo
604 604
 	/**
605 605
 	 * Returns the names of all input values excluding those in $exclude.
606 606
 	 *
607
-	 * @param array $exclude
607
+	 * @param string[] $exclude
608 608
 	 * @return array
609 609
 	 */
610 610
 	public function getValueNames( $exclude = [] ) {
@@ -743,7 +743,7 @@  discard block
 block discarded – undo
743 743
 	 * @param string $key The name of the cookie
744 744
 	 * @param string $prefix A prefix to use for the cookie name, if not $wgCookiePrefix
745 745
 	 * @param mixed $default What to return if the value isn't found
746
-	 * @return mixed Cookie value or $default if the cookie not set
746
+	 * @return string Cookie value or $default if the cookie not set
747 747
 	 */
748 748
 	public function getCookie( $key, $prefix = null, $default = null ) {
749 749
 		if ( $prefix === null ) {
Please login to merge, or discard this patch.
includes/page/WikiPage.php 1 patch
Doc Comments   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -257,7 +257,7 @@  discard block
 block discarded – undo
257 257
 	 * Return the list of revision fields that should be selected to create
258 258
 	 * a new page.
259 259
 	 *
260
-	 * @return array
260
+	 * @return string[]
261 261
 	 */
262 262
 	public static function selectFields() {
263 263
 		global $wgContentHandlerUseDB, $wgPageLanguageUseDB;
@@ -1144,7 +1144,7 @@  discard block
 block discarded – undo
1144 1144
 	 * @param IDatabase $dbw
1145 1145
 	 * @param int|null $pageId Custom page ID that will be used for the insert statement
1146 1146
 	 *
1147
-	 * @return bool|int The newly created page_id key; false if the row was not
1147
+	 * @return integer The newly created page_id key; false if the row was not
1148 1148
 	 *   inserted, e.g. because the title already existed or because the specified
1149 1149
 	 *   page ID is already in use.
1150 1150
 	 */
@@ -1491,7 +1491,7 @@  discard block
 block discarded – undo
1491 1491
 	 * error will be returned. These two conditions are also possible with
1492 1492
 	 * auto-detection due to MediaWiki's performance-optimised locking strategy.
1493 1493
 	 *
1494
-	 * @param bool|int $baseRevId The revision ID this edit was based off, if any.
1494
+	 * @param boolean $baseRevId The revision ID this edit was based off, if any.
1495 1495
 	 *   This is not the parent revision ID, rather the revision ID for older
1496 1496
 	 *   content used as the source for a rollback, for example.
1497 1497
 	 * @param User $user The user doing the edit
@@ -3370,7 +3370,7 @@  discard block
 block discarded – undo
3370 3370
 	 * Returns a list of categories this page is a member of.
3371 3371
 	 * Results will include hidden categories
3372 3372
 	 *
3373
-	 * @return TitleArray
3373
+	 * @return TitleArrayFromResult|null
3374 3374
 	 */
3375 3375
 	public function getCategories() {
3376 3376
 		$id = $this->getId();
@@ -3445,7 +3445,7 @@  discard block
 block discarded – undo
3445 3445
 	 * Auto-generates a deletion reason
3446 3446
 	 *
3447 3447
 	 * @param bool &$hasHistory Whether the page has a history
3448
-	 * @return string|bool String containing deletion reason or empty string, or boolean false
3448
+	 * @return false|string String containing deletion reason or empty string, or boolean false
3449 3449
 	 *    if no revision occurred
3450 3450
 	 */
3451 3451
 	public function getAutoDeleteReason( &$hasHistory ) {
Please login to merge, or discard this patch.
maintenance/hhvm/makeRepo.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -129,6 +129,9 @@
 block discarded – undo
129 129
 		return 0;
130 130
 	}
131 131
 
132
+	/**
133
+	 * @param string $tmpDir
134
+	 */
132 135
 	private function cleanupTemp( $tmpDir ) {
133 136
 		if ( file_exists( "$tmpDir/hhvm.hhbc" ) ) {
134 137
 			unlink( "$tmpDir/hhvm.hhbc" );
Please login to merge, or discard this patch.
includes/specialpage/LoginSignupSpecialPage.php 1 patch
Doc Comments   +5 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 );
@@ -365,7 +368,7 @@  discard block
 block discarded – undo
365 368
 	 * Show the success page.
366 369
 	 *
367 370
 	 * @param string $type Condition of return to; see `executeReturnTo`
368
-	 * @param string|Message $title Page's title
371
+	 * @param Message $title Page's title
369 372
 	 * @param string $msgname
370 373
 	 * @param string $injected_html
371 374
 	 * @param StatusValue|null $extraMessages
@@ -414,7 +417,6 @@  discard block
 block discarded – undo
414 417
 	/**
415 418
 	 * Replace some globals to make sure the fact that the user has just been logged in is
416 419
 	 * reflected in the current request.
417
-	 * @param User $user
418 420
 	 */
419 421
 	protected function setSessionUserForCurrentRequest() {
420 422
 		global $wgUser, $wgLang;
@@ -1254,6 +1256,7 @@  discard block
 block discarded – undo
1254 1256
 
1255 1257
 	/**
1256 1258
 	 * @param array $formDescriptor
1259
+	 * @param AuthenticationRequest[] $requests
1257 1260
 	 */
1258 1261
 	protected function postProcessFormDescriptor( &$formDescriptor, $requests ) {
1259 1262
 		// Pre-fill username (if not creating an account, T46775).
Please login to merge, or discard this patch.
includes/content/TextContent.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -157,7 +157,7 @@
 block discarded – undo
157 157
 	 * changes.
158 158
 	 *
159 159
 	 * @since 1.28
160
-	 * @param $text
160
+	 * @param false|string $text
161 161
 	 * @return string
162 162
 	 */
163 163
 	public static function normalizeLineEndings( $text ) {
Please login to merge, or discard this patch.