Use namespaced classes

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

Change-Id: I3a7b448f3793f6690bb329a2e5255a558048ed5a
This commit is contained in:
Umherirrender 2024-06-10 22:05:31 +02:00
parent de4695b75e
commit 954db277fc
5 changed files with 6 additions and 5 deletions

View file

@ -11,6 +11,7 @@ namespace MediaWiki\Extension\TitleBlacklist;
use ApiMessage;
use ApiResult;
use ManualLogEntry;
use MediaWiki\Context\RequestContext;
use MediaWiki\EditPage\EditPage;
use MediaWiki\Hook\EditFilterHook;
use MediaWiki\Hook\MovePageCheckPermissionsHook;
@ -26,7 +27,6 @@ use MediaWiki\Title\Title;
use MediaWiki\User\User;
use MediaWiki\User\UserIdentity;
use MessageSpecifier;
use RequestContext;
use StatusValue;
use WikiPage;

View file

@ -2,10 +2,10 @@
namespace MediaWiki\Extension\TitleBlacklist;
use MediaWiki\Extension\Scribunto\Engines\LuaCommon\LibraryBase;
use MediaWiki\MediaWikiServices;
use Scribunto_LuaLibraryBase;
class Scribunto_LuaTitleBlacklistLibrary extends Scribunto_LuaLibraryBase {
class Scribunto_LuaTitleBlacklistLibrary extends LibraryBase {
public function register() {
$lib = [
'test' => [ $this, 'test' ],

View file

@ -5,8 +5,8 @@ namespace MediaWiki\Extension\TitleBlacklist;
use MediaWiki\Auth\AbstractPreAuthenticationProvider;
use MediaWiki\Auth\AuthenticationRequest;
use MediaWiki\Auth\AuthManager;
use MediaWiki\Context\RequestContext;
use MediaWiki\User\User;
use RequestContext;
use StatusValue;
class TitleBlacklistPreAuthenticationProvider extends AbstractPreAuthenticationProvider {

View file

@ -1,6 +1,7 @@
<?php
use MediaWiki\Extension\TitleBlacklist\TitleBlacklist;
use MediaWiki\Tests\Api\ApiTestCase;
/**
* @group medium

View file

@ -1,7 +1,7 @@
<?php
use MediaWiki\Auth\AuthenticationRequestTestCase;
use MediaWiki\Extension\TitleBlacklist\TitleBlacklistAuthenticationRequest;
use MediaWiki\Tests\Auth\AuthenticationRequestTestCase;
/**
* @covers \MediaWiki\Extension\TitleBlacklist\TitleBlacklistAuthenticationRequest