Remove object passed by references to method

-> Objects by default as passed by reference so removed & in front
   method header.

In addition, updated the PHPDoc comments to reflect the changes.

Change-Id: I69ad2090205f6bd694744779d2c46a3506c85378
This commit is contained in:
Derick Alangi 2019-02-25 19:52:28 +01:00 committed by Thiemo Kreuz (WMDE)
parent 8469e87426
commit f3d415fd27

View file

@ -79,10 +79,10 @@ class PopupsHooks {
/**
* Allows last minute changes to the output page, e.g. adding of CSS or JavaScript by extensions.
*
* @param OutputPage &$out The Output page object
* @param Skin &$skin &Skin object that will be used to generate the page
* @param OutputPage $out The Output page object
* @param Skin $skin Skin object that will be used to generate the page
*/
public static function onBeforePageDisplay( OutputPage &$out, Skin &$skin ) {
public static function onBeforePageDisplay( OutputPage $out, Skin $skin ) {
/** @var PopupsContext $context */
$context = MediaWikiServices::getInstance()->getService( 'Popups.Context' );
if ( $context->isTitleBlacklisted( $out->getTitle() ) ) {