Minor code cleanups in Hooks class

Change-Id: Ied3d5241df04b3fd070319070c0addfd3856e3bf
This commit is contained in:
thiemowmde 2023-11-16 13:58:52 +01:00
parent 7d010a616f
commit 10a43a9ae3

View file

@ -42,8 +42,7 @@ class Hooks implements
OutputPageBeforeHTMLHook
{
/** @var Config */
private $config;
private Config $config;
public function __construct( Config $mainConfig ) {
$this->config = $mainConfig;
@ -80,7 +79,7 @@ class Hooks implements
$name = 'jquery.uls.data';
if ( !isset( $resourceModules[$name] ) && !$resourceLoader->isModuleRegistered( $name ) ) {
$resourceLoader->register( [
'jquery.uls.data' => [
$name => [
'localBasePath' => dirname( __DIR__ ),
'remoteExtPath' => 'TemplateData',
'scripts' => [