Use namespaced Title

Bug: T321681
Change-Id: I66fd9b70a5de06ac3c81bdf6a2a5bca64ed094c2
This commit is contained in:
Umherirrender 2023-08-19 19:49:36 +02:00
parent 438cb640ed
commit cd7e9d31a7
38 changed files with 38 additions and 38 deletions

View file

@ -6,10 +6,10 @@ use BagOStuff;
use InvalidArgumentException;
use MediaWiki\Extension\AbuseFilter\Consequences\ConsequenceNotPrecheckedException;
use MediaWiki\Extension\AbuseFilter\Consequences\Parameters;
use MediaWiki\Title\Title;
use MediaWiki\User\UserEditTracker;
use MediaWiki\User\UserFactory;
use Psr\Log\LoggerInterface;
use Title;
use Wikimedia\IPUtils;
/**

View file

@ -6,7 +6,7 @@ use MediaWiki\Extension\AbuseFilter\Consequences\ConsequencesRegistry;
use MediaWiki\Extension\AbuseFilter\Filter\ExistingFilter;
use MediaWiki\Extension\AbuseFilter\Special\SpecialAbuseFilter;
use MediaWiki\Extension\Notifications\Model\Event;
use Title;
use MediaWiki\Title\Title;
/**
* Helper service for EmergencyWatcher to notify filter maintainers of throttled filters

View file

@ -5,8 +5,8 @@ namespace MediaWiki\Extension\AbuseFilter;
use BagOStuff;
use IBufferingStatsdDataFactory;
use MediaWiki\Config\ServiceOptions;
use MediaWiki\Title\Title;
use Psr\Log\LoggerInterface;
use Title;
use Wikimedia\WRStats\LocalEntityKey;
use Wikimedia\WRStats\WRStatsFactory;

View file

@ -17,9 +17,9 @@ use MediaWiki\Extension\AbuseFilter\Variables\LazyVariableComputer;
use MediaWiki\Extension\AbuseFilter\Variables\VariableHolder;
use MediaWiki\Extension\AbuseFilter\Variables\VariablesManager;
use MediaWiki\Extension\AbuseFilter\Watcher\Watcher;
use MediaWiki\Title\Title;
use Psr\Log\LoggerInterface;
use Status;
use Title;
use User;
/**

View file

@ -15,9 +15,9 @@ use MediaWiki\Extension\AbuseFilter\Variables\VariableHolder;
use MediaWiki\Extension\AbuseFilter\Variables\VariablesManager;
use MediaWiki\Extension\AbuseFilter\Watcher\EmergencyWatcher;
use MediaWiki\Extension\AbuseFilter\Watcher\UpdateHitCountWatcher;
use MediaWiki\Title\Title;
use NullStatsdDataFactory;
use Psr\Log\LoggerInterface;
use Title;
use User;
class FilterRunnerFactory {

View file

@ -3,7 +3,7 @@
namespace MediaWiki\Extension\AbuseFilter\Hooks;
use MediaWiki\Extension\AbuseFilter\Variables\VariableHolder;
use Title;
use MediaWiki\Title\Title;
use User;
interface AbuseFilterAlterVariablesHook {

View file

@ -3,7 +3,7 @@
namespace MediaWiki\Extension\AbuseFilter\Hooks;
use MediaWiki\Extension\AbuseFilter\Variables\VariableHolder;
use Title;
use MediaWiki\Title\Title;
interface AbuseFilterFilterActionHook {
/**

View file

@ -3,8 +3,8 @@
namespace MediaWiki\Extension\AbuseFilter\Hooks;
use MediaWiki\Extension\AbuseFilter\Variables\VariableHolder;
use MediaWiki\Title\Title;
use RecentChange;
use Title;
interface AbuseFilterGenerateTitleVarsHook {
/**

View file

@ -6,8 +6,8 @@ use Content;
use MediaWiki\Extension\AbuseFilter\VariableGenerator\RCVariableGenerator;
use MediaWiki\Extension\AbuseFilter\Variables\VariableHolder;
use MediaWiki\HookContainer\HookContainer;
use MediaWiki\Title\Title;
use RecentChange;
use Title;
use User;
/**

View file

@ -3,7 +3,7 @@
namespace MediaWiki\Extension\AbuseFilter\Hooks;
use MediaWiki\Extension\AbuseFilter\Variables\VariableHolder;
use Title;
use MediaWiki\Title\Title;
use User;
interface AbuseFilterShouldFilterActionHook {

View file

@ -9,9 +9,9 @@ use MediaWiki\Extension\AbuseFilter\BlockedDomainStorage;
use MediaWiki\MediaWikiServices;
use MediaWiki\Page\PageIdentity;
use MediaWiki\Permissions\Hook\GetUserPermissionsErrorsHook;
use MediaWiki\Title\Title;
use MessageSpecifier;
use StatusValue;
use Title;
use TitleValue;
use User;

View file

@ -20,8 +20,8 @@ use MediaWiki\Page\Hook\ArticleDeleteHook;
use MediaWiki\Permissions\PermissionManager;
use MediaWiki\Revision\SlotRecord;
use MediaWiki\Storage\Hook\ParserOutputStashForEditHook;
use MediaWiki\Title\Title;
use Status;
use Title;
use UploadBase;
use User;
use WikiPage;

View file

@ -7,8 +7,8 @@ use MediaWiki\Extension\AbuseFilter\AbuseFilterPermissionManager;
use MediaWiki\Extension\AbuseFilter\Special\SpecialAbuseLog;
use MediaWiki\Linker\LinkRenderer;
use MediaWiki\Linker\LinkTarget;
use MediaWiki\Title\Title;
use SpecialPage;
use Title;
use TitleValue;
use Wikimedia\IPUtils;

View file

@ -4,10 +4,10 @@ namespace MediaWiki\Extension\AbuseFilter\Pager;
use MediaWiki\Extension\AbuseFilter\AbuseFilterChangesList;
use MediaWiki\Linker\LinkRenderer;
use MediaWiki\Title\Title;
use RecentChange;
use ReverseChronologicalPager;
use stdClass;
use Title;
use Wikimedia\Rdbms\IDatabase;
class AbuseFilterExaminePager extends ReverseChronologicalPager {

View file

@ -13,9 +13,9 @@ use MediaWiki\Extension\AbuseFilter\Special\SpecialAbuseFilter;
use MediaWiki\Extension\AbuseFilter\SpecsFormatter;
use MediaWiki\Linker\LinkRenderer;
use MediaWiki\MediaWikiServices;
use MediaWiki\Title\Title;
use MediaWiki\User\UserRigorOptions;
use TablePager;
use Title;
use UnexpectedValueException;
use Wikimedia\Rdbms\IResultWrapper;
use Xml;

View file

@ -14,12 +14,12 @@ use MediaWiki\Linker\LinkRenderer;
use MediaWiki\Linker\LinkTarget;
use MediaWiki\MediaWikiServices;
use MediaWiki\Permissions\PermissionManager;
use MediaWiki\Title\Title;
use MediaWiki\WikiMap\WikiMap;
use ReverseChronologicalPager;
use Sanitizer;
use SpecialPage;
use stdClass;
use Title;
use Wikimedia\Rdbms\IResultWrapper;
use Xml;

View file

@ -28,7 +28,7 @@ use MediaWiki\Extension\AbuseFilter\View\AbuseFilterViewList;
use MediaWiki\Extension\AbuseFilter\View\AbuseFilterViewRevert;
use MediaWiki\Extension\AbuseFilter\View\AbuseFilterViewTestBatch;
use MediaWiki\Extension\AbuseFilter\View\AbuseFilterViewTools;
use Title;
use MediaWiki\Title\Title;
use Wikimedia\ObjectFactory\ObjectFactory;
class SpecialAbuseFilter extends AbuseFilterSpecialPage {

View file

@ -28,6 +28,7 @@ use MediaWiki\MediaWikiServices;
use MediaWiki\Permissions\Authority;
use MediaWiki\Permissions\PermissionManager;
use MediaWiki\Revision\RevisionRecord;
use MediaWiki\Title\Title;
use MediaWiki\User\UserIdentity;
use MediaWiki\User\UserIdentityLookup;
use MediaWiki\WikiMap\WikiMap;
@ -35,7 +36,6 @@ use OOUI\ButtonInputWidget;
use SpecialPage;
use Status;
use stdClass;
use Title;
use Wikimedia\Rdbms\LBFactory;
use Xml;

View file

@ -7,11 +7,11 @@ use MediaWiki\Extension\AbuseFilter\Hooks\AbuseFilterHookRunner;
use MediaWiki\Extension\AbuseFilter\Variables\VariableHolder;
use MediaWiki\Logger\LoggerFactory;
use MediaWiki\Page\WikiPageFactory;
use MediaWiki\Title\Title;
use MimeAnalyzer;
use MWFileProps;
use RecentChange;
use RepoGroup;
use Title;
use User;
/**

View file

@ -11,9 +11,9 @@ use MediaWiki\Page\WikiPageFactory;
use MediaWiki\Revision\MutableRevisionRecord;
use MediaWiki\Revision\RevisionRecord;
use MediaWiki\Revision\SlotRecord;
use MediaWiki\Title\Title;
use MimeAnalyzer;
use MWFileProps;
use Title;
use UploadBase;
use User;
use Wikimedia\Assert\PreconditionException;

View file

@ -5,10 +5,10 @@ namespace MediaWiki\Extension\AbuseFilter\VariableGenerator;
use MediaWiki\Extension\AbuseFilter\Hooks\AbuseFilterHookRunner;
use MediaWiki\Extension\AbuseFilter\Variables\VariableHolder;
use MediaWiki\Storage\PreparedUpdate;
use MediaWiki\Title\Title;
use MediaWiki\User\UserIdentity;
use MWTimestamp;
use RecentChange;
use Title;
use User;
use WikiPage;

View file

@ -6,10 +6,10 @@ use MediaWiki\Extension\AbuseFilter\Hooks\AbuseFilterHookRunner;
use MediaWiki\Extension\AbuseFilter\TextExtractor;
use MediaWiki\Extension\AbuseFilter\Variables\VariableHolder;
use MediaWiki\Page\WikiPageFactory;
use MediaWiki\Title\Title;
use MimeAnalyzer;
use RecentChange;
use RepoGroup;
use Title;
use User;
class VariableGeneratorFactory {

View file

@ -16,6 +16,7 @@ use MediaWiki\Revision\RevisionRecord;
use MediaWiki\Revision\RevisionStore;
use MediaWiki\Revision\SlotRecord;
use MediaWiki\Storage\PreparedUpdate;
use MediaWiki\Title\Title;
use MediaWiki\User\UserEditTracker;
use MediaWiki\User\UserGroupManager;
use MediaWiki\User\UserIdentity;
@ -25,7 +26,6 @@ use Psr\Log\LoggerInterface;
use stdClass;
use StringUtils;
use TextContent;
use Title;
use UnexpectedValueException;
use User;
use WANObjectCache;

View file

@ -9,10 +9,10 @@ use MediaWiki\Extension\AbuseFilter\AbuseFilterPermissionManager;
use MediaWiki\Linker\LinkRenderer;
use MediaWiki\Permissions\Authority;
use MediaWiki\Revision\RevisionRecord;
use MediaWiki\Title\Title;
use OOUI;
use RecentChange;
use SpecialPage;
use Title;
use UnexpectedValueException;
use Wikimedia\Rdbms\Platform\ISQLPlatform;
use Xml;

View file

@ -20,9 +20,9 @@ use MediaWiki\Extension\AbuseFilter\Variables\VariablesFormatter;
use MediaWiki\Extension\AbuseFilter\Variables\VariablesManager;
use MediaWiki\Linker\LinkRenderer;
use MediaWiki\Revision\RevisionRecord;
use MediaWiki\Title\Title;
use OOUI;
use RecentChange;
use Title;
use Wikimedia\Rdbms\LBFactory;
use Xml;

View file

@ -15,8 +15,8 @@ use MediaWiki\Extension\AbuseFilter\Parser\RuleCheckerFactory;
use MediaWiki\Extension\AbuseFilter\VariableGenerator\VariableGeneratorFactory;
use MediaWiki\Linker\LinkRenderer;
use MediaWiki\Revision\RevisionRecord;
use MediaWiki\Title\Title;
use RecentChange;
use Title;
use Wikimedia\Rdbms\LBFactory;
class AbuseFilterViewTestBatch extends AbuseFilterView {

View file

@ -10,7 +10,7 @@ use MediaWiki\Extension\AbuseFilter\KeywordsManager;
use MediaWiki\Extension\AbuseFilter\Variables\VariableHolder;
use MediaWiki\Extension\AbuseFilter\Variables\VariablesBlobStore;
use MediaWiki\MediaWikiServices;
use Title;
use MediaWiki\Title\Title;
use UnexpectedValueException;
use Wikimedia\Rdbms\IMaintainableDatabase;
use Wikimedia\Rdbms\IResultWrapper;

View file

@ -7,8 +7,8 @@ use MediaWiki\Extension\AbuseFilter\EchoNotifier;
use MediaWiki\Extension\AbuseFilter\Filter\ExistingFilter;
use MediaWiki\Extension\AbuseFilter\FilterLookup;
use MediaWiki\Extension\Notifications\Model\Event;
use MediaWiki\Title\Title;
use MediaWikiIntegrationTestCase;
use Title;
/**
* @group Database

View file

@ -12,8 +12,8 @@ use MediaWiki\Extension\AbuseFilter\FilterLookup;
use MediaWiki\Extension\AbuseFilter\Variables\VariableHolder;
use MediaWiki\Extension\AbuseFilter\Variables\VariablesBlobStore;
use MediaWiki\Extension\AbuseFilter\Variables\VariablesManager;
use MediaWiki\Title\Title;
use MediaWikiUnitTestCase;
use Title;
use User;
use Wikimedia\Rdbms\LBFactory;

View file

@ -12,6 +12,7 @@ use MediaWiki\Extension\AbuseFilter\Consequences\ConsequenceNotPrecheckedExcepti
use MediaWiki\Extension\AbuseFilter\Consequences\Parameters;
use MediaWiki\Extension\AbuseFilter\Filter\ExistingFilter;
use MediaWiki\Linker\LinkTarget;
use MediaWiki\Title\Title;
use MediaWiki\User\UserEditTracker;
use MediaWiki\User\UserFactory;
use MediaWiki\User\UserIdentity;
@ -19,7 +20,6 @@ use MediaWiki\User\UserIdentityValue;
use MediaWikiUnitTestCase;
use PHPUnit\Framework\MockObject\MockObject;
use Psr\Log\NullLogger;
use Title;
use Wikimedia\TestingAccessWrapper;
/**

View file

@ -8,8 +8,8 @@ use MediaWiki\Extension\AbuseFilter\EditRevUpdater;
use MediaWiki\Linker\LinkTarget;
use MediaWiki\Revision\MutableRevisionRecord;
use MediaWiki\Revision\RevisionLookup;
use MediaWiki\Title\Title;
use MediaWikiUnitTestCase;
use Title;
use TitleValue;
use Wikimedia\Rdbms\DBConnRef;
use Wikimedia\Rdbms\IDatabase;

View file

@ -6,11 +6,11 @@ use HashBagOStuff;
use IBufferingStatsdDataFactory;
use MediaWiki\Config\ServiceOptions;
use MediaWiki\Extension\AbuseFilter\FilterProfiler;
use MediaWiki\Title\Title;
use MediaWikiUnitTestCase;
use Psr\Log\LoggerInterface;
use Psr\Log\NullLogger;
use TestLogger;
use Title;
use Wikimedia\WRStats\BagOStuffStatsStore;
use Wikimedia\WRStats\WRStatsFactory;

View file

@ -21,9 +21,9 @@ use MediaWiki\Extension\AbuseFilter\Variables\VariableHolder;
use MediaWiki\Extension\AbuseFilter\Variables\VariablesManager;
use MediaWiki\Extension\AbuseFilter\Watcher\EmergencyWatcher;
use MediaWiki\Extension\AbuseFilter\Watcher\UpdateHitCountWatcher;
use MediaWiki\Title\Title;
use MediaWikiUnitTestCase;
use Psr\Log\NullLogger;
use Title;
use User;
/**

View file

@ -18,9 +18,9 @@ use MediaWiki\Extension\AbuseFilter\Parser\RuleCheckerFactory;
use MediaWiki\Extension\AbuseFilter\VariableGenerator\VariableGeneratorFactory;
use MediaWiki\Extension\AbuseFilter\Variables\VariableHolder;
use MediaWiki\Extension\AbuseFilter\Variables\VariablesManager;
use MediaWiki\Title\Title;
use MediaWikiUnitTestCase;
use Psr\Log\NullLogger;
use Title;
use User;
use WebRequest;

View file

@ -6,10 +6,10 @@ use IContextSource;
use MediaWiki\Extension\AbuseFilter\AbuseFilterPermissionManager;
use MediaWiki\Extension\AbuseFilter\Hooks\Handlers\ToolLinksHandler;
use MediaWiki\Linker\LinkRenderer;
use MediaWiki\Title\Title;
use MediaWikiUnitTestCase;
use Message;
use SpecialPage;
use Title;
use User;
use WebRequest;

View file

@ -7,11 +7,11 @@ use MediaWiki\Extension\AbuseFilter\TextExtractor;
use MediaWiki\Extension\AbuseFilter\VariableGenerator\VariableGeneratorFactory;
use MediaWiki\Extension\AbuseFilter\Variables\VariableHolder;
use MediaWiki\Page\WikiPageFactory;
use MediaWiki\Title\Title;
use MediaWikiUnitTestCase;
use MimeAnalyzer;
use RecentChange;
use RepoGroup;
use Title;
use User;
/**

View file

@ -8,9 +8,9 @@ use MediaWiki\Extension\AbuseFilter\Parser\AFPData;
use MediaWiki\Extension\AbuseFilter\VariableGenerator\VariableGenerator;
use MediaWiki\Extension\AbuseFilter\Variables\LazyLoadedVariable;
use MediaWiki\Extension\AbuseFilter\Variables\VariableHolder;
use MediaWiki\Title\Title;
use MediaWiki\User\UserIdentity;
use MediaWikiUnitTestCase;
use Title;
use User;
use WikiPage;

View file

@ -17,13 +17,13 @@ use MediaWiki\Permissions\RestrictionStore;
use MediaWiki\Revision\RevisionLookup;
use MediaWiki\Revision\RevisionRecord;
use MediaWiki\Revision\RevisionStore;
use MediaWiki\Title\Title;
use MediaWiki\User\UserEditTracker;
use MediaWiki\User\UserGroupManager;
use MediaWiki\User\UserIdentityValue;
use MediaWikiUnitTestCase;
use ParserFactory;
use Psr\Log\NullLogger;
use Title;
use UnexpectedValueException;
use User;
use WANObjectCache;