Skip to content

Commit

Permalink
refactor(core): ♻️ use MW namespaced classes
Browse files Browse the repository at this point in the history
  • Loading branch information
alistair3149 committed Jan 2, 2025
1 parent 9fe4d1f commit 4e5124d
Show file tree
Hide file tree
Showing 10 changed files with 19 additions and 19 deletions.
6 changes: 3 additions & 3 deletions includes/Api/ApiWebappManifest.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,13 @@

namespace MediaWiki\Skins\Citizen\Api;

use ApiBase;
use ApiMain;
use Exception;
use MediaWiki\Api\ApiBase;
use MediaWiki\Api\ApiMain;
use MediaWiki\MainConfigNames;
use MediaWiki\MediaWikiServices;
use MediaWiki\SpecialPage\SpecialPage;
use MediaWiki\Title\Title;
use SpecialPage;

/**
* Based on the MobileFrontend extension
Expand Down
2 changes: 1 addition & 1 deletion includes/Api/ApiWebappManifestFormatJson.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

namespace MediaWiki\Skins\Citizen\Api;

use ApiFormatJson;
use MediaWiki\Api\ApiFormatJson;

/**
* T282500
Expand Down
4 changes: 2 additions & 2 deletions includes/Components/CitizenComponentPageSidebar.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@

namespace MediaWiki\Skins\Citizen\Components;

use Language;
use MediaWiki\Language\Language;
use MediaWiki\Output\OutputPage;
use MediaWiki\StubObject\StubUserLang;
use MediaWiki\Title\Title;
use MediaWiki\User\UserIdentity;
use MessageLocalizer;
use OutputPage;

/**
* CitizenComponentPageSidebar component
Expand Down
2 changes: 1 addition & 1 deletion includes/Components/CitizenComponentPageTools.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@

namespace MediaWiki\Skins\Citizen\Components;

use Config;
use Exception;
use MediaWiki\MediaWikiServices;
use MediaWiki\Config\Config;
use MediaWiki\Title\Title;
use MediaWiki\User\UserIdentity;
use MessageLocalizer;
Expand Down
2 changes: 1 addition & 1 deletion includes/Components/CitizenComponentSearchBox.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

namespace MediaWiki\Skins\Citizen\Components;

use ExtensionRegistry;
use MediaWiki\Registration\ExtensionRegistry;
use MediaWiki\Skin\SkinComponentUtils;
use MessageLocalizer;

Expand Down
6 changes: 3 additions & 3 deletions includes/Components/CitizenComponentSiteStats.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@

namespace MediaWiki\Skins\Citizen\Components;

use Config;
use IntlException;
use Language;
use MediaWiki\Config\Config;
use MediaWiki\Language\Language;
use MediaWiki\SiteStats\SiteStats;
use MediaWiki\StubObject\StubUserLang;
use MessageLocalizer;
use NumberFormatter;
use SiteStats;

/**
* CitizenComponentSiteStats component
Expand Down
2 changes: 1 addition & 1 deletion includes/Components/CitizenComponentUserInfo.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@

namespace MediaWiki\Skins\Citizen\Components;

use MalformedTitleException;
use MediaWiki\MediaWikiServices;
use MediaWiki\Title\MalformedTitleException;
use MediaWiki\Title\Title;
use MediaWiki\User\UserIdentity;
use MessageLocalizer;
Expand Down
4 changes: 2 additions & 2 deletions includes/GetConfigTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@

namespace MediaWiki\Skins\Citizen;

use ConfigException;
use OutputPage;
use MediaWiki\Config\ConfigException;
use MediaWiki\Output\OutputPage;

trait GetConfigTrait {

Expand Down
4 changes: 2 additions & 2 deletions includes/Hooks/ResourceLoaderHooks.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@

namespace MediaWiki\Skins\Citizen\Hooks;

use Config;
use ExtensionRegistry;
use MediaWiki\MainConfigNames;
use MediaWiki\ResourceLoader as RL;
use MediaWiki\Config\Config;
use MediaWiki\Registration\ExtensionRegistry;

/**
* Hooks to run relating to the resource loader
Expand Down
6 changes: 3 additions & 3 deletions includes/Hooks/SkinHooks.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,19 +25,19 @@

namespace MediaWiki\Skins\Citizen\Hooks;

use ExtensionRegistry;
use Language;
use MediaWiki\Language\Language;
use MediaWiki\Hook\BeforePageDisplayHook;
use MediaWiki\Hook\SidebarBeforeOutputHook;
use MediaWiki\Hook\SkinBuildSidebarHook;
use MediaWiki\Hook\SkinEditSectionLinksHook;
use MediaWiki\Html\Html;
use MediaWiki\ResourceLoader as RL;
use MediaWiki\Registration\ExtensionRegistry;
use MediaWiki\Skin\SkinComponentUtils;
use MediaWiki\Skins\Citizen\GetConfigTrait;
use MediaWiki\Skins\Hook\SkinPageReadyConfigHook;
use MediaWiki\Title\Title;
use OutputPage;
use MediaWiki\Output\OutputPage;
use Skin;
use SkinTemplate;

Expand Down

0 comments on commit 4e5124d

Please sign in to comment.