Use namespaced classes

Change-Id: I9fabf791aae691dfa7d071a1d99d17f4f7379682
This commit is contained in:
Fomafix 2023-10-03 09:30:38 +00:00
parent a476b645a7
commit 8bd82c12f6
5 changed files with 13 additions and 13 deletions

View file

@ -4,9 +4,9 @@ namespace MediaWiki\Extension\CategoryTree;
use ApiBase; use ApiBase;
use ApiMain; use ApiMain;
use Config;
use ConfigFactory;
use FormatJson; use FormatJson;
use MediaWiki\Config\Config;
use MediaWiki\Config\ConfigFactory;
use MediaWiki\Languages\LanguageConverterFactory; use MediaWiki\Languages\LanguageConverterFactory;
use MediaWiki\Title\Title; use MediaWiki\Title\Title;
use WANObjectCache; use WANObjectCache;

View file

@ -27,16 +27,16 @@ namespace MediaWiki\Extension\CategoryTree;
use Exception; use Exception;
use ExtensionRegistry; use ExtensionRegistry;
use FormatJson; use FormatJson;
use Html;
use IContextSource; use IContextSource;
use MediaWiki\Category\Category; use MediaWiki\Category\Category;
use MediaWiki\Html\Html;
use MediaWiki\Linker\LinkRenderer; use MediaWiki\Linker\LinkRenderer;
use MediaWiki\MediaWikiServices; use MediaWiki\MediaWikiServices;
use MediaWiki\Output\OutputPage;
use MediaWiki\SpecialPage\SpecialPage;
use MediaWiki\Title\Title; use MediaWiki\Title\Title;
use OutputPage;
use Parser; use Parser;
use RequestContext; use RequestContext;
use SpecialPage;
/** /**
* Core functions for the CategoryTree extension, an AJAX based gadget * Core functions for the CategoryTree extension, an AJAX based gadget

View file

@ -24,11 +24,11 @@
namespace MediaWiki\Extension\CategoryTree; namespace MediaWiki\Extension\CategoryTree;
use Html;
use HTMLForm; use HTMLForm;
use MediaWiki\Html\Html;
use MediaWiki\SpecialPage\SpecialPage;
use MediaWiki\Title\Title; use MediaWiki\Title\Title;
use SearchEngineFactory; use SearchEngineFactory;
use SpecialPage;
/** /**
* Special page for the CategoryTree extension, an AJAX based gadget * Special page for the CategoryTree extension, an AJAX based gadget

View file

@ -24,8 +24,7 @@
namespace MediaWiki\Extension\CategoryTree; namespace MediaWiki\Extension\CategoryTree;
use Config; use MediaWiki\Config\Config;
use Html;
use MediaWiki\Hook\CategoryViewer__doCategoryQueryHook; use MediaWiki\Hook\CategoryViewer__doCategoryQueryHook;
use MediaWiki\Hook\CategoryViewer__generateLinkHook; use MediaWiki\Hook\CategoryViewer__generateLinkHook;
use MediaWiki\Hook\OutputPageMakeCategoryLinksHook; use MediaWiki\Hook\OutputPageMakeCategoryLinksHook;
@ -33,15 +32,16 @@ use MediaWiki\Hook\ParserFirstCallInitHook;
use MediaWiki\Hook\SkinBuildSidebarHook; use MediaWiki\Hook\SkinBuildSidebarHook;
use MediaWiki\Hook\SpecialTrackingCategories__generateCatLinkHook; use MediaWiki\Hook\SpecialTrackingCategories__generateCatLinkHook;
use MediaWiki\Hook\SpecialTrackingCategories__preprocessHook; use MediaWiki\Hook\SpecialTrackingCategories__preprocessHook;
use MediaWiki\Html\Html;
use MediaWiki\Linker\LinkTarget; use MediaWiki\Linker\LinkTarget;
use MediaWiki\Output\OutputPage;
use MediaWiki\Parser\Sanitizer;
use MediaWiki\SpecialPage\SpecialPage;
use MediaWiki\Title\Title; use MediaWiki\Title\Title;
use OutputPage;
use Parser; use Parser;
use PPFrame; use PPFrame;
use RequestContext; use RequestContext;
use Sanitizer;
use Skin; use Skin;
use SpecialPage;
use Wikimedia\Rdbms\IResultWrapper; use Wikimedia\Rdbms\IResultWrapper;
/** /**

View file

@ -22,8 +22,8 @@ namespace MediaWiki\Extension\CategoryTree\Tests;
use MediaWiki\Category\Category; use MediaWiki\Category\Category;
use MediaWiki\Extension\CategoryTree\CategoryCache; use MediaWiki\Extension\CategoryTree\CategoryCache;
use MediaWiki\Title\TitleValue;
use MediaWikiIntegrationTestCase; use MediaWikiIntegrationTestCase;
use TitleValue;
use Wikimedia\Rdbms\ILoadBalancer; use Wikimedia\Rdbms\ILoadBalancer;
use Wikimedia\TestingAccessWrapper; use Wikimedia\TestingAccessWrapper;