mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Cite
synced 2024-11-23 14:36:51 +00:00
Use namespaced classes
Changes to the use statements done automatically via script Change-Id: I0768f296b528c81edd6bd9ac7d76515b15f3da6f
This commit is contained in:
parent
74ce9db4d4
commit
411ee7efad
|
@ -3,12 +3,12 @@
|
|||
namespace Cite;
|
||||
|
||||
use InvalidArgumentException;
|
||||
use Language;
|
||||
use MediaWiki\Html\Html;
|
||||
use MediaWiki\Language\Language;
|
||||
use MediaWiki\Message\Message;
|
||||
use MediaWiki\Parser\Parser;
|
||||
use MediaWiki\Parser\ParserOptions;
|
||||
use MediaWiki\Parser\Sanitizer;
|
||||
use ParserOptions;
|
||||
use StatusValue;
|
||||
|
||||
/**
|
||||
|
|
|
@ -6,16 +6,16 @@
|
|||
|
||||
namespace Cite\Hooks;
|
||||
|
||||
use ApiQuerySiteinfo;
|
||||
use Cite\ReferencePreviews\ReferencePreviewsContext;
|
||||
use Cite\ReferencePreviews\ReferencePreviewsGadgetsIntegration;
|
||||
use ExtensionRegistry;
|
||||
use MediaWiki\Api\ApiQuerySiteinfo;
|
||||
use MediaWiki\Api\Hook\APIQuerySiteInfoGeneralInfoHook;
|
||||
use MediaWiki\Config\Config;
|
||||
use MediaWiki\EditPage\EditPage;
|
||||
use MediaWiki\Hook\EditPage__showEditForm_initialHook;
|
||||
use MediaWiki\Output\Hook\MakeGlobalVariablesScriptHook;
|
||||
use MediaWiki\Output\OutputPage;
|
||||
use MediaWiki\Registration\ExtensionRegistry;
|
||||
use MediaWiki\ResourceLoader\Hook\ResourceLoaderGetConfigVarsHook;
|
||||
use MediaWiki\ResourceLoader\Hook\ResourceLoaderRegisterModulesHook;
|
||||
use MediaWiki\ResourceLoader\ResourceLoader;
|
||||
|
|
|
@ -9,7 +9,7 @@ use MediaWiki\Hook\ParserClearStateHook;
|
|||
use MediaWiki\Hook\ParserClonedHook;
|
||||
use MediaWiki\Hook\ParserFirstCallInitHook;
|
||||
use MediaWiki\Parser\Parser;
|
||||
use StripState;
|
||||
use MediaWiki\Parser\StripState;
|
||||
|
||||
/**
|
||||
* @license GPL-2.0-or-later
|
||||
|
|
|
@ -5,7 +5,7 @@ namespace Cite\Hooks;
|
|||
use Cite\Cite;
|
||||
use MediaWiki\Config\Config;
|
||||
use MediaWiki\Parser\Parser;
|
||||
use PPFrame;
|
||||
use MediaWiki\Parser\PPFrame;
|
||||
|
||||
/**
|
||||
* @license GPL-2.0-or-later
|
||||
|
|
|
@ -2,10 +2,10 @@
|
|||
|
||||
namespace Cite;
|
||||
|
||||
use Language;
|
||||
use MediaWiki\Language\Language;
|
||||
use MediaWiki\Message\Message;
|
||||
use MessageLocalizer;
|
||||
use MessageSpecifier;
|
||||
use Wikimedia\Message\MessageSpecifier;
|
||||
|
||||
/**
|
||||
* Interface abstracts everything a Cite needs to do with languages.
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
namespace Cite;
|
||||
|
||||
use LogicException;
|
||||
use StripState;
|
||||
use MediaWiki\Parser\StripState;
|
||||
|
||||
/**
|
||||
* Encapsulates most of Cite state during parsing. This includes metadata about each ref tag,
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
namespace Cite\ResourceLoader;
|
||||
|
||||
use ExtensionRegistry;
|
||||
use MediaWiki\Registration\ExtensionRegistry;
|
||||
use MediaWiki\ResourceLoader\FileModule;
|
||||
use MediaWiki\ResourceLoader\Module;
|
||||
|
||||
|
|
|
@ -2,8 +2,8 @@
|
|||
|
||||
namespace Cite\Tests;
|
||||
|
||||
use MediaWiki\Parser\ParserOptions;
|
||||
use MediaWiki\Title\Title;
|
||||
use ParserOptions;
|
||||
|
||||
/**
|
||||
* @group Database
|
||||
|
|
|
@ -2,9 +2,9 @@
|
|||
|
||||
namespace Cite\Tests;
|
||||
|
||||
use ApiQuerySiteinfo;
|
||||
use Cite\Hooks\CiteHooks;
|
||||
use Cite\ReferencePreviews\ReferencePreviewsGadgetsIntegration;
|
||||
use MediaWiki\Api\ApiQuerySiteinfo;
|
||||
use MediaWiki\Config\HashConfig;
|
||||
use MediaWiki\ResourceLoader\ResourceLoader;
|
||||
use MediaWiki\User\Options\StaticUserOptionsLookup;
|
||||
|
|
|
@ -6,10 +6,10 @@ use Cite\Cite;
|
|||
use Cite\ErrorReporter;
|
||||
use Cite\ReferenceListFormatter;
|
||||
use Cite\ReferenceStack;
|
||||
use Language;
|
||||
use MediaWiki\Language\Language;
|
||||
use MediaWiki\MainConfigNames;
|
||||
use MediaWiki\Parser\Parser;
|
||||
use ParserOptions;
|
||||
use MediaWiki\Parser\ParserOptions;
|
||||
use Wikimedia\TestingAccessWrapper;
|
||||
|
||||
/**
|
||||
|
|
|
@ -4,7 +4,7 @@ declare( strict_types = 1 );
|
|||
|
||||
namespace Cite\Tests\Integration;
|
||||
|
||||
use ExtensionRegistry;
|
||||
use MediaWiki\Registration\ExtensionRegistry;
|
||||
use Wikimedia\ObjectFactory\ObjectFactory;
|
||||
use Wikimedia\Parsoid\Core\SelserData;
|
||||
use Wikimedia\Parsoid\DOM\Element;
|
||||
|
|
|
@ -8,11 +8,11 @@ use Cite\FootnoteMarkFormatter;
|
|||
use Cite\ReferenceListFormatter;
|
||||
use Cite\ReferenceStack;
|
||||
use Cite\Tests\TestUtils;
|
||||
use Language;
|
||||
use LogicException;
|
||||
use MediaWiki\Language\Language;
|
||||
use MediaWiki\Parser\Parser;
|
||||
use ParserOptions;
|
||||
use StripState;
|
||||
use MediaWiki\Parser\ParserOptions;
|
||||
use MediaWiki\Parser\StripState;
|
||||
use Wikimedia\TestingAccessWrapper;
|
||||
|
||||
/**
|
||||
|
|
|
@ -6,9 +6,9 @@ use Cite\Cite;
|
|||
use Cite\Hooks\CiteParserHooks;
|
||||
use MediaWiki\Config\Config;
|
||||
use MediaWiki\Parser\Parser;
|
||||
use MediaWiki\Parser\ParserOptions;
|
||||
use MediaWiki\Parser\ParserOutput;
|
||||
use ParserOptions;
|
||||
use StripState;
|
||||
use MediaWiki\Parser\StripState;
|
||||
|
||||
/**
|
||||
* @covers \Cite\Hooks\CiteParserHooks
|
||||
|
|
|
@ -7,7 +7,7 @@ use Cite\Hooks\CiteParserTagHooks;
|
|||
use MediaWiki\Config\Config;
|
||||
use MediaWiki\Parser\Parser;
|
||||
use MediaWiki\Parser\ParserOutput;
|
||||
use PPFrame;
|
||||
use MediaWiki\Parser\PPFrame;
|
||||
|
||||
/**
|
||||
* @covers \Cite\Hooks\CiteParserTagHooks
|
||||
|
|
|
@ -4,10 +4,10 @@ namespace Cite\Tests\Unit;
|
|||
|
||||
use Cite\ErrorReporter;
|
||||
use Cite\ReferenceMessageLocalizer;
|
||||
use Language;
|
||||
use MediaWiki\Language\Language;
|
||||
use MediaWiki\Message\Message;
|
||||
use MediaWiki\Parser\Parser;
|
||||
use ParserOptions;
|
||||
use MediaWiki\Parser\ParserOptions;
|
||||
|
||||
/**
|
||||
* @covers \Cite\ErrorReporter
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
namespace Cite\Tests\Unit;
|
||||
|
||||
use Cite\ReferenceMessageLocalizer;
|
||||
use Language;
|
||||
use MediaWiki\Language\Language;
|
||||
|
||||
/**
|
||||
* @covers \Cite\ReferenceMessageLocalizer
|
||||
|
|
|
@ -5,7 +5,7 @@ namespace Cite\Tests\Unit;
|
|||
use Cite\ReferenceStack;
|
||||
use Cite\Tests\TestUtils;
|
||||
use LogicException;
|
||||
use StripState;
|
||||
use MediaWiki\Parser\StripState;
|
||||
use Wikimedia\TestingAccessWrapper;
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue