diff --git a/.phpcs.xml b/.phpcs.xml index b0afaa0f..e1ad36c6 100644 --- a/.phpcs.xml +++ b/.phpcs.xml @@ -3,9 +3,6 @@ - - Scribunto_LuaTitleBlacklistLibrary\.php - . diff --git a/includes/Scribunto_LuaTitleBlacklistLibrary.php b/includes/LuaTitleBlacklistLibrary.php similarity index 95% rename from includes/Scribunto_LuaTitleBlacklistLibrary.php rename to includes/LuaTitleBlacklistLibrary.php index d388ec69..2bcbd327 100644 --- a/includes/Scribunto_LuaTitleBlacklistLibrary.php +++ b/includes/LuaTitleBlacklistLibrary.php @@ -5,7 +5,7 @@ namespace MediaWiki\Extension\TitleBlacklist; use MediaWiki\Extension\Scribunto\Engines\LuaCommon\LibraryBase; use MediaWiki\MediaWikiServices; -class Scribunto_LuaTitleBlacklistLibrary extends LibraryBase { +class LuaTitleBlacklistLibrary extends LibraryBase { public function register() { $lib = [ 'test' => [ $this, 'test' ], diff --git a/includes/ScribuntoHooks.php b/includes/ScribuntoHooks.php index 5c733450..d07b03ac 100644 --- a/includes/ScribuntoHooks.php +++ b/includes/ScribuntoHooks.php @@ -20,7 +20,7 @@ class ScribuntoHooks implements ScribuntoExternalLibrariesHook { */ public function onScribuntoExternalLibraries( string $engine, array &$extraLibraries ) { if ( $engine === 'lua' ) { - $extraLibraries['mw.ext.TitleBlacklist'] = Scribunto_LuaTitleBlacklistLibrary::class; + $extraLibraries['mw.ext.TitleBlacklist'] = LuaTitleBlacklistLibrary::class; } } }