diff --git a/composer.json b/composer.json index 664b9b4..7a306bc 100644 --- a/composer.json +++ b/composer.json @@ -1,7 +1,7 @@ { "require-dev": { "jakub-onderka/php-parallel-lint": "0.9.2", - "mediawiki/mediawiki-codesniffer": "0.7.2", + "mediawiki/mediawiki-codesniffer": "0.9.0", "jakub-onderka/php-console-highlighter": "0.3.2" }, "scripts": { diff --git a/includes/CookieWarning.hooks.php b/includes/CookieWarning.hooks.php index 47b6fa9..22beb7e 100644 --- a/includes/CookieWarning.hooks.php +++ b/includes/CookieWarning.hooks.php @@ -61,14 +61,14 @@ class CookieWarningHooks { $tpl->data['headelement'] = ''; } $form = Html::openElement( 'form', [ 'method' => 'POST' ] ) . - Html::submitButton( - $sk->msg( 'cookiewarning-ok-label' )->text(), - [ - 'name' => 'disablecookiewarning', - 'class' => 'mw-cookiewarning-dismiss' - ] - ) . - Html::closeElement( 'form' ); + Html::submitButton( + $sk->msg( 'cookiewarning-ok-label' )->text(), + [ + 'name' => 'disablecookiewarning', + 'class' => 'mw-cookiewarning-dismiss' + ] + ) . + Html::closeElement( 'form' ); $cookieImage = Html::openElement( 'div', [ 'class' => 'mw-cookiewarning-cimage' ] ) . '🍪' . @@ -80,19 +80,19 @@ class CookieWarningHooks { 'div', [ 'class' => 'mw-cookiewarning-container' ] ) . - ( $isMobile ? $form : '' ) . + ( $isMobile ? $form : '' ) . Html::openElement( 'div', [ 'class' => 'mw-cookiewarning-text' ] ) . - ( $isMobile ? $cookieImage : '' ) . + ( $isMobile ? $cookieImage : '' ) . Html::element( 'span', [], $sk->msg( 'cookiewarning-info' )->text() ) . $moreLink . - ( !$isMobile ? $form : '' ) . + ( !$isMobile ? $form : '' ) . Html::closeElement( 'div' ) . Html::closeElement( 'div' ); } diff --git a/phpcs.xml b/phpcs.xml index d81a292..2c25c60 100644 --- a/phpcs.xml +++ b/phpcs.xml @@ -1,8 +1,12 @@ - + + + + + . - - + + vendor