Use namespaced classes

Changes to the use statements done automatically via script

Change-Id: Ib56dd5248012dfdc3490aa82bb00f66f20ae1c84
This commit is contained in:
Umherirrender 2024-06-09 18:58:24 +02:00
parent 8a386e5672
commit 56e062512d
13 changed files with 18 additions and 18 deletions

View file

@ -24,8 +24,8 @@ use MediaWiki\Auth\AuthenticationResponse;
use MediaWiki\Auth\AuthManager;
use MediaWiki\Extension\OATHAuth\Module\TOTP;
use MediaWiki\MediaWikiServices;
use MediaWiki\Message\Message;
use MediaWiki\User\User;
use Message;
/**
* AuthManager secondary authentication provider for TOTP second-factor authentication.

View file

@ -2,7 +2,7 @@
namespace MediaWiki\Extension\OATHAuth\HTMLForm;
use HTMLForm;
use MediaWiki\HTMLForm\HTMLForm;
use MediaWiki\Status\Status;
use MediaWiki\Title\Title;
use OOUI\Layout;

View file

@ -2,17 +2,17 @@
namespace MediaWiki\Extension\OATHAuth\HTMLForm;
use IContextSource;
use MediaWiki\Context\IContextSource;
use MediaWiki\Extension\OATHAuth\IModule;
use MediaWiki\Extension\OATHAuth\OATHUser;
use MediaWiki\Extension\OATHAuth\OATHUserRepository;
use MediaWiki\HTMLForm\OOUIHTMLForm;
use MediaWiki\Logger\LoggerFactory;
use OOUI\FieldsetLayout;
use OOUI\HtmlSnippet;
use OOUI\Layout;
use OOUI\PanelLayout;
use OOUI\Widget;
use OOUIHTMLForm;
use Psr\Log\LoggerInterface;
abstract class OATHAuthOOUIHTMLForm extends OOUIHTMLForm implements IManageForm {

View file

@ -4,7 +4,7 @@ namespace MediaWiki\Extension\OATHAuth\HTMLForm;
use MediaWiki\Extension\OATHAuth\Key\TOTPKey;
use MediaWiki\Logger\LoggerFactory;
use Message;
use MediaWiki\Message\Message;
use MWException;
class TOTPDisableForm extends OATHAuthOOUIHTMLForm {

View file

@ -4,8 +4,10 @@ namespace MediaWiki\Extension\OATHAuth\Hook;
use MediaWiki\Auth\AuthenticationRequest;
use MediaWiki\Config\Config;
use MediaWiki\Context\RequestContext;
use MediaWiki\Extension\OATHAuth\OATHAuth;
use MediaWiki\Extension\OATHAuth\OATHUserRepository;
use MediaWiki\Message\Message;
use MediaWiki\Permissions\Hook\GetUserPermissionsErrorsHook;
use MediaWiki\Permissions\Hook\UserGetRightsHook;
use MediaWiki\Permissions\PermissionManager;
@ -17,11 +19,9 @@ use MediaWiki\User\Hook\UserEffectiveGroupsHook;
use MediaWiki\User\User;
use MediaWiki\User\UserGroupManager;
use MediaWiki\User\UserGroupMembership;
use Message;
use OOUI\ButtonWidget;
use OOUI\HorizontalLayout;
use OOUI\LabelWidget;
use RequestContext;
class HookHandler implements
AuthChangeFormFieldsHook,

View file

@ -2,9 +2,9 @@
namespace MediaWiki\Extension\OATHAuth\Hook;
use DatabaseUpdater;
use MediaWiki\Extension\OATHAuth\Maintenance\UpdateForMultipleDevicesSupport;
use MediaWiki\Extension\OATHAuth\Maintenance\UpdateTOTPScratchTokensToArray;
use MediaWiki\Installer\DatabaseUpdater;
use MediaWiki\Installer\Hook\LoadExtensionSchemaUpdatesHook;
class UpdateTables implements LoadExtensionSchemaUpdatesHook {

View file

@ -2,10 +2,10 @@
namespace MediaWiki\Extension\OATHAuth;
use IContextSource;
use MediaWiki\Auth\AbstractSecondaryAuthenticationProvider;
use MediaWiki\Context\IContextSource;
use MediaWiki\Extension\OATHAuth\HTMLForm\IManageForm;
use Message;
use MediaWiki\Message\Message;
interface IModule {
/**

View file

@ -2,7 +2,7 @@
namespace MediaWiki\Extension\OATHAuth\Module;
use IContextSource;
use MediaWiki\Context\IContextSource;
use MediaWiki\Extension\OATHAuth\Auth\TOTPSecondaryAuthenticationProvider;
use MediaWiki\Extension\OATHAuth\HTMLForm\IManageForm;
use MediaWiki\Extension\OATHAuth\HTMLForm\TOTPDisableForm;

View file

@ -22,13 +22,13 @@ use BagOStuff;
use FormatJson;
use InvalidArgumentException;
use MediaWiki\Config\ConfigException;
use MediaWiki\Context\RequestContext;
use MediaWiki\Extension\OATHAuth\Notifications\Manager;
use MediaWiki\User\CentralId\CentralIdLookupFactory;
use MediaWiki\User\User;
use MWException;
use Psr\Log\LoggerAwareInterface;
use Psr\Log\LoggerInterface;
use RequestContext;
use RuntimeException;
use Wikimedia\Rdbms\IConnectionProvider;

View file

@ -2,15 +2,15 @@
namespace MediaWiki\Extension\OATHAuth\Special;
use HTMLForm;
use ManualLogEntry;
use MediaWiki\Config\ConfigException;
use MediaWiki\Extension\OATHAuth\OATHUserRepository;
use MediaWiki\HTMLForm\HTMLForm;
use MediaWiki\Logger\LoggerFactory;
use MediaWiki\Message\Message;
use MediaWiki\SpecialPage\FormSpecialPage;
use MediaWiki\User\User;
use MediaWiki\User\UserFactory;
use Message;
use MWException;
use UserBlockedError;
use UserNotLoggedIn;

View file

@ -19,7 +19,6 @@
namespace MediaWiki\Extension\OATHAuth\Special;
use HTMLForm;
use MediaWiki\Config\ConfigException;
use MediaWiki\Extension\OATHAuth\HTMLForm\IManageForm;
use MediaWiki\Extension\OATHAuth\IModule;
@ -27,8 +26,9 @@ use MediaWiki\Extension\OATHAuth\OATHAuthModuleRegistry;
use MediaWiki\Extension\OATHAuth\OATHUser;
use MediaWiki\Extension\OATHAuth\OATHUserRepository;
use MediaWiki\Html\Html;
use MediaWiki\HTMLForm\HTMLForm;
use MediaWiki\Message\Message;
use MediaWiki\SpecialPage\SpecialPage;
use Message;
use MWException;
use OOUI\ButtonWidget;
use OOUI\HorizontalLayout;

View file

@ -2,10 +2,10 @@
namespace MediaWiki\Extension\OATHAuth\Special;
use HTMLForm;
use ManualLogEntry;
use MediaWiki\Config\ConfigException;
use MediaWiki\Extension\OATHAuth\OATHUserRepository;
use MediaWiki\HTMLForm\HTMLForm;
use MediaWiki\Logger\LoggerFactory;
use MediaWiki\SpecialPage\FormSpecialPage;
use MediaWiki\User\UserFactory;

View file

@ -2,8 +2,8 @@
namespace MediaWiki\Extension\OATHAuth\Tests\Auth;
use MediaWiki\Auth\AuthenticationRequestTestCase;
use MediaWiki\Extension\OATHAuth\Auth\TOTPAuthenticationRequest;
use MediaWiki\Tests\Auth\AuthenticationRequestTestCase;
/**
* @covers \MediaWiki\Extension\OATHAuth\Auth\TOTPAuthenticationRequest