Use namespaced classes

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

Change-Id: I60968f9b735b27eaef20e5d42af322a8c2ecd257
This commit is contained in:
Umherirrender 2024-10-19 23:34:41 +02:00
parent f430cb0fc3
commit 1cfba87b23
14 changed files with 27 additions and 23 deletions

View file

@ -2,7 +2,7 @@
namespace MediaWiki\Extension\ConfirmEdit\FancyCaptcha; namespace MediaWiki\Extension\ConfirmEdit\FancyCaptcha;
use ApiBase; use MediaWiki\Api\ApiBase;
/** /**
* Api module to reload FancyCaptcha * Api module to reload FancyCaptcha

View file

@ -2,8 +2,6 @@
namespace MediaWiki\Extension\ConfirmEdit\FancyCaptcha; namespace MediaWiki\Extension\ConfirmEdit\FancyCaptcha;
use FileBackend;
use FSFileBackend;
use InvalidArgumentException; use InvalidArgumentException;
use MediaWiki\Auth\AuthenticationRequest; use MediaWiki\Auth\AuthenticationRequest;
use MediaWiki\Auth\AuthManager; use MediaWiki\Auth\AuthManager;
@ -17,6 +15,8 @@ use MediaWiki\Utils\MWTimestamp;
use MediaWiki\WikiMap\WikiMap; use MediaWiki\WikiMap\WikiMap;
use NullLockManager; use NullLockManager;
use UnderflowException; use UnderflowException;
use Wikimedia\FileBackend\FileBackend;
use Wikimedia\FileBackend\FSFileBackend;
/** /**
* FancyCaptcha for displaying captchas precomputed by captcha.py * FancyCaptcha for displaying captchas precomputed by captcha.py

View file

@ -16,7 +16,7 @@ use MediaWiki\Extension\ConfirmEdit\Auth\CaptchaAuthenticationRequest;
use MediaWiki\Extension\ConfirmEdit\SimpleCaptcha\SimpleCaptcha; use MediaWiki\Extension\ConfirmEdit\SimpleCaptcha\SimpleCaptcha;
use MediaWiki\Extension\ConfirmEdit\Store\CaptchaStore; use MediaWiki\Extension\ConfirmEdit\Store\CaptchaStore;
use MediaWiki\Html\Html; use MediaWiki\Html\Html;
use Xml; use MediaWiki\Xml\Xml;
class QuestyCaptcha extends SimpleCaptcha { class QuestyCaptcha extends SimpleCaptcha {
/** /**

View file

@ -2,13 +2,13 @@
namespace MediaWiki\Extension\ConfirmEdit\ReCaptchaNoCaptcha; namespace MediaWiki\Extension\ConfirmEdit\ReCaptchaNoCaptcha;
use ApiBase; use MediaWiki\Api\ApiBase;
use FormatJson;
use MediaWiki\Auth\AuthenticationRequest; use MediaWiki\Auth\AuthenticationRequest;
use MediaWiki\Extension\ConfirmEdit\Auth\CaptchaAuthenticationRequest; use MediaWiki\Extension\ConfirmEdit\Auth\CaptchaAuthenticationRequest;
use MediaWiki\Extension\ConfirmEdit\Hooks; use MediaWiki\Extension\ConfirmEdit\Hooks;
use MediaWiki\Extension\ConfirmEdit\SimpleCaptcha\SimpleCaptcha; use MediaWiki\Extension\ConfirmEdit\SimpleCaptcha\SimpleCaptcha;
use MediaWiki\Html\Html; use MediaWiki\Html\Html;
use MediaWiki\Json\FormatJson;
use MediaWiki\Language\RawMessage; use MediaWiki\Language\RawMessage;
use MediaWiki\MediaWikiServices; use MediaWiki\MediaWikiServices;
use MediaWiki\Message\Message; use MediaWiki\Message\Message;

View file

@ -2,16 +2,15 @@
namespace MediaWiki\Extension\ConfirmEdit\SimpleCaptcha; namespace MediaWiki\Extension\ConfirmEdit\SimpleCaptcha;
use ApiBase;
use ApiEditPage;
use Content;
use ExtensionRegistry;
use IDBAccessObject;
use MailAddress; use MailAddress;
use MediaWiki\Api\ApiBase;
use MediaWiki\Api\ApiEditPage;
use MediaWiki\Auth\AuthenticationRequest; use MediaWiki\Auth\AuthenticationRequest;
use MediaWiki\Cache\CacheKeyHelper; use MediaWiki\Cache\CacheKeyHelper;
use MediaWiki\Config\Config; use MediaWiki\Config\Config;
use MediaWiki\Config\ConfigException; use MediaWiki\Config\ConfigException;
use MediaWiki\Content\Content;
use MediaWiki\Content\TextContent;
use MediaWiki\Context\IContextSource; use MediaWiki\Context\IContextSource;
use MediaWiki\Context\RequestContext; use MediaWiki\Context\RequestContext;
use MediaWiki\EditPage\EditPage; use MediaWiki\EditPage\EditPage;
@ -25,6 +24,8 @@ use MediaWiki\HTMLForm\HTMLForm;
use MediaWiki\MediaWikiServices; use MediaWiki\MediaWikiServices;
use MediaWiki\Message\Message; use MediaWiki\Message\Message;
use MediaWiki\Output\OutputPage; use MediaWiki\Output\OutputPage;
use MediaWiki\Parser\ParserOptions;
use MediaWiki\Registration\ExtensionRegistry;
use MediaWiki\Request\ContentSecurityPolicy; use MediaWiki\Request\ContentSecurityPolicy;
use MediaWiki\Request\WebRequest; use MediaWiki\Request\WebRequest;
use MediaWiki\Revision\RevisionAccessException; use MediaWiki\Revision\RevisionAccessException;
@ -35,10 +36,9 @@ use MediaWiki\User\User;
use OOUI\FieldLayout; use OOUI\FieldLayout;
use OOUI\HiddenInputWidget; use OOUI\HiddenInputWidget;
use OOUI\NumberInputWidget; use OOUI\NumberInputWidget;
use ParserOptions;
use TextContent;
use UnexpectedValueException; use UnexpectedValueException;
use Wikimedia\IPUtils; use Wikimedia\IPUtils;
use Wikimedia\Rdbms\IDBAccessObject;
use WikiPage; use WikiPage;
/** /**

View file

@ -2,13 +2,13 @@
namespace MediaWiki\Extension\ConfirmEdit\Turnstile; namespace MediaWiki\Extension\ConfirmEdit\Turnstile;
use ApiBase; use MediaWiki\Api\ApiBase;
use FormatJson;
use MediaWiki\Auth\AuthenticationRequest; use MediaWiki\Auth\AuthenticationRequest;
use MediaWiki\Extension\ConfirmEdit\Auth\CaptchaAuthenticationRequest; use MediaWiki\Extension\ConfirmEdit\Auth\CaptchaAuthenticationRequest;
use MediaWiki\Extension\ConfirmEdit\Hooks; use MediaWiki\Extension\ConfirmEdit\Hooks;
use MediaWiki\Extension\ConfirmEdit\SimpleCaptcha\SimpleCaptcha; use MediaWiki\Extension\ConfirmEdit\SimpleCaptcha\SimpleCaptcha;
use MediaWiki\Html\Html; use MediaWiki\Html\Html;
use MediaWiki\Json\FormatJson;
use MediaWiki\Language\RawMessage; use MediaWiki\Language\RawMessage;
use MediaWiki\MediaWikiServices; use MediaWiki\MediaWikiServices;
use MediaWiki\Message\Message; use MediaWiki\Message\Message;

View file

@ -2,8 +2,7 @@
namespace MediaWiki\Extension\ConfirmEdit\hCaptcha; namespace MediaWiki\Extension\ConfirmEdit\hCaptcha;
use ApiBase; use MediaWiki\Api\ApiBase;
use FormatJson;
use MediaWiki\Auth\AuthenticationRequest; use MediaWiki\Auth\AuthenticationRequest;
use MediaWiki\Config\Config; use MediaWiki\Config\Config;
use MediaWiki\Context\RequestContext; use MediaWiki\Context\RequestContext;
@ -11,6 +10,7 @@ use MediaWiki\Extension\ConfirmEdit\Auth\CaptchaAuthenticationRequest;
use MediaWiki\Extension\ConfirmEdit\Hooks; use MediaWiki\Extension\ConfirmEdit\Hooks;
use MediaWiki\Extension\ConfirmEdit\SimpleCaptcha\SimpleCaptcha; use MediaWiki\Extension\ConfirmEdit\SimpleCaptcha\SimpleCaptcha;
use MediaWiki\Html\Html; use MediaWiki\Html\Html;
use MediaWiki\Json\FormatJson;
use MediaWiki\Language\RawMessage; use MediaWiki\Language\RawMessage;
use MediaWiki\MediaWikiServices; use MediaWiki\MediaWikiServices;
use MediaWiki\Message\Message; use MediaWiki\Message\Message;

View file

@ -2,12 +2,12 @@
namespace MediaWiki\Extension\ConfirmEdit\Auth; namespace MediaWiki\Extension\ConfirmEdit\Auth;
use BagOStuff;
use MediaWiki\Extension\ConfirmEdit\CaptchaTriggers; use MediaWiki\Extension\ConfirmEdit\CaptchaTriggers;
use MediaWiki\Extension\ConfirmEdit\SimpleCaptcha\SimpleCaptcha; use MediaWiki\Extension\ConfirmEdit\SimpleCaptcha\SimpleCaptcha;
use MediaWiki\MediaWikiServices; use MediaWiki\MediaWikiServices;
use MediaWiki\User\User; use MediaWiki\User\User;
use MediaWiki\User\UserNameUtils; use MediaWiki\User\UserNameUtils;
use Wikimedia\ObjectCache\BagOStuff;
/** /**
* Helper to count login attempts per IP and per username. * Helper to count login attempts per IP and per username.

View file

@ -4,11 +4,10 @@
namespace MediaWiki\Extension\ConfirmEdit; namespace MediaWiki\Extension\ConfirmEdit;
use ApiBase;
use Content;
use ExtensionRegistry;
use MailAddress; use MailAddress;
use MediaWiki\Api\ApiBase;
use MediaWiki\Api\Hook\APIGetAllowedParamsHook; use MediaWiki\Api\Hook\APIGetAllowedParamsHook;
use MediaWiki\Content\Content;
use MediaWiki\Context\IContextSource; use MediaWiki\Context\IContextSource;
use MediaWiki\EditPage\EditPage; use MediaWiki\EditPage\EditPage;
use MediaWiki\Extension\ConfirmEdit\SimpleCaptcha\SimpleCaptcha; use MediaWiki\Extension\ConfirmEdit\SimpleCaptcha\SimpleCaptcha;
@ -23,6 +22,7 @@ use MediaWiki\HTMLForm\HTMLForm;
use MediaWiki\Output\OutputPage; use MediaWiki\Output\OutputPage;
use MediaWiki\Parser\ParserOutput; use MediaWiki\Parser\ParserOutput;
use MediaWiki\Permissions\Hook\TitleReadWhitelistHook; use MediaWiki\Permissions\Hook\TitleReadWhitelistHook;
use MediaWiki\Registration\ExtensionRegistry;
use MediaWiki\ResourceLoader\Hook\ResourceLoaderRegisterModulesHook; use MediaWiki\ResourceLoader\Hook\ResourceLoaderRegisterModulesHook;
use MediaWiki\ResourceLoader\ResourceLoader; use MediaWiki\ResourceLoader\ResourceLoader;
use MediaWiki\Revision\RevisionRecord; use MediaWiki\Revision\RevisionRecord;
@ -34,9 +34,9 @@ use MediaWiki\Storage\Hook\PageSaveCompleteHook;
use MediaWiki\Title\Title; use MediaWiki\Title\Title;
use MediaWiki\User\User; use MediaWiki\User\User;
use MediaWiki\User\UserIdentity; use MediaWiki\User\UserIdentity;
use WANObjectCache;
use Wikimedia\IPUtils; use Wikimedia\IPUtils;
use Wikimedia\Message\MessageSpecifier; use Wikimedia\Message\MessageSpecifier;
use Wikimedia\ObjectCache\WANObjectCache;
use WikiPage; use WikiPage;
class Hooks implements class Hooks implements

View file

@ -2,8 +2,8 @@
namespace MediaWiki\Extension\ConfirmEdit\Store; namespace MediaWiki\Extension\ConfirmEdit\Store;
use BagOStuff;
use MediaWiki\MediaWikiServices; use MediaWiki\MediaWikiServices;
use Wikimedia\ObjectCache\BagOStuff;
class CaptchaCacheStore extends CaptchaStore { class CaptchaCacheStore extends CaptchaStore {
/** @var BagOStuff */ /** @var BagOStuff */

View file

@ -30,6 +30,7 @@ require_once "$IP/maintenance/Maintenance.php";
use MediaWiki\Extension\ConfirmEdit\FancyCaptcha\FancyCaptcha; use MediaWiki\Extension\ConfirmEdit\FancyCaptcha\FancyCaptcha;
use MediaWiki\Extension\ConfirmEdit\Hooks; use MediaWiki\Extension\ConfirmEdit\Hooks;
use MediaWiki\Maintenance\Maintenance;
/** /**
* Maintenance script that counts the number of captchas remaining. * Maintenance script that counts the number of captchas remaining.

View file

@ -30,6 +30,7 @@ require_once "$IP/maintenance/Maintenance.php";
use MediaWiki\Extension\ConfirmEdit\FancyCaptcha\FancyCaptcha; use MediaWiki\Extension\ConfirmEdit\FancyCaptcha\FancyCaptcha;
use MediaWiki\Extension\ConfirmEdit\Hooks; use MediaWiki\Extension\ConfirmEdit\Hooks;
use MediaWiki\Maintenance\Maintenance;
use MediaWiki\Status\Status; use MediaWiki\Status\Status;
/** /**

View file

@ -31,6 +31,7 @@ require_once "$IP/maintenance/Maintenance.php";
use MediaWiki\Extension\ConfirmEdit\FancyCaptcha\FancyCaptcha; use MediaWiki\Extension\ConfirmEdit\FancyCaptcha\FancyCaptcha;
use MediaWiki\Extension\ConfirmEdit\Hooks; use MediaWiki\Extension\ConfirmEdit\Hooks;
use MediaWiki\Maintenance\Maintenance;
use MediaWiki\Shell\Shell; use MediaWiki\Shell\Shell;
use MediaWiki\Status\Status; use MediaWiki\Status\Status;

View file

@ -4,6 +4,7 @@ use MediaWiki\Config\HashConfig;
use MediaWiki\Context\RequestContext; use MediaWiki\Context\RequestContext;
use MediaWiki\Extension\ConfirmEdit\CaptchaTriggers; use MediaWiki\Extension\ConfirmEdit\CaptchaTriggers;
use MediaWiki\Extension\ConfirmEdit\SimpleCaptcha\SimpleCaptcha; use MediaWiki\Extension\ConfirmEdit\SimpleCaptcha\SimpleCaptcha;
use MediaWiki\Registration\ExtensionRegistry;
use MediaWiki\Request\WebRequest; use MediaWiki\Request\WebRequest;
use MediaWiki\Title\Title; use MediaWiki\Title\Title;
use MediaWiki\User\User; use MediaWiki\User\User;