@@ -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 ) { |