@@ -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; |
@@ -4,6 +4,9 @@ |
||
4 | 4 | $is_pk, $is_unique, $is_multiple, $is_key, $type, $binary, |
5 | 5 | $is_numeric, $is_blob, $is_unsigned, $is_zerofill; |
6 | 6 | |
7 | + /** |
|
8 | + * @param stdClass $info |
|
9 | + */ |
|
7 | 10 | function __construct( $info ) { |
8 | 11 | $this->name = $info->name; |
9 | 12 | $this->tablename = $info->table; |
@@ -2,6 +2,9 @@ |
||
2 | 2 | class SQLiteField implements Field { |
3 | 3 | private $info, $tableName; |
4 | 4 | |
5 | + /** |
|
6 | + * @param string $tableName |
|
7 | + */ |
|
5 | 8 | function __construct( $info, $tableName ) { |
6 | 9 | $this->info = $info; |
7 | 10 | $this->tableName = $tableName; |
@@ -102,7 +102,7 @@ |
||
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 ) { |
@@ -93,7 +93,7 @@ |
||
93 | 93 | } |
94 | 94 | |
95 | 95 | /** |
96 | - * @param DatabaseDomain|string $other |
|
96 | + * @param boolean $other |
|
97 | 97 | * @return bool |
98 | 98 | */ |
99 | 99 | public function equals( $other ) { |
@@ -390,7 +390,7 @@ |
||
390 | 390 | } |
391 | 391 | |
392 | 392 | /** |
393 | - * @param DatabaseDomain|string|bool $domain Domain ID, or false for the current domain |
|
393 | + * @param boolean|string $domain Domain ID, or false for the current domain |
|
394 | 394 | * @return array [database name, table prefix] |
395 | 395 | */ |
396 | 396 | private function getDBNameAndPrefix( $domain = false ) { |
@@ -88,7 +88,7 @@ discard block |
||
88 | 88 | * 1 => object(StatusValue) # The StatusValue with warning messages, only |
89 | 89 | * ] |
90 | 90 | * |
91 | - * @return array |
|
91 | + * @return StatusValue[] |
|
92 | 92 | */ |
93 | 93 | public function splitByErrorType() { |
94 | 94 | $errorsOnlyStatusValue = clone $this; |
@@ -246,7 +246,7 @@ discard block |
||
246 | 246 | /** |
247 | 247 | * Returns true if the specified message is present as a warning or error |
248 | 248 | * |
249 | - * @param string|MessageSpecifier $message Message key or object to search for |
|
249 | + * @param string $message Message key or object to search for |
|
250 | 250 | * |
251 | 251 | * @return bool |
252 | 252 | */ |
@@ -274,8 +274,8 @@ discard block |
||
274 | 274 | * Note, due to the lack of tools for comparing IStatusMessage objects, this |
275 | 275 | * function will not work when using such an object as the search parameter. |
276 | 276 | * |
277 | - * @param MessageSpecifier|string $source Message key or object to search for |
|
278 | - * @param MessageSpecifier|string $dest Replacement message key or object |
|
277 | + * @param string $source Message key or object to search for |
|
278 | + * @param string $dest Replacement message key or object |
|
279 | 279 | * @return bool Return true if the replacement was done, false otherwise. |
280 | 280 | */ |
281 | 281 | public function replaceMessage( $source, $dest ) { |
@@ -113,7 +113,7 @@ discard block |
||
113 | 113 | * 1 => object(Status) # The Status with warning messages, only |
114 | 114 | * ] |
115 | 115 | * |
116 | - * @return array |
|
116 | + * @return StatusValue[] |
|
117 | 117 | */ |
118 | 118 | public function splitByErrorType() { |
119 | 119 | list( $errorsOnlyStatus, $warningsOnlyStatus ) = parent::splitByErrorType(); |
@@ -225,7 +225,7 @@ discard block |
||
225 | 225 | * |
226 | 226 | * If both parameters are missing, and there is only one error, no bullet will be added. |
227 | 227 | * |
228 | - * @param string|string[]|bool $shortContext A message name or an array of message names. |
|
228 | + * @param string $shortContext A message name or an array of message names. |
|
229 | 229 | * @param string|string[]|bool $longContext A message name or an array of message names. |
230 | 230 | * @param string|Language $lang Language to use for processing messages |
231 | 231 | * @return Message |
@@ -317,7 +317,7 @@ discard block |
||
317 | 317 | * Borrows Recent Changes' feed generation functions for formatting; |
318 | 318 | * includes a diff to the previous revision (if any). |
319 | 319 | * |
320 | - * @param stdClass|array $row Database row |
|
320 | + * @param null|stdClass $row Database row |
|
321 | 321 | * @return FeedItem |
322 | 322 | */ |
323 | 323 | function feedItem( $row ) { |
@@ -534,6 +534,10 @@ discard block |
||
534 | 534 | return $s; |
535 | 535 | } |
536 | 536 | |
537 | + /** |
|
538 | + * @param string $name |
|
539 | + * @param string $msg |
|
540 | + */ |
|
537 | 541 | private function getRevisionButton( $name, $msg ) { |
538 | 542 | $this->preventClickjacking(); |
539 | 543 | # Note bug #20966, <button> is non-standard in IE<8 |