Improve PHP code

* Remove lost comment.
* Improve order of calls.

Change-Id: I83a63dd08cd9b355afbfff4361ba2dfcc19c8a0c
This commit is contained in:
Fomafix 2024-04-16 08:35:08 +00:00
parent b99750e503
commit 07888b12b2

View file

@ -105,7 +105,6 @@ class PopupsContext {
* @param PopupsGadgetsIntegration $gadgetsIntegration Gadgets integration helper * @param PopupsGadgetsIntegration $gadgetsIntegration Gadgets integration helper
* @param SpecialPageFactory $specialPageFactory * @param SpecialPageFactory $specialPageFactory
* @param UserOptionsLookup $userOptionsLookup * @param UserOptionsLookup $userOptionsLookup
* events
*/ */
public function __construct( public function __construct(
Config $config, Config $config,
@ -114,12 +113,11 @@ class PopupsContext {
SpecialPageFactory $specialPageFactory, SpecialPageFactory $specialPageFactory,
UserOptionsLookup $userOptionsLookup UserOptionsLookup $userOptionsLookup
) { ) {
$this->config = $config;
$this->extensionRegistry = $extensionRegistry; $this->extensionRegistry = $extensionRegistry;
$this->gadgetsIntegration = $gadgetsIntegration; $this->gadgetsIntegration = $gadgetsIntegration;
$this->specialPageFactory = $specialPageFactory; $this->specialPageFactory = $specialPageFactory;
$this->userOptionsLookup = $userOptionsLookup; $this->userOptionsLookup = $userOptionsLookup;
$this->config = $config;
} }
/** /**