ci: 👷 lint code to MediaWiki standards

Check commit and GitHub actions for more details
This commit is contained in:
github-actions 2024-04-24 19:13:26 +00:00
parent 7b1c319e24
commit b0d52d6fd8
4 changed files with 5 additions and 5 deletions

View file

@ -152,7 +152,7 @@ class Tabber {
// Legacy mode
if ( self::$parseTabName ) {
$tabName = $parser->recursiveTagParseFully( $tabName );
$tabName = $parser->recursiveTagParseFully( $tabName );
// Remove outer paragraph tags
if ( substr( $tabName, 0, 3 ) == '<p>' ) {
$tabName = substr( $tabName, 3 );

View file

@ -90,7 +90,7 @@ class TabberParsoid extends ExtensionTagHandler implements ExtensionModule {
'context' => 'inline',
]
],
true // sol
true // sol
)
);

View file

@ -127,9 +127,9 @@ class TabberTransclude {
);
$utils = MediaWikiServices::getInstance()->getUrlUtils();
$utils->expand( wfScript( 'api' ) . $query, PROTO_CANONICAL );
$utils->expand( wfScript( 'api' ) . $query, PROTO_CANONICAL );
$dataProps['load-url'] = $utils->expand( wfScript( 'api' ) . $query, PROTO_CANONICAL );
$dataProps['load-url'] = $utils->expand( wfScript( 'api' ) . $query, PROTO_CANONICAL );
$oldTabBody = $tabBody;
// Allow extensions to update the lazy loaded tab
MediaWikiServices::getInstance()->getHookContainer()->run(

2
package-lock.json generated
View file

@ -1,5 +1,5 @@
{
"name": "TabberNeue",
"name": "mediawiki-extensions-TabberNeue",
"lockfileVersion": 2,
"requires": true,
"packages": {