Use namespaced classes

Changes to the use statements done automatically via script

Change-Id: I28cb0daddf167e6e713b756e1f6ad0bbe98858ec
This commit is contained in:
Umherirrender 2024-10-20 11:54:11 +02:00
parent f5f0eaf705
commit 9231163147
15 changed files with 27 additions and 27 deletions

View file

@ -2,14 +2,14 @@
namespace MediaWiki\Extension\Scribunto;
use ApiBase;
use ApiMain;
use MediaWiki\Api\ApiBase;
use MediaWiki\Api\ApiMain;
use MediaWiki\Html\Html;
use MediaWiki\MediaWikiServices;
use MediaWiki\Parser\Parser;
use MediaWiki\Parser\ParserFactory;
use MediaWiki\Parser\ParserOptions;
use MediaWiki\Title\Title;
use ParserFactory;
use ParserOptions;
use Wikimedia\ParamValidator\ParamValidator;
/**

View file

@ -5,8 +5,8 @@ namespace MediaWiki\Extension\Scribunto\Engines\LuaCommon;
use DateTime;
use DateTimeZone;
use Exception;
use Language;
use LanguageCode;
use MediaWiki\Language\Language;
use MediaWiki\Language\LanguageCode;
use MediaWiki\Languages\LanguageNameUtils;
use MediaWiki\MainConfigNames;
use MediaWiki\MediaWikiServices;

View file

@ -24,8 +24,8 @@
namespace MediaWiki\Extension\Scribunto\Engines\LuaCommon;
use MediaWiki\Parser\Parser;
use MediaWiki\Parser\ParserOptions;
use MediaWiki\Title\Title;
use ParserOptions;
/**
* This class provides some basic services that Lua libraries will probably need

View file

@ -3,17 +3,17 @@
namespace MediaWiki\Extension\Scribunto\Engines\LuaCommon;
use Exception;
use FormatJson;
use MediaWiki\Extension\Scribunto\Engines\LuaSandbox\LuaSandboxInterpreter;
use MediaWiki\Extension\Scribunto\Scribunto;
use MediaWiki\Extension\Scribunto\ScribuntoContent;
use MediaWiki\Extension\Scribunto\ScribuntoEngineBase;
use MediaWiki\Extension\Scribunto\ScribuntoException;
use MediaWiki\Html\Html;
use MediaWiki\Json\FormatJson;
use MediaWiki\MediaWikiServices;
use MediaWiki\Parser\Parser;
use MediaWiki\Parser\PPFrame;
use MediaWiki\Title\Title;
use PPFrame;
use RuntimeException;
use Wikimedia\ScopedCallback;

View file

@ -4,8 +4,8 @@ namespace MediaWiki\Extension\Scribunto\Engines\LuaCommon;
use MediaWiki\Extension\Scribunto\ScribuntoException;
use MediaWiki\Extension\Scribunto\ScribuntoModuleBase;
use MediaWiki\Parser\PPFrame;
use MediaWiki\Status\Status;
use PPFrame;
class LuaModule extends ScribuntoModuleBase {
/**

View file

@ -2,10 +2,10 @@
namespace MediaWiki\Extension\Scribunto\Engines\LuaCommon;
use CoreTagHooks;
use FormatJson;
use MediaWiki\Json\FormatJson;
use MediaWiki\MainConfigNames;
use MediaWiki\MediaWikiServices;
use MediaWiki\Parser\CoreTagHooks;
class TextLibrary extends LibraryBase {
// Matches Lua mw.text constants

View file

@ -2,8 +2,8 @@
namespace MediaWiki\Extension\Scribunto\Engines\LuaCommon;
use Content;
use LogicException;
use MediaWiki\Content\Content;
use MediaWiki\Logger\LoggerFactory;
use MediaWiki\MediaWikiServices;
use MediaWiki\Parser\ParserOutputFlags;

View file

@ -2,7 +2,7 @@
namespace MediaWiki\Extension\Scribunto\Engines\LuaCommon;
use CoreParserFunctions;
use MediaWiki\Parser\CoreParserFunctions;
use MediaWiki\Title\Title;
class UriLibrary extends LibraryBase {

View file

@ -25,9 +25,8 @@
namespace MediaWiki\Extension\Scribunto;
use Article;
use Content;
use EmptyBagOStuff;
use MediaWiki\Config\Config;
use MediaWiki\Content\Content;
use MediaWiki\Context\IContextSource;
use MediaWiki\EditPage\EditPage;
use MediaWiki\Hook\EditFilterMergedContentHook;
@ -46,14 +45,15 @@ use MediaWiki\Output\OutputPage;
use MediaWiki\Page\Hook\ArticleViewHeaderHook;
use MediaWiki\Parser\Parser;
use MediaWiki\Parser\ParserOutput;
use MediaWiki\Parser\PPFrame;
use MediaWiki\Parser\PPNode;
use MediaWiki\Revision\Hook\ContentHandlerDefaultModelForHook;
use MediaWiki\Status\Status;
use MediaWiki\Title\Title;
use MediaWiki\User\User;
use MediaWiki\WikiMap\WikiMap;
use PPFrame;
use PPNode;
use UtfNormal\Validator;
use Wikimedia\ObjectCache\EmptyBagOStuff;
use Wikimedia\PSquare;
/**

View file

@ -11,8 +11,8 @@
namespace MediaWiki\Extension\Scribunto;
use MediaWiki\Content\TextContent;
use MediaWiki\Title\Title;
use TextContent;
/**
* Represents the content of a Scribunto script page

View file

@ -2,19 +2,19 @@
namespace MediaWiki\Extension\Scribunto;
use CodeContentHandler;
use Content;
use ExtensionRegistry;
use MediaWiki\Content\CodeContentHandler;
use MediaWiki\Content\Content;
use MediaWiki\Content\Renderer\ContentParseParams;
use MediaWiki\Content\TextContent;
use MediaWiki\Content\ValidationParams;
use MediaWiki\Html\Html;
use MediaWiki\MediaWikiServices;
use MediaWiki\Page\PageIdentity;
use MediaWiki\Parser\ParserOutput;
use MediaWiki\Registration\ExtensionRegistry;
use MediaWiki\Status\Status;
use MediaWiki\SyntaxHighlight\SyntaxHighlight;
use MediaWiki\Title\Title;
use TextContent;
/**
* Scribunto Content Handler

View file

@ -23,8 +23,8 @@
namespace MediaWiki\Extension\Scribunto;
use MediaWiki\Parser\PPFrame;
use MediaWiki\Status\Status;
use PPFrame;
/**
* Class that represents a module. Responsible for initial module parsing

View file

@ -8,8 +8,8 @@ use MediaWiki\Extension\Scribunto\Engines\LuaStandalone\LuaStandaloneEngine;
use MediaWiki\Extension\Scribunto\ScribuntoEngineBase;
use MediaWiki\MediaWikiServices;
use MediaWiki\Parser\Parser;
use MediaWiki\Parser\ParserOptions;
use MediaWiki\Title\Title;
use ParserOptions;
use PHPUnit\Framework\DataProviderTestSuite;
use PHPUnit\Framework\TestSuite;
use PHPUnit\Framework\WarningTestCase;

View file

@ -8,9 +8,9 @@ use MediaWiki\Extension\Scribunto\Engines\LuaSandbox\LuaSandboxEngine;
use MediaWiki\Extension\Scribunto\Engines\LuaStandalone\LuaStandaloneEngine;
use MediaWiki\MediaWikiServices;
use MediaWiki\Parser\Parser;
use MediaWiki\Parser\ParserOptions;
use MediaWiki\Title\Title;
use MediaWikiCoversValidator;
use ParserOptions;
use PHPUnit\Framework\TestCase;
/**

View file

@ -2,13 +2,13 @@
namespace MediaWiki\Extension\Scribunto\Tests\Engines\LuaCommon;
use MediaWiki\Content\WikitextContent;
use MediaWiki\Interwiki\ClassicInterwikiLookup;
use MediaWiki\MainConfigNames;
use MediaWiki\Page\PageIdentityValue;
use MediaWiki\Parser\ParserOutputFlags;
use MediaWiki\Permissions\RestrictionStore;
use MediaWiki\Title\Title;
use WikitextContent;
/**
* @covers \MediaWiki\Extension\Scribunto\Engines\LuaCommon\TitleLibrary