From 6dceb40122d3f0e90c35e0ad0d302cc63b9e2b1b Mon Sep 17 00:00:00 2001 From: Reedy Date: Wed, 11 Dec 2024 15:40:27 +0000 Subject: [PATCH] Hooks: Initialise array inline Change-Id: I13548d37faa7169951c58279c962f6c2f4f87b60 --- includes/Hooks.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/includes/Hooks.php b/includes/Hooks.php index c480aac6c..b46ca1a9e 100644 --- a/includes/Hooks.php +++ b/includes/Hooks.php @@ -234,11 +234,11 @@ class Hooks implements /** @inheritDoc */ public function onResourceLoaderRegisterModules( ResourceLoader $resourceLoader ): void { $extensionRegistry = ExtensionRegistry::getInstance(); - $messages = []; - - $messages[] = 'colon-separator'; - $messages[] = 'captcha-edit'; - $messages[] = 'captcha-label'; + $messages = [ + 'colon-separator', + 'captcha-edit', + 'captcha-label' + ]; if ( $extensionRegistry->isLoaded( 'QuestyCaptcha' ) ) { $messages[] = 'questycaptcha-edit';