diff --git a/includes/Consequences/Consequence/Throttle.php b/includes/Consequences/Consequence/Throttle.php index 5bda032cb..17c178fc2 100644 --- a/includes/Consequences/Consequence/Throttle.php +++ b/includes/Consequences/Consequence/Throttle.php @@ -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; /** diff --git a/includes/EchoNotifier.php b/includes/EchoNotifier.php index 40d762193..4ee13f2da 100644 --- a/includes/EchoNotifier.php +++ b/includes/EchoNotifier.php @@ -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 diff --git a/includes/FilterProfiler.php b/includes/FilterProfiler.php index 2346e78aa..3ca007645 100644 --- a/includes/FilterProfiler.php +++ b/includes/FilterProfiler.php @@ -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; diff --git a/includes/FilterRunner.php b/includes/FilterRunner.php index e8d56b2bf..19c521a27 100644 --- a/includes/FilterRunner.php +++ b/includes/FilterRunner.php @@ -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; /** diff --git a/includes/FilterRunnerFactory.php b/includes/FilterRunnerFactory.php index 98194251c..8ff94e0ab 100644 --- a/includes/FilterRunnerFactory.php +++ b/includes/FilterRunnerFactory.php @@ -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 { diff --git a/includes/Hooks/AbuseFilterAlterVariablesHook.php b/includes/Hooks/AbuseFilterAlterVariablesHook.php index d25f2ead9..20f9e1180 100644 --- a/includes/Hooks/AbuseFilterAlterVariablesHook.php +++ b/includes/Hooks/AbuseFilterAlterVariablesHook.php @@ -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 { diff --git a/includes/Hooks/AbuseFilterFilterActionHook.php b/includes/Hooks/AbuseFilterFilterActionHook.php index e6e116a1c..3113b1017 100644 --- a/includes/Hooks/AbuseFilterFilterActionHook.php +++ b/includes/Hooks/AbuseFilterFilterActionHook.php @@ -3,7 +3,7 @@ namespace MediaWiki\Extension\AbuseFilter\Hooks; use MediaWiki\Extension\AbuseFilter\Variables\VariableHolder; -use Title; +use MediaWiki\Title\Title; interface AbuseFilterFilterActionHook { /** diff --git a/includes/Hooks/AbuseFilterGenerateTitleVarsHook.php b/includes/Hooks/AbuseFilterGenerateTitleVarsHook.php index 5c379f3e9..17f7d25df 100644 --- a/includes/Hooks/AbuseFilterGenerateTitleVarsHook.php +++ b/includes/Hooks/AbuseFilterGenerateTitleVarsHook.php @@ -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 { /** diff --git a/includes/Hooks/AbuseFilterHookRunner.php b/includes/Hooks/AbuseFilterHookRunner.php index 88ed8dc12..1b6cb8a19 100644 --- a/includes/Hooks/AbuseFilterHookRunner.php +++ b/includes/Hooks/AbuseFilterHookRunner.php @@ -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; /** diff --git a/includes/Hooks/AbuseFilterShouldFilterActionHook.php b/includes/Hooks/AbuseFilterShouldFilterActionHook.php index 33fc25234..be7b06c8e 100644 --- a/includes/Hooks/AbuseFilterShouldFilterActionHook.php +++ b/includes/Hooks/AbuseFilterShouldFilterActionHook.php @@ -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 { diff --git a/includes/Hooks/Handlers/EditPermissionHandler.php b/includes/Hooks/Handlers/EditPermissionHandler.php index 97d8e7f86..23b742210 100644 --- a/includes/Hooks/Handlers/EditPermissionHandler.php +++ b/includes/Hooks/Handlers/EditPermissionHandler.php @@ -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; diff --git a/includes/Hooks/Handlers/FilteredActionsHandler.php b/includes/Hooks/Handlers/FilteredActionsHandler.php index 6ef9d30bd..9bb313bb5 100644 --- a/includes/Hooks/Handlers/FilteredActionsHandler.php +++ b/includes/Hooks/Handlers/FilteredActionsHandler.php @@ -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; diff --git a/includes/Hooks/Handlers/ToolLinksHandler.php b/includes/Hooks/Handlers/ToolLinksHandler.php index 1a22ba0cb..220c5aad5 100644 --- a/includes/Hooks/Handlers/ToolLinksHandler.php +++ b/includes/Hooks/Handlers/ToolLinksHandler.php @@ -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; diff --git a/includes/Pager/AbuseFilterExaminePager.php b/includes/Pager/AbuseFilterExaminePager.php index e5b76be6e..7a1574225 100644 --- a/includes/Pager/AbuseFilterExaminePager.php +++ b/includes/Pager/AbuseFilterExaminePager.php @@ -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 { diff --git a/includes/Pager/AbuseFilterHistoryPager.php b/includes/Pager/AbuseFilterHistoryPager.php index cb86876cb..6ff448a5a 100644 --- a/includes/Pager/AbuseFilterHistoryPager.php +++ b/includes/Pager/AbuseFilterHistoryPager.php @@ -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; diff --git a/includes/Pager/AbuseLogPager.php b/includes/Pager/AbuseLogPager.php index 962af1b64..157f2f234 100644 --- a/includes/Pager/AbuseLogPager.php +++ b/includes/Pager/AbuseLogPager.php @@ -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; diff --git a/includes/Special/SpecialAbuseFilter.php b/includes/Special/SpecialAbuseFilter.php index df174485c..5c6c13925 100644 --- a/includes/Special/SpecialAbuseFilter.php +++ b/includes/Special/SpecialAbuseFilter.php @@ -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 { diff --git a/includes/Special/SpecialAbuseLog.php b/includes/Special/SpecialAbuseLog.php index 7bb579555..260f8327a 100644 --- a/includes/Special/SpecialAbuseLog.php +++ b/includes/Special/SpecialAbuseLog.php @@ -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; diff --git a/includes/VariableGenerator/RCVariableGenerator.php b/includes/VariableGenerator/RCVariableGenerator.php index 81dc66c73..c1569f3ce 100644 --- a/includes/VariableGenerator/RCVariableGenerator.php +++ b/includes/VariableGenerator/RCVariableGenerator.php @@ -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; /** diff --git a/includes/VariableGenerator/RunVariableGenerator.php b/includes/VariableGenerator/RunVariableGenerator.php index 7a657ee1e..c4d079ada 100644 --- a/includes/VariableGenerator/RunVariableGenerator.php +++ b/includes/VariableGenerator/RunVariableGenerator.php @@ -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; diff --git a/includes/VariableGenerator/VariableGenerator.php b/includes/VariableGenerator/VariableGenerator.php index f19a0c360..eab5b4f70 100644 --- a/includes/VariableGenerator/VariableGenerator.php +++ b/includes/VariableGenerator/VariableGenerator.php @@ -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; diff --git a/includes/VariableGenerator/VariableGeneratorFactory.php b/includes/VariableGenerator/VariableGeneratorFactory.php index 2758b8f21..ff15e37df 100644 --- a/includes/VariableGenerator/VariableGeneratorFactory.php +++ b/includes/VariableGenerator/VariableGeneratorFactory.php @@ -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 { diff --git a/includes/Variables/LazyVariableComputer.php b/includes/Variables/LazyVariableComputer.php index a01ecb7a6..2a039d0ef 100644 --- a/includes/Variables/LazyVariableComputer.php +++ b/includes/Variables/LazyVariableComputer.php @@ -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; diff --git a/includes/View/AbuseFilterView.php b/includes/View/AbuseFilterView.php index a73e38dc0..8097dcde0 100644 --- a/includes/View/AbuseFilterView.php +++ b/includes/View/AbuseFilterView.php @@ -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; diff --git a/includes/View/AbuseFilterViewExamine.php b/includes/View/AbuseFilterViewExamine.php index c7ee154f6..c22353231 100644 --- a/includes/View/AbuseFilterViewExamine.php +++ b/includes/View/AbuseFilterViewExamine.php @@ -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; diff --git a/includes/View/AbuseFilterViewTestBatch.php b/includes/View/AbuseFilterViewTestBatch.php index d24728922..245bca06d 100644 --- a/includes/View/AbuseFilterViewTestBatch.php +++ b/includes/View/AbuseFilterViewTestBatch.php @@ -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 { diff --git a/maintenance/UpdateVarDumps.php b/maintenance/UpdateVarDumps.php index 45d6a2d02..a154066c6 100644 --- a/maintenance/UpdateVarDumps.php +++ b/maintenance/UpdateVarDumps.php @@ -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; diff --git a/tests/phpunit/integration/EchoNotifierTest.php b/tests/phpunit/integration/EchoNotifierTest.php index 7b2418e44..e8b44b978 100644 --- a/tests/phpunit/integration/EchoNotifierTest.php +++ b/tests/phpunit/integration/EchoNotifierTest.php @@ -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 diff --git a/tests/phpunit/unit/AbuseLoggerFactoryTest.php b/tests/phpunit/unit/AbuseLoggerFactoryTest.php index a35528638..123a1bc95 100644 --- a/tests/phpunit/unit/AbuseLoggerFactoryTest.php +++ b/tests/phpunit/unit/AbuseLoggerFactoryTest.php @@ -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; diff --git a/tests/phpunit/unit/Consequences/Consequence/ThrottleTest.php b/tests/phpunit/unit/Consequences/Consequence/ThrottleTest.php index 89a087d01..68380a1fe 100644 --- a/tests/phpunit/unit/Consequences/Consequence/ThrottleTest.php +++ b/tests/phpunit/unit/Consequences/Consequence/ThrottleTest.php @@ -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; /** diff --git a/tests/phpunit/unit/EditRevUpdaterTest.php b/tests/phpunit/unit/EditRevUpdaterTest.php index 53ea4aced..ae55f055b 100644 --- a/tests/phpunit/unit/EditRevUpdaterTest.php +++ b/tests/phpunit/unit/EditRevUpdaterTest.php @@ -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; diff --git a/tests/phpunit/unit/FilterProfilerTest.php b/tests/phpunit/unit/FilterProfilerTest.php index ada8279cd..c635c2a0f 100644 --- a/tests/phpunit/unit/FilterProfilerTest.php +++ b/tests/phpunit/unit/FilterProfilerTest.php @@ -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; diff --git a/tests/phpunit/unit/FilterRunnerFactoryTest.php b/tests/phpunit/unit/FilterRunnerFactoryTest.php index b02003978..bbf323638 100644 --- a/tests/phpunit/unit/FilterRunnerFactoryTest.php +++ b/tests/phpunit/unit/FilterRunnerFactoryTest.php @@ -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; /** diff --git a/tests/phpunit/unit/FilterRunnerTest.php b/tests/phpunit/unit/FilterRunnerTest.php index acf815187..226edb53d 100644 --- a/tests/phpunit/unit/FilterRunnerTest.php +++ b/tests/phpunit/unit/FilterRunnerTest.php @@ -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; diff --git a/tests/phpunit/unit/Hooks/ToolLinksHandlerTest.php b/tests/phpunit/unit/Hooks/ToolLinksHandlerTest.php index 1dbed0394..2505520af 100644 --- a/tests/phpunit/unit/Hooks/ToolLinksHandlerTest.php +++ b/tests/phpunit/unit/Hooks/ToolLinksHandlerTest.php @@ -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; diff --git a/tests/phpunit/unit/VariableGenerator/VariableGeneratorFactoryTest.php b/tests/phpunit/unit/VariableGenerator/VariableGeneratorFactoryTest.php index ceb9df577..a7f6146f4 100644 --- a/tests/phpunit/unit/VariableGenerator/VariableGeneratorFactoryTest.php +++ b/tests/phpunit/unit/VariableGenerator/VariableGeneratorFactoryTest.php @@ -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; /** diff --git a/tests/phpunit/unit/VariableGenerator/VariableGeneratorTest.php b/tests/phpunit/unit/VariableGenerator/VariableGeneratorTest.php index e74606cd9..68838ddcc 100644 --- a/tests/phpunit/unit/VariableGenerator/VariableGeneratorTest.php +++ b/tests/phpunit/unit/VariableGenerator/VariableGeneratorTest.php @@ -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; diff --git a/tests/phpunit/unit/Variables/LazyVariableComputerTest.php b/tests/phpunit/unit/Variables/LazyVariableComputerTest.php index 88047fed9..992172f74 100644 --- a/tests/phpunit/unit/Variables/LazyVariableComputerTest.php +++ b/tests/phpunit/unit/Variables/LazyVariableComputerTest.php @@ -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;