Completed
Branch master (310cdc)
by
unknown
26:30
created
includes/parser/Preprocessor.php 1 patch
Doc Comments   +6 added lines, -7 removed lines patch added patch discarded remove patch
@@ -56,6 +56,7 @@  discard block
 block discarded – undo
56 56
 	 *
57 57
 	 * @param string $text
58 58
 	 * @param int $flags
59
+	 * @param string $tree
59 60
 	 */
60 61
 	protected function cacheSetTree( $text, $flags, $tree ) {
61 62
 		$config = RequestContext::getMain()->getConfig();
@@ -86,7 +87,7 @@  discard block
 block discarded – undo
86 87
 	 *
87 88
 	 * @param string $text
88 89
 	 * @param int $flags
89
-	 * @return PPNode_Hash_Tree|bool
90
+	 * @return false|string
90 91
 	 */
91 92
 	protected function cacheGetTree( $text, $flags ) {
92 93
 		$config = RequestContext::getMain()->getConfig();
@@ -132,7 +133,7 @@  discard block
 block discarded – undo
132 133
 	 * Create a new custom frame for programmatic use of parameter replacement
133 134
 	 * as used in some extensions.
134 135
 	 *
135
-	 * @param array $args
136
+	 * @param boolean $args
136 137
 	 *
137 138
 	 * @return PPFrame
138 139
 	 */
@@ -186,7 +187,7 @@  discard block
 block discarded – undo
186 187
 
187 188
 	/**
188 189
 	 * Expand a document tree node, caching the result on its parent with the given key
189
-	 * @param string|int $key
190
+	 * @param string $key
190 191
 	 * @param string|PPNode $root
191 192
 	 * @param int $flags
192 193
 	 * @return string
@@ -205,7 +206,6 @@  discard block
 block discarded – undo
205 206
 	 * Implode with flags for expand()
206 207
 	 * @param string $sep
207 208
 	 * @param int $flags
208
-	 * @param string|PPNode $args,...
209 209
 	 * @return string
210 210
 	 */
211 211
 	public function implodeWithFlags( $sep, $flags /*, ... */ );
@@ -213,7 +213,6 @@  discard block
 block discarded – undo
213 213
 	/**
214 214
 	 * Implode with no flags specified
215 215
 	 * @param string $sep
216
-	 * @param string|PPNode $args,...
217 216
 	 * @return string
218 217
 	 */
219 218
 	public function implode( $sep /*, ... */ );
@@ -222,7 +221,6 @@  discard block
 block discarded – undo
222 221
 	 * Makes an object that, when expand()ed, will be the same as one obtained
223 222
 	 * with implode()
224 223
 	 * @param string $sep
225
-	 * @param string|PPNode $args,...
226 224
 	 * @return PPNode
227 225
 	 */
228 226
 	public function virtualImplode( $sep /*, ... */ );
@@ -232,7 +230,6 @@  discard block
 block discarded – undo
232 230
 	 * @param string $start
233 231
 	 * @param string $sep
234 232
 	 * @param string $end
235
-	 * @param string|PPNode $args,...
236 233
 	 * @return PPNode
237 234
 	 */
238 235
 	public function virtualBracketedImplode( $start, $sep, $end /*, ... */ );
@@ -293,6 +290,7 @@  discard block
 block discarded – undo
293 290
 	 * to respect it, and it may be removed in the future.
294 291
 	 *
295 292
 	 * @param bool $flag
293
+	 * @return void
296 294
 	 */
297 295
 	public function setVolatile( $flag = true );
298 296
 
@@ -329,6 +327,7 @@  discard block
 block discarded – undo
329 327
 	 *
330 328
 	 * @see self::getTTL()
331 329
 	 * @param int $ttl
330
+	 * @return void
332 331
 	 */
333 332
 	public function setTTL( $ttl );
334 333
 
Please login to merge, or discard this patch.
includes/parser/Preprocessor_DOM.php 1 patch
Doc Comments   +12 added lines, -7 removed lines patch added patch discarded remove patch
@@ -1296,7 +1296,6 @@  discard block
 block discarded – undo
1296 1296
 	/**
1297 1297
 	 * @param string $sep
1298 1298
 	 * @param int $flags
1299
-	 * @param string|PPNode_DOM|DOMDocument $args,...
1300 1299
 	 * @return string
1301 1300
 	 */
1302 1301
 	public function implodeWithFlags( $sep, $flags /*, ... */ ) {
@@ -1328,7 +1327,6 @@  discard block
 block discarded – undo
1328 1327
 	 * This previously called implodeWithFlags but has now been inlined to reduce stack depth
1329 1328
 	 *
1330 1329
 	 * @param string $sep
1331
-	 * @param string|PPNode_DOM|DOMDocument $args,...
1332 1330
 	 * @return string
1333 1331
 	 */
1334 1332
 	public function implode( $sep /*, ... */ ) {
@@ -1360,7 +1358,6 @@  discard block
 block discarded – undo
1360 1358
 	 * with implode()
1361 1359
 	 *
1362 1360
 	 * @param string $sep
1363
-	 * @param string|PPNode_DOM|DOMDocument $args,...
1364 1361
 	 * @return array
1365 1362
 	 */
1366 1363
 	public function virtualImplode( $sep /*, ... */ ) {
@@ -1392,7 +1389,6 @@  discard block
 block discarded – undo
1392 1389
 	 * @param string $start
1393 1390
 	 * @param string $sep
1394 1391
 	 * @param string $end
1395
-	 * @param string|PPNode_DOM|DOMDocument $args,...
1396 1392
 	 * @return array
1397 1393
 	 */
1398 1394
 	public function virtualBracketedImplode( $start, $sep, $end /*, ... */ ) {
@@ -1526,7 +1522,7 @@  discard block
 block discarded – undo
1526 1522
 	/**
1527 1523
 	 * Get the TTL
1528 1524
 	 *
1529
-	 * @return int|null
1525
+	 * @return integer
1530 1526
 	 */
1531 1527
 	public function getTTL() {
1532 1528
 		return $this->ttl;
@@ -1551,7 +1547,7 @@  discard block
 block discarded – undo
1551 1547
 
1552 1548
 	/**
1553 1549
 	 * @param Preprocessor $preprocessor
1554
-	 * @param bool|PPFrame_DOM $parent
1550
+	 * @param PPFrame_DOM $parent
1555 1551
 	 * @param array $numberedArgs
1556 1552
 	 * @param array $namedArgs
1557 1553
 	 * @param bool|Title $title
@@ -1646,6 +1642,9 @@  discard block
 block discarded – undo
1646 1642
 		return $arguments;
1647 1643
 	}
1648 1644
 
1645
+	/**
1646
+	 * @param string $index
1647
+	 */
1649 1648
 	public function getNumberedArgument( $index ) {
1650 1649
 		if ( !isset( $this->numberedArgs[$index] ) ) {
1651 1650
 			return false;
@@ -1660,6 +1659,9 @@  discard block
 block discarded – undo
1660 1659
 		return $this->numberedExpansionCache[$index];
1661 1660
 	}
1662 1661
 
1662
+	/**
1663
+	 * @param string $name
1664
+	 */
1663 1665
 	public function getNamedArgument( $name ) {
1664 1666
 		if ( !isset( $this->namedArgs[$name] ) ) {
1665 1667
 			return false;
@@ -1710,6 +1712,9 @@  discard block
 block discarded – undo
1710 1712
 
1711 1713
 	public $args;
1712 1714
 
1715
+	/**
1716
+	 * @param Preprocessor_DOM $preprocessor
1717
+	 */
1713 1718
 	public function __construct( $preprocessor, $args ) {
1714 1719
 		parent::__construct( $preprocessor );
1715 1720
 		$this->args = $args;
@@ -1813,7 +1818,7 @@  discard block
 block discarded – undo
1813 1818
 	/**
1814 1819
 	 * @param string $type
1815 1820
 	 *
1816
-	 * @return bool|PPNode_DOM
1821
+	 * @return PPNode_DOM
1817 1822
 	 */
1818 1823
 	public function getChildrenOfType( $type ) {
1819 1824
 		return new self( $this->getXPath()->query( $type, $this->node ) );
Please login to merge, or discard this patch.
includes/parser/Preprocessor_Hash.php 1 patch
Doc Comments   +9 added lines, -7 removed lines patch added patch discarded remove patch
@@ -1184,7 +1184,6 @@  discard block
 block discarded – undo
1184 1184
 	/**
1185 1185
 	 * @param string $sep
1186 1186
 	 * @param int $flags
1187
-	 * @param string|PPNode $args,...
1188 1187
 	 * @return string
1189 1188
 	 */
1190 1189
 	public function implodeWithFlags( $sep, $flags /*, ... */ ) {
@@ -1215,7 +1214,6 @@  discard block
 block discarded – undo
1215 1214
 	 * Implode with no flags specified
1216 1215
 	 * This previously called implodeWithFlags but has now been inlined to reduce stack depth
1217 1216
 	 * @param string $sep
1218
-	 * @param string|PPNode $args,...
1219 1217
 	 * @return string
1220 1218
 	 */
1221 1219
 	public function implode( $sep /*, ... */ ) {
@@ -1247,7 +1245,6 @@  discard block
 block discarded – undo
1247 1245
 	 * with implode()
1248 1246
 	 *
1249 1247
 	 * @param string $sep
1250
-	 * @param string|PPNode $args,...
1251 1248
 	 * @return PPNode_Hash_Array
1252 1249
 	 */
1253 1250
 	public function virtualImplode( $sep /*, ... */ ) {
@@ -1280,7 +1277,6 @@  discard block
 block discarded – undo
1280 1277
 	 * @param string $start
1281 1278
 	 * @param string $sep
1282 1279
 	 * @param string $end
1283
-	 * @param string|PPNode $args,...
1284 1280
 	 * @return PPNode_Hash_Array
1285 1281
 	 */
1286 1282
 	public function virtualBracketedImplode( $start, $sep, $end /*, ... */ ) {
@@ -1423,7 +1419,7 @@  discard block
 block discarded – undo
1423 1419
 	/**
1424 1420
 	 * Get the TTL
1425 1421
 	 *
1426
-	 * @return int|null
1422
+	 * @return integer
1427 1423
 	 */
1428 1424
 	public function getTTL() {
1429 1425
 		return $this->ttl;
@@ -1443,7 +1439,7 @@  discard block
 block discarded – undo
1443 1439
 
1444 1440
 	/**
1445 1441
 	 * @param Preprocessor $preprocessor
1446
-	 * @param bool|PPFrame $parent
1442
+	 * @param PPFrame_Hash $parent
1447 1443
 	 * @param array $numberedArgs
1448 1444
 	 * @param array $namedArgs
1449 1445
 	 * @param bool|Title $title
@@ -1623,6 +1619,9 @@  discard block
 block discarded – undo
1623 1619
 
1624 1620
 	public $args;
1625 1621
 
1622
+	/**
1623
+	 * @param Preprocessor_Hash $preprocessor
1624
+	 */
1626 1625
 	public function __construct( $preprocessor, $args ) {
1627 1626
 		parent::__construct( $preprocessor );
1628 1627
 		$this->args = $args;
@@ -1838,7 +1837,7 @@  discard block
 block discarded – undo
1838 1837
 	 * Split an "<h>" node
1839 1838
 	 *
1840 1839
 	 * @throws MWException
1841
-	 * @return array
1840
+	 * @return string
1842 1841
 	 */
1843 1842
 	public function splitHeading() {
1844 1843
 		if ( $this->name !== 'h' ) {
@@ -2020,6 +2019,9 @@  discard block
 block discarded – undo
2020 2019
 
2021 2020
 	public $name, $value, $nextSibling;
2022 2021
 
2022
+	/**
2023
+	 * @param string $name
2024
+	 */
2023 2025
 	public function __construct( $name, $value ) {
2024 2026
 		$this->name = $name;
2025 2027
 		$this->value = $value;
Please login to merge, or discard this patch.
includes/parser/StripState.php 1 patch
Doc Comments   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -87,7 +87,7 @@  discard block
 block discarded – undo
87 87
 
88 88
 	/**
89 89
 	 * @param string $text
90
-	 * @return mixed
90
+	 * @return string
91 91
 	 */
92 92
 	public function unstripGeneral( $text ) {
93 93
 		return $this->unstripType( 'general', $text );
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
 
96 96
 	/**
97 97
 	 * @param string $text
98
-	 * @return mixed
98
+	 * @return string
99 99
 	 */
100 100
 	public function unstripNoWiki( $text ) {
101 101
 		return $this->unstripType( 'nowiki', $text );
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
 
104 104
 	/**
105 105
 	 * @param string $text
106
-	 * @return mixed
106
+	 * @return string
107 107
 	 */
108 108
 	public function unstripBoth( $text ) {
109 109
 		$text = $this->unstripType( 'general', $text );
@@ -114,7 +114,7 @@  discard block
 block discarded – undo
114 114
 	/**
115 115
 	 * @param string $type
116 116
 	 * @param string $text
117
-	 * @return mixed
117
+	 * @return string
118 118
 	 */
119 119
 	protected function unstripType( $type, $text ) {
120 120
 		// Shortcut
@@ -204,7 +204,7 @@  discard block
 block discarded – undo
204 204
 	 *
205 205
 	 * @param StripState $otherState
206 206
 	 * @param array $texts
207
-	 * @return array
207
+	 * @return string[]
208 208
 	 */
209 209
 	public function merge( $otherState, $texts ) {
210 210
 		$mergePrefix = wfRandomString( 16 );
Please login to merge, or discard this patch.
includes/poolcounter/PoolCounterWork.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
 
48 48
 	/**
49 49
 	 * Retrieve the work from cache
50
-	 * @return mixed Work result or false
50
+	 * @return boolean Work result or false
51 51
 	 */
52 52
 	public function getCachedWork() {
53 53
 		return false;
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
 	/**
57 57
 	 * A work not so good (eg. expired one) but better than an error
58 58
 	 * message.
59
-	 * @return mixed Work result or false
59
+	 * @return boolean Work result or false
60 60
 	 */
61 61
 	public function fallback() {
62 62
 		return false;
Please login to merge, or discard this patch.
includes/Preferences.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -1084,6 +1084,7 @@
 block discarded – undo
1084 1084
 
1085 1085
 	/**
1086 1086
 	 * Dummy, kept for backwards-compatibility.
1087
+	 * @param User $user
1087 1088
 	 */
1088 1089
 	static function miscPreferences( $user, IContextSource $context, &$defaultPreferences ) {
1089 1090
 	}
Please login to merge, or discard this patch.
includes/PrefixSearch.php 1 patch
Doc Comments   +5 added lines, -1 removed lines patch added patch discarded remove patch
@@ -131,7 +131,7 @@  discard block
 block discarded – undo
131 131
 	 * When implemented in a descendant class, receives an array of titles as strings and returns
132 132
 	 * either an unmodified array or an array of Title objects corresponding to strings received.
133 133
 	 *
134
-	 * @param array $strings
134
+	 * @param string[] $strings
135 135
 	 *
136 136
 	 * @return array
137 137
 	 */
@@ -164,6 +164,10 @@  discard block
 block discarded – undo
164 164
 		return $this->strings( $this->handleResultFromHook( $srchres, $namespaces, $search, $limit ) );
165 165
 	}
166 166
 
167
+	/**
168
+	 * @param string $search
169
+	 * @param integer $limit
170
+	 */
167 171
 	private function handleResultFromHook( $srchres, $namespaces, $search, $limit ) {
168 172
 		$rescorer = new SearchExactMatchRescorer();
169 173
 		return $rescorer->rescore( $search, $namespaces, $srchres, $limit );
Please login to merge, or discard this patch.
includes/profiler/TransactionProfiler.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -102,7 +102,7 @@
 block discarded – undo
102 102
 	 * With conflicting expectations, the most narrow ones will be used
103 103
 	 *
104 104
 	 * @param array $expects Map of (event => limit)
105
-	 * @param $fname
105
+	 * @param string $fname
106 106
 	 * @since 1.26
107 107
 	 */
108 108
 	public function setExpectations( array $expects, $fname ) {
Please login to merge, or discard this patch.
includes/resourceloader/ResourceLoader.php 1 patch
Doc Comments   +6 added lines, -2 removed lines patch added patch discarded remove patch
@@ -207,6 +207,10 @@  discard block
 block discarded – undo
207 207
 		return $result;
208 208
 	}
209 209
 
210
+	/**
211
+	 * @param string $filter
212
+	 * @param string $data
213
+	 */
210 214
 	private static function applyFilter( $filter, $data ) {
211 215
 		$data = trim( $data );
212 216
 		if ( $data ) {
@@ -309,7 +313,7 @@  discard block
 block discarded – undo
309 313
 	 * @throws MWException If a duplicate module registration is attempted
310 314
 	 * @throws MWException If a module name contains illegal characters (pipes or commas)
311 315
 	 * @throws MWException If something other than a ResourceLoaderModule is being registered
312
-	 * @return bool False if there were any errors, in which case one or more modules were
316
+	 * @return boolean|null False if there were any errors, in which case one or more modules were
313 317
 	 *   not registered
314 318
 	 */
315 319
 	public function register( $name, $info = null ) {
@@ -572,7 +576,7 @@  discard block
 block discarded – undo
572 576
 	/**
573 577
 	 * Get the list of sources.
574 578
 	 *
575
-	 * @return array Like array( id => load.php url, .. )
579
+	 * @return string Like array( id => load.php url, .. )
576 580
 	 */
577 581
 	public function getSources() {
578 582
 		return $this->sources;
Please login to merge, or discard this patch.