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 // Legacy mode
if ( self::$parseTabName ) { if ( self::$parseTabName ) {
$tabName = $parser->recursiveTagParseFully( $tabName ); $tabName = $parser->recursiveTagParseFully( $tabName );
// Remove outer paragraph tags // Remove outer paragraph tags
if ( substr( $tabName, 0, 3 ) == '<p>' ) { if ( substr( $tabName, 0, 3 ) == '<p>' ) {
$tabName = substr( $tabName, 3 ); $tabName = substr( $tabName, 3 );

View file

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

View file

@ -127,9 +127,9 @@ class TabberTransclude {
); );
$utils = MediaWikiServices::getInstance()->getUrlUtils(); $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; $oldTabBody = $tabBody;
// Allow extensions to update the lazy loaded tab // Allow extensions to update the lazy loaded tab
MediaWikiServices::getInstance()->getHookContainer()->run( MediaWikiServices::getInstance()->getHookContainer()->run(

2
package-lock.json generated
View file

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