From e46eef19d06bb41545f608696f5d9f456ca4edab Mon Sep 17 00:00:00 2001 From: Mo Abualruz Date: Mon, 23 May 2022 09:32:40 +0200 Subject: [PATCH] Normalise PHP namespaces used in Vector - `MediaWiki\Skins\Vector\Tests` is now the prefix for all tests in the skin - we followed PSR conventions of following folder structure after the prefix - Optimize imports/use order - update namespace in skin.json Bug: T303102 Change-Id: Ib76374d81d973c83adfd6c8e7863ff6d797e655d --- includes/Constants.php | 2 +- includes/FeatureManagement/FeatureManager.php | 6 +++--- includes/FeatureManagement/Requirement.php | 4 ++-- .../Requirements/DynamicConfigRequirement.php | 6 +++--- .../OverridableConfigRequirement.php | 6 +++--- .../Requirements/SimpleRequirement.php | 6 +++--- includes/Hooks.php | 2 +- .../VectorResourceLoaderUserModule.php | 4 ++-- .../VectorResourceLoaderUserStylesModule.php | 4 ++-- includes/ServiceWiring.php | 8 +++---- includes/Services/LanguageService.php | 2 +- includes/SkinVector.php | 2 +- includes/SkinVector22.php | 2 +- includes/SkinVectorLegacy.php | 2 +- includes/VectorServices.php | 6 +++--- skin.json | 21 +++++++++++-------- tests/phpunit/integration/SkinVectorTest.php | 10 ++++----- tests/phpunit/integration/VectorHooksTest.php | 10 ++++----- .../FeatureManagement/FeatureManagerTest.php | 6 +++--- .../DynamicConfigRequirementTest.php | 6 +++--- .../OverridableConfigRequirementTest.php | 8 +++---- 21 files changed, 63 insertions(+), 60 deletions(-) diff --git a/includes/Constants.php b/includes/Constants.php index 314d3e82d..7338ae287 100644 --- a/includes/Constants.php +++ b/includes/Constants.php @@ -1,5 +1,5 @@ static function ( MediaWikiServices $services ) { diff --git a/includes/Services/LanguageService.php b/includes/Services/LanguageService.php index c750977ee..0bfeb5d5f 100644 --- a/includes/Services/LanguageService.php +++ b/includes/Services/LanguageService.php @@ -1,6 +1,6 @@