@@ -296,7 +296,7 @@ discard block |
||
| 296 | 296 | * |
| 297 | 297 | * Omit noarticletext if sharedupload; text will be fetched from the |
| 298 | 298 | * shared upload server if possible. |
| 299 | - * @return string |
|
| 299 | + * @return null|Content |
|
| 300 | 300 | */ |
| 301 | 301 | public function getContentObject() { |
| 302 | 302 | $this->loadFile(); |
@@ -637,7 +637,7 @@ discard block |
||
| 637 | 637 | * Make the text under the image to say what size preview |
| 638 | 638 | * |
| 639 | 639 | * @param $params array parameters for thumbnail |
| 640 | - * @param $sizeLinkBigImagePreview HTML for the current size |
|
| 640 | + * @param string $sizeLinkBigImagePreview HTML for the current size |
|
| 641 | 641 | * @return string HTML output |
| 642 | 642 | */ |
| 643 | 643 | private function getThumbPrevText( $params, $sizeLinkBigImagePreview ) { |
@@ -1212,7 +1212,7 @@ discard block |
||
| 1212 | 1212 | |
| 1213 | 1213 | /** |
| 1214 | 1214 | * @see WikiFilePage::getFile |
| 1215 | - * @return bool|File |
|
| 1215 | + * @return string |
|
| 1216 | 1216 | */ |
| 1217 | 1217 | public function getFile() { |
| 1218 | 1218 | return $this->mPage->getFile(); |
@@ -647,7 +647,7 @@ |
||
| 647 | 647 | /** |
| 648 | 648 | * @param string $url |
| 649 | 649 | * @param IContextSource $context |
| 650 | - * @return string|bool Either "local" or "remote" if in the farm, false otherwise |
|
| 650 | + * @return false|string Either "local" or "remote" if in the farm, false otherwise |
|
| 651 | 651 | */ |
| 652 | 652 | private function getUrlDomainDistance( $url, IContextSource $context ) { |
| 653 | 653 | static $relevantKeys = [ 'host' => true, 'port' => true ]; |
@@ -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 ) { |