@@ -198,6 +198,12 @@ |
||
198 | 198 | class ProtectedTitlesPager extends AlphabeticPager { |
199 | 199 | public $mForm, $mConds; |
200 | 200 | |
201 | + /** |
|
202 | + * @param SpecialProtectedtitles $form |
|
203 | + * @param null|string $type |
|
204 | + * @param null|string $level |
|
205 | + * @param integer|null $namespace |
|
206 | + */ |
|
201 | 207 | function __construct( $form, $conds = array(), $type, $level, $namespace, |
202 | 208 | $sizetype = '', $size = 0 |
203 | 209 | ) { |
@@ -128,7 +128,7 @@ |
||
128 | 128 | /** |
129 | 129 | * Generates the subheading with links |
130 | 130 | * @param User $userObj User object for the target |
131 | - * @return string Appropriately-escaped HTML to be output literally |
|
131 | + * @return Message Appropriately-escaped HTML to be output literally |
|
132 | 132 | * @todo FIXME: Almost the same as contributionsSub in SpecialContributions.php. Could be combined. |
133 | 133 | */ |
134 | 134 | function getSubTitle( $userObj ) { |
@@ -56,6 +56,7 @@ discard block |
||
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(); |
@@ -84,7 +85,7 @@ discard block |
||
84 | 85 | * |
85 | 86 | * @param string $text |
86 | 87 | * @param int $flags |
87 | - * @return PPNode_Hash_Tree|bool |
|
88 | + * @return false|string |
|
88 | 89 | */ |
89 | 90 | protected function cacheGetTree( $text, $flags ) { |
90 | 91 | $config = RequestContext::getMain()->getConfig(); |
@@ -128,7 +129,7 @@ discard block |
||
128 | 129 | * Create a new custom frame for programmatic use of parameter replacement |
129 | 130 | * as used in some extensions. |
130 | 131 | * |
131 | - * @param array $args |
|
132 | + * @param boolean $args |
|
132 | 133 | * |
133 | 134 | * @return PPFrame |
134 | 135 | */ |
@@ -182,7 +183,7 @@ discard block |
||
182 | 183 | |
183 | 184 | /** |
184 | 185 | * Expand a document tree node, caching the result on its parent with the given key |
185 | - * @param string|int $key |
|
186 | + * @param string $key |
|
186 | 187 | * @param string|PPNode $root |
187 | 188 | * @param int $flags |
188 | 189 | * @return string |
@@ -201,7 +202,6 @@ discard block |
||
201 | 202 | * Implode with flags for expand() |
202 | 203 | * @param string $sep |
203 | 204 | * @param int $flags |
204 | - * @param string|PPNode $args,... |
|
205 | 205 | * @return string |
206 | 206 | */ |
207 | 207 | public function implodeWithFlags( $sep, $flags /*, ... */ ); |
@@ -209,7 +209,6 @@ discard block |
||
209 | 209 | /** |
210 | 210 | * Implode with no flags specified |
211 | 211 | * @param string $sep |
212 | - * @param string|PPNode $args,... |
|
213 | 212 | * @return string |
214 | 213 | */ |
215 | 214 | public function implode( $sep /*, ... */ ); |
@@ -218,7 +217,6 @@ discard block |
||
218 | 217 | * Makes an object that, when expand()ed, will be the same as one obtained |
219 | 218 | * with implode() |
220 | 219 | * @param string $sep |
221 | - * @param string|PPNode $args,... |
|
222 | 220 | * @return PPNode |
223 | 221 | */ |
224 | 222 | public function virtualImplode( $sep /*, ... */ ); |
@@ -228,7 +226,6 @@ discard block |
||
228 | 226 | * @param string $start |
229 | 227 | * @param string $sep |
230 | 228 | * @param string $end |
231 | - * @param string|PPNode $args,... |
|
232 | 229 | * @return PPNode |
233 | 230 | */ |
234 | 231 | public function virtualBracketedImplode( $start, $sep, $end /*, ... */ ); |
@@ -260,7 +257,7 @@ discard block |
||
260 | 257 | |
261 | 258 | /** |
262 | 259 | * Get an argument to this frame by name |
263 | - * @param int|string $name |
|
260 | + * @param string $name |
|
264 | 261 | * @return string|bool |
265 | 262 | */ |
266 | 263 | public function getArgument( $name ); |
@@ -289,6 +286,7 @@ discard block |
||
289 | 286 | * to respect it, and it may be removed in the future. |
290 | 287 | * |
291 | 288 | * @param bool $flag |
289 | + * @return void |
|
292 | 290 | */ |
293 | 291 | public function setVolatile( $flag = true ); |
294 | 292 | |
@@ -325,6 +323,7 @@ discard block |
||
325 | 323 | * |
326 | 324 | * @see self::getTTL() |
327 | 325 | * @param int $ttl |
326 | + * @return void |
|
328 | 327 | */ |
329 | 328 | public function setTTL( $ttl ); |
330 | 329 |
@@ -53,7 +53,6 @@ discard block |
||
53 | 53 | * This function creates a 'increment' StatsdData object. |
54 | 54 | * |
55 | 55 | * @param string|array $key The metric(s) to increment. |
56 | - * @param float|1 $sampleRate The rate (0-1) for sampling. |
|
57 | 56 | * |
58 | 57 | * @return array |
59 | 58 | **/ |
@@ -66,7 +65,6 @@ discard block |
||
66 | 65 | * |
67 | 66 | * |
68 | 67 | * @param string|array $key The metric(s) to decrement. |
69 | - * @param float|1 $sampleRate The rate (0-1) for sampling. |
|
70 | 68 | * |
71 | 69 | * @return mixed |
72 | 70 | **/ |
@@ -43,7 +43,7 @@ |
||
43 | 43 | * @since 1.16.3 |
44 | 44 | * @throws MWException |
45 | 45 | * @param string $collationName |
46 | - * @return Collation |
|
46 | + * @return string |
|
47 | 47 | */ |
48 | 48 | public static function factory( $collationName ) { |
49 | 49 | switch ( $collationName ) { |
@@ -39,7 +39,7 @@ |
||
39 | 39 | * instead. |
40 | 40 | * |
41 | 41 | * @param null $sitesTable IGNORED |
42 | - * @param null $cache IGNORED |
|
42 | + * @param null|BagOStuff $cache IGNORED |
|
43 | 43 | * |
44 | 44 | * @return SiteStore |
45 | 45 | */ |
@@ -112,6 +112,9 @@ |
||
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; |
@@ -30,6 +30,9 @@ |
||
30 | 30 | } |
31 | 31 | } |
32 | 32 | |
33 | + /** |
|
34 | + * @param string $name |
|
35 | + */ |
|
33 | 36 | function __call( $name, array $arguments ) { |
34 | 37 | if ( $this->conn === null ) { |
35 | 38 | list( $db, $groups, $wiki ) = $this->params; |
@@ -39,7 +39,7 @@ discard block |
||
39 | 39 | * @param array $data Array of *non*-urlencoded key => value pairs, the |
40 | 40 | * fake GET/POST values |
41 | 41 | * @param bool $wasPosted Whether to treat the data as POST |
42 | - * @param MediaWiki\Session\Session|array|null $session Session, session |
|
42 | + * @param MediaWiki\Session\Session|null $session Session, session |
|
43 | 43 | * data array, or null |
44 | 44 | * @param string $protocol 'http' or 'https' |
45 | 45 | * @throws MWException |
@@ -126,7 +126,6 @@ discard block |
||
126 | 126 | |
127 | 127 | /** |
128 | 128 | * @since 1.26 |
129 | - * @param string $name Unprefixed name of the cookie to set |
|
130 | 129 | * @param string|null $value Value of the cookie to set |
131 | 130 | * @param string|null $prefix Cookie prefix. Defaults to $wgCookiePrefix |
132 | 131 | */ |
@@ -152,6 +151,7 @@ discard block |
||
152 | 151 | |
153 | 152 | /** |
154 | 153 | * @since 1.25 |
154 | + * @param string $url |
|
155 | 155 | */ |
156 | 156 | public function setRequestURL( $url ) { |
157 | 157 | $this->requestUrl = $url; |