Completed
Branch master (ddf2af)
by
unknown
21:32
created
includes/cache/CacheHelper.php 1 patch
Doc Comments   +5 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,6 +33,7 @@  discard block
 block discarded – undo
33 33
 	 *
34 34
 	 * @since 1.20
35 35
 	 * @param bool $cacheEnabled
36
+	 * @return void
36 37
 	 */
37 38
 	function setCacheEnabled( $cacheEnabled );
38 39
 
@@ -44,6 +45,7 @@  discard block
 block discarded – undo
44 45
 	 *
45 46
 	 * @param int|null $cacheExpiry Sets the cache expiry, either ttl in seconds or unix timestamp.
46 47
 	 * @param bool|null $cacheEnabled Sets if the cache should be enabled or not.
48
+	 * @return void
47 49
 	 */
48 50
 	function startCache( $cacheExpiry = null, $cacheEnabled = null );
49 51
 
@@ -68,6 +70,7 @@  discard block
 block discarded – undo
68 70
 	 * Should be called after the last time anything is added via addCachedHTML.
69 71
 	 *
70 72
 	 * @since 1.20
73
+	 * @return void
71 74
 	 */
72 75
 	function saveCache();
73 76
 
@@ -78,6 +81,7 @@  discard block
 block discarded – undo
78 81
 	 * @since 1.20
79 82
 	 *
80 83
 	 * @param int $cacheExpiry
84
+	 * @return void
81 85
 	 */
82 86
 	function setExpiry( $cacheExpiry );
83 87
 }
@@ -259,7 +263,7 @@  discard block
 block discarded – undo
259 263
 	 * @param array|mixed $args
260 264
 	 * @param string|null $key
261 265
 	 *
262
-	 * @return mixed
266
+	 * @return string
263 267
 	 */
264 268
 	public function getCachedValue( $computeFunction, $args = array(), $key = null ) {
265 269
 		$this->initCaching();
Please login to merge, or discard this patch.
includes/cache/FileCacheBase.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -98,7 +98,7 @@
 block discarded – undo
98 98
 
99 99
 	/**
100 100
 	 * Get the last-modified timestamp of the cache file
101
-	 * @return string|bool TS_MW timestamp
101
+	 * @return string|false TS_MW timestamp
102 102
 	 */
103 103
 	public function cacheTimestamp() {
104 104
 		$timestamp = filemtime( $this->cachePath() );
Please login to merge, or discard this patch.
includes/cache/LocalisationCache.php 1 patch
Doc Comments   +9 added lines, -1 removed lines patch added patch discarded remove patch
@@ -692,7 +692,7 @@  discard block
 block discarded – undo
692 692
 	 *
693 693
 	 * @param string $code
694 694
 	 * @param array $deps
695
-	 * @return array
695
+	 * @return string
696 696
 	 */
697 697
 	protected function readSourceFilesAndRegisterDeps( $code, &$deps ) {
698 698
 		global $IP;
@@ -1125,11 +1125,13 @@  discard block
 block discarded – undo
1125 1125
 	/**
1126 1126
 	 * Start a write transaction.
1127 1127
 	 * @param string $code Language code
1128
+	 * @return void
1128 1129
 	 */
1129 1130
 	function startWrite( $code );
1130 1131
 
1131 1132
 	/**
1132 1133
 	 * Finish a write transaction.
1134
+	 * @return void
1133 1135
 	 */
1134 1136
 	function finishWrite();
1135 1137
 
@@ -1138,6 +1140,7 @@  discard block
 block discarded – undo
1138 1140
 	 * is called, and finishWrite() must be called afterwards.
1139 1141
 	 * @param string $key
1140 1142
 	 * @param mixed $value
1143
+	 * @return void
1141 1144
 	 */
1142 1145
 	function set( $key, $value );
1143 1146
 }
@@ -1346,6 +1349,11 @@  discard block
 block discarded – undo
1346 1349
 		}
1347 1350
 	}
1348 1351
 
1352
+	/**
1353
+	 * @param string $code
1354
+	 *
1355
+	 * @return string
1356
+	 */
1349 1357
 	protected function getFileName( $code ) {
1350 1358
 		if ( strval( $code ) === '' || strpos( $code, '/' ) !== false ) {
1351 1359
 			throw new MWException( __METHOD__ . ": Invalid language \"$code\"" );
Please login to merge, or discard this patch.
includes/cache/MessageCache.php 1 patch
Doc Comments   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -359,7 +359,7 @@  discard block
 block discarded – undo
359 359
 
360 360
 	/**
361 361
 	 * @param string $code
362
-	 * @param array $where List of wfDebug() comments
362
+	 * @param string[] $where List of wfDebug() comments
363 363
 	 * @param integer $mode Use MessageCache::FOR_UPDATE to use DB_MASTER
364 364
 	 * @return bool|string True on success or one of ("cantacquire", "disabled")
365 365
 	 */
@@ -513,7 +513,7 @@  discard block
 block discarded – undo
513 513
 	 * Updates cache as necessary when message page is changed
514 514
 	 *
515 515
 	 * @param string|bool $title Name of the page changed (false if deleted)
516
-	 * @param mixed $text New contents of the page.
516
+	 * @param string|boolean $text New contents of the page.
517 517
 	 */
518 518
 	public function replace( $title, $text ) {
519 519
 		global $wgMaxMsgCacheEntrySize, $wgContLang, $wgLanguageCode;
@@ -720,7 +720,7 @@  discard block
 block discarded – undo
720 720
 	 * @param bool $isFullKey Specifies whether $key is a two part key "msg/lang".
721 721
 	 *
722 722
 	 * @throws MWException When given an invalid key
723
-	 * @return string|bool False if the message doesn't exist, otherwise the
723
+	 * @return false|string False if the message doesn't exist, otherwise the
724 724
 	 *   message (which can be empty)
725 725
 	 */
726 726
 	function get( $key, $useDB = true, $langcode = true, $isFullKey = false ) {
@@ -799,7 +799,7 @@  discard block
 block discarded – undo
799 799
 	 * the site language.
800 800
 	 *
801 801
 	 * @see MessageCache::get
802
-	 * @param Language|StubObject $lang Preferred language
802
+	 * @param Language $lang Preferred language
803 803
 	 * @param string $lckey Lowercase key for the message (as for localisation cache)
804 804
 	 * @param bool $useDB Whether to include messages from the wiki database
805 805
 	 * @return string|bool The message, or false if not found
@@ -1099,7 +1099,7 @@  discard block
 block discarded – undo
1099 1099
 
1100 1100
 	/**
1101 1101
 	 * @param string $key
1102
-	 * @return array
1102
+	 * @return string[]
1103 1103
 	 */
1104 1104
 	public function figureMessage( $key ) {
1105 1105
 		global $wgLanguageCode;
Please login to merge, or discard this patch.
includes/Category.php 1 patch
Doc Comments   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -126,7 +126,7 @@  discard block
 block discarded – undo
126 126
 	 * Factory function.
127 127
 	 *
128 128
 	 * @param Title $title Title for the category page
129
-	 * @return Category|bool On a totally invalid name
129
+	 * @return Category On a totally invalid name
130 130
 	 */
131 131
 	public static function newFromTitle( $title ) {
132 132
 		$cat = new self();
@@ -196,42 +196,42 @@  discard block
 block discarded – undo
196 196
 	}
197 197
 
198 198
 	/**
199
-	 * @return mixed DB key name, or false on failure
199
+	 * @return boolean DB key name, or false on failure
200 200
 	 */
201 201
 	public function getName() {
202 202
 		return $this->getX( 'mName' );
203 203
 	}
204 204
 
205 205
 	/**
206
-	 * @return mixed Category ID, or false on failure
206
+	 * @return boolean Category ID, or false on failure
207 207
 	 */
208 208
 	public function getID() {
209 209
 		return $this->getX( 'mID' );
210 210
 	}
211 211
 
212 212
 	/**
213
-	 * @return mixed Total number of member pages, or false on failure
213
+	 * @return boolean Total number of member pages, or false on failure
214 214
 	 */
215 215
 	public function getPageCount() {
216 216
 		return $this->getX( 'mPages' );
217 217
 	}
218 218
 
219 219
 	/**
220
-	 * @return mixed Number of subcategories, or false on failure
220
+	 * @return boolean Number of subcategories, or false on failure
221 221
 	 */
222 222
 	public function getSubcatCount() {
223 223
 		return $this->getX( 'mSubcats' );
224 224
 	}
225 225
 
226 226
 	/**
227
-	 * @return mixed Number of member files, or false on failure
227
+	 * @return boolean Number of member files, or false on failure
228 228
 	 */
229 229
 	public function getFileCount() {
230 230
 		return $this->getX( 'mFiles' );
231 231
 	}
232 232
 
233 233
 	/**
234
-	 * @return Title|bool Title for this category, or false on failure.
234
+	 * @return Title Title for this category, or false on failure.
235 235
 	 */
236 236
 	public function getTitle() {
237 237
 		if ( $this->mTitle ) {
@@ -251,7 +251,7 @@  discard block
 block discarded – undo
251 251
 	 * category sort key $offset.
252 252
 	 * @param int $limit
253 253
 	 * @param string $offset
254
-	 * @return TitleArray TitleArray object for category members.
254
+	 * @return TitleArrayFromResult|null TitleArray object for category members.
255 255
 	 */
256 256
 	public function getMembers( $limit = false, $offset = '' ) {
257 257
 
Please login to merge, or discard this patch.
includes/CategoryViewer.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -188,6 +188,10 @@
 block discarded – undo
188 188
 			$this->getSubcategorySortChar( $cat->getTitle(), $sortkey );
189 189
 	}
190 190
 
191
+	/**
192
+	 * @param string $type
193
+	 * @param string $html
194
+	 */
191 195
 	function generateLink( $type, Title $title, $isRedirect, $html = null ) {
192 196
 		$link = null;
193 197
 		Hooks::run( 'CategoryViewer::generateLink', array( $type, $title, $html, &$link ) );
Please login to merge, or discard this patch.
includes/changes/CategoryMembershipChange.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -207,7 +207,7 @@
 block discarded – undo
207 207
 	 * False will be returned if the user name specified in the
208 208
 	 * 'autochange-username' message is invalid.
209 209
 	 *
210
-	 * @return User|bool
210
+	 * @return null|User
211 211
 	 */
212 212
 	private function getUser() {
213 213
 		if ( $this->revision ) {
Please login to merge, or discard this patch.
includes/changes/EnhancedChangesList.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -447,7 +447,7 @@
 block discarded – undo
447 447
 	/**
448 448
 	 * Generates amount of changes (linking to diff ) & link to history.
449 449
 	 *
450
-	 * @param array $block
450
+	 * @param RCCacheEntry[] $block
451 451
 	 * @param array $queryParams
452 452
 	 * @param bool $allLogs
453 453
 	 * @param bool $isnew
Please login to merge, or discard this patch.
includes/changes/OldChangesList.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 block discarded – undo
29 29
 	 * @param bool $watched (default false)
30 30
 	 * @param int $linenumber (default null)
31 31
 	 *
32
-	 * @return string|bool
32
+	 * @return false|string
33 33
 	 */
34 34
 	public function recentChangesLine( &$rc, $watched = false, $linenumber = null ) {
35 35
 
Please login to merge, or discard this patch.