mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Popups
synced 2024-11-15 03:34:03 +00:00
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:
parent
8469e87426
commit
f3d415fd27
|
@ -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() ) ) {
|
||||
|
|
Loading…
Reference in a new issue