Use namespaced classes

Changes to the use statements done automatically via script
Addition of missing use statement done manually

Change-Id: Ifa450560a587a9d51de91b6f5a855f82d4fd8fe4
This commit is contained in:
Umherirrender 2024-10-20 11:55:49 +02:00
parent f3a1e39c31
commit 4bac912eb3
5 changed files with 11 additions and 8 deletions

View file

@ -24,8 +24,8 @@
namespace MediaWiki\Extension\SpamBlacklist; namespace MediaWiki\Extension\SpamBlacklist;
use ApiBase; use MediaWiki\Api\ApiBase;
use ApiResult; use MediaWiki\Api\ApiResult;
use Wikimedia\ParamValidator\ParamValidator; use Wikimedia\ParamValidator\ParamValidator;
/** /**

View file

@ -3,11 +3,11 @@
namespace MediaWiki\Extension\SpamBlacklist; namespace MediaWiki\Extension\SpamBlacklist;
use InvalidArgumentException; use InvalidArgumentException;
use MediaWiki\Content\TextContent;
use MediaWiki\MediaWikiServices; use MediaWiki\MediaWikiServices;
use MediaWiki\Revision\SlotRecord; use MediaWiki\Revision\SlotRecord;
use MediaWiki\Title\Title; use MediaWiki\Title\Title;
use MediaWiki\User\User; use MediaWiki\User\User;
use TextContent;
/** /**
* Base class for different kinds of blacklists * Base class for different kinds of blacklists

View file

@ -2,9 +2,9 @@
namespace MediaWiki\Extension\SpamBlacklist; namespace MediaWiki\Extension\SpamBlacklist;
use ApiMessage;
use Content;
use LogicException; use LogicException;
use MediaWiki\Api\ApiMessage;
use MediaWiki\Content\Content;
use MediaWiki\Content\IContentHandlerFactory; use MediaWiki\Content\IContentHandlerFactory;
use MediaWiki\Content\Renderer\ContentRenderer; use MediaWiki\Content\Renderer\ContentRenderer;
use MediaWiki\Context\IContextSource; use MediaWiki\Context\IContextSource;
@ -15,6 +15,7 @@ use MediaWiki\Hook\EditFilterMergedContentHook;
use MediaWiki\Hook\UploadVerifyUploadHook; use MediaWiki\Hook\UploadVerifyUploadHook;
use MediaWiki\Html\Html; use MediaWiki\Html\Html;
use MediaWiki\Message\Message; use MediaWiki\Message\Message;
use MediaWiki\Parser\ParserOptions;
use MediaWiki\Parser\ParserOutput; use MediaWiki\Parser\ParserOutput;
use MediaWiki\Permissions\PermissionManager; use MediaWiki\Permissions\PermissionManager;
use MediaWiki\Revision\RevisionRecord; use MediaWiki\Revision\RevisionRecord;
@ -26,10 +27,9 @@ use MediaWiki\Storage\PageEditStash;
use MediaWiki\User\Hook\UserCanSendEmailHook; use MediaWiki\User\Hook\UserCanSendEmailHook;
use MediaWiki\User\User; use MediaWiki\User\User;
use MediaWiki\User\UserIdentity; use MediaWiki\User\UserIdentity;
use MessageSpecifier;
use ParserOptions;
use UploadBase; use UploadBase;
use Wikimedia\Assert\PreconditionException; use Wikimedia\Assert\PreconditionException;
use Wikimedia\Message\MessageSpecifier;
use WikiPage; use WikiPage;
/** /**

View file

@ -2,13 +2,13 @@
namespace MediaWiki\Extension\SpamBlacklist; namespace MediaWiki\Extension\SpamBlacklist;
use ExtensionRegistry;
use LogPage; use LogPage;
use ManualLogEntry; use ManualLogEntry;
use MediaWiki\CheckUser\Hooks as CUHooks; use MediaWiki\CheckUser\Hooks as CUHooks;
use MediaWiki\Context\RequestContext; use MediaWiki\Context\RequestContext;
use MediaWiki\ExternalLinks\ExternalLinksLookup; use MediaWiki\ExternalLinks\ExternalLinksLookup;
use MediaWiki\MediaWikiServices; use MediaWiki\MediaWikiServices;
use MediaWiki\Registration\ExtensionRegistry;
use MediaWiki\Title\Title; use MediaWiki\Title\Title;
use MediaWiki\User\User; use MediaWiki\User\User;
use Wikimedia\AtEase\AtEase; use Wikimedia\AtEase\AtEase;

View file

@ -6,7 +6,10 @@
* If all revisions contain spam, blanks the page * If all revisions contain spam, blanks the page
*/ */
use MediaWiki\Content\ContentHandler;
use MediaWiki\Content\TextContent;
use MediaWiki\Extension\SpamBlacklist\BaseBlacklist; use MediaWiki\Extension\SpamBlacklist\BaseBlacklist;
use MediaWiki\Maintenance\Maintenance;
use MediaWiki\MediaWikiServices; use MediaWiki\MediaWikiServices;
use MediaWiki\Page\WikiPageFactory; use MediaWiki\Page\WikiPageFactory;
use MediaWiki\Revision\RevisionLookup; use MediaWiki\Revision\RevisionLookup;