Pass-by-reference is not needed
https://secure.php.net/manual/en/language.oop5.references.php Change-Id: I6730b8e4326abf304f102fe5c50041342e3a70a1
This commit is contained in:
@@ -110,7 +110,7 @@ class UniversalLanguageSelectorHooks {
|
|||||||
* @return bool
|
* @return bool
|
||||||
* Hook: ResourceLoaderTestModules
|
* Hook: ResourceLoaderTestModules
|
||||||
*/
|
*/
|
||||||
public static function addTestModules( array &$testModules, ResourceLoader &$resourceLoader ) {
|
public static function addTestModules( array &$testModules, ResourceLoader $resourceLoader ) {
|
||||||
$testModules['qunit']['ext.uls.tests'] = array(
|
$testModules['qunit']['ext.uls.tests'] = array(
|
||||||
'scripts' => array( 'tests/qunit/ext.uls.tests.js' ),
|
'scripts' => array( 'tests/qunit/ext.uls.tests.js' ),
|
||||||
'dependencies' => array( 'jquery.uls', 'ext.uls.init', 'ext.uls.preferences' ),
|
'dependencies' => array( 'jquery.uls', 'ext.uls.init', 'ext.uls.preferences' ),
|
||||||
@@ -357,8 +357,8 @@ class UniversalLanguageSelectorHooks {
|
|||||||
* @param QuickTemplate $template
|
* @param QuickTemplate $template
|
||||||
* @return bool
|
* @return bool
|
||||||
*/
|
*/
|
||||||
public static function onSkinTemplateOutputPageBeforeExec( Skin &$skin,
|
public static function onSkinTemplateOutputPageBeforeExec( Skin $skin,
|
||||||
QuickTemplate &$template
|
QuickTemplate $template
|
||||||
) {
|
) {
|
||||||
global $wgULSPosition;
|
global $wgULSPosition;
|
||||||
|
|
||||||
@@ -403,7 +403,7 @@ class UniversalLanguageSelectorHooks {
|
|||||||
* @param ResourceLoader $resourceLoader
|
* @param ResourceLoader $resourceLoader
|
||||||
* @return boolean true
|
* @return boolean true
|
||||||
*/
|
*/
|
||||||
public static function onResourceLoaderRegisterModules( ResourceLoader &$resourceLoader ) {
|
public static function onResourceLoaderRegisterModules( ResourceLoader $resourceLoader ) {
|
||||||
global $wgResourceModules, $wgULSEventLogging;
|
global $wgResourceModules, $wgULSEventLogging;
|
||||||
|
|
||||||
if (
|
if (
|
||||||
|
|||||||
Reference in New Issue
Block a user