diff --git a/.phpcs.xml b/.phpcs.xml index 2e1b08b..eddb6dc 100644 --- a/.phpcs.xml +++ b/.phpcs.xml @@ -1,8 +1,6 @@ - - - + . diff --git a/includes/Hooks.php b/includes/Hooks.php index e7ac1b3..8ff4975 100644 --- a/includes/Hooks.php +++ b/includes/Hooks.php @@ -204,7 +204,8 @@ class Hooks { */ public static function onParserFirstCallInit( Parser $parser ) { $parser->setHook( 'templatestyles', [ __CLASS__, 'handleTag' ] ); - $parser->extTemplateStylesCache = new MapCacheLRU( 100 ); // 100 is arbitrary + // 100 is arbitrary + $parser->extTemplateStylesCache = new MapCacheLRU( 100 ); } /** @@ -331,7 +332,8 @@ class Hooks { // Include any non-default wrapper class in the cache key too $wrapClass = $parser->getOptions()->getWrapOutputClass(); - if ( $wrapClass === false ) { // deprecated + if ( $wrapClass === false ) { + // deprecated $wrapClass = 'mw-parser-output'; } if ( $wrapClass !== 'mw-parser-output' || $extraWrapper !== null ) { diff --git a/includes/TemplateStylesContentHandler.php b/includes/TemplateStylesContentHandler.php index b3107d9..77603c7 100644 --- a/includes/TemplateStylesContentHandler.php +++ b/includes/TemplateStylesContentHandler.php @@ -158,7 +158,8 @@ class TemplateStylesContentHandler extends CodeContentHandler { $sanitizer = Hooks::getSanitizer( $options['class'] ?: 'mw-parser-output', $options['extraWrapper'] ); - $sanitizer->clearSanitizationErrors(); // Just in case + // Just in case + $sanitizer->clearSanitizationErrors(); $stylesheet = $sanitizer->sanitize( $stylesheet ); self::processErrors( $status, $sanitizer->getSanitizationErrors(), $options['severity'] ); $sanitizer->clearSanitizationErrors();