Pass-by-reference is not needed

https://secure.php.net/manual/en/language.oop5.references.php

Change-Id: I6730b8e4326abf304f102fe5c50041342e3a70a1
This commit is contained in:
Siebrand Mazeland
2016-03-05 16:14:28 +01:00
parent 49b4cc0028
commit 12abc7daca

View File

@@ -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 (