@@ -210,7 +210,7 @@ |
||
210 | 210 | } |
211 | 211 | |
212 | 212 | /** |
213 | - * @param array $data |
|
213 | + * @param string $data |
|
214 | 214 | * @return bool|array |
215 | 215 | */ |
216 | 216 | function getImageInfo( $data ) { |
@@ -207,6 +207,10 @@ discard block |
||
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 |
||
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 ) { |
@@ -573,7 +577,7 @@ discard block |
||
573 | 577 | /** |
574 | 578 | * Get the list of sources. |
575 | 579 | * |
576 | - * @return array Like [ id => load.php url, ... ] |
|
580 | + * @return string Like [ id => load.php url, ... ] |
|
577 | 581 | */ |
578 | 582 | public function getSources() { |
579 | 583 | return $this->sources; |
@@ -610,7 +614,7 @@ discard block |
||
610 | 614 | * |
611 | 615 | * @since 1.26 |
612 | 616 | * @param ResourceLoaderContext $context |
613 | - * @param string[] $modules List of known module names |
|
617 | + * @param string[] $moduleNames List of known module names |
|
614 | 618 | * @return string Hash |
615 | 619 | */ |
616 | 620 | public function getCombinedVersion( ResourceLoaderContext $context, array $moduleNames ) { |
@@ -634,7 +638,6 @@ discard block |
||
634 | 638 | * |
635 | 639 | * @since 1.28 |
636 | 640 | * @param ResourceLoaderContext $context |
637 | - * @param string[] $modules List of module names |
|
638 | 641 | * @return string Hash |
639 | 642 | */ |
640 | 643 | public function getExpectedVersionQuery( ResourceLoaderContext $context ) { |
@@ -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; |
@@ -31,6 +31,9 @@ |
||
31 | 31 | /** @var string */ |
32 | 32 | protected $mData; |
33 | 33 | |
34 | + /** |
|
35 | + * @param string $data |
|
36 | + */ |
|
34 | 37 | function __construct( $data ) { |
35 | 38 | $this->mData = $data; |
36 | 39 | } |
@@ -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 ) { |