ci: lint code to MediaWiki standards

Check commit and GitHub actions for more details
This commit is contained in:
github-actions 2021-01-09 22:15:47 +00:00
parent affe2ddc66
commit 002240b384
2 changed files with 48 additions and 48 deletions

View file

@ -155,7 +155,7 @@ class CitizenHooks {
/**
* @param User $user
* @param array $preferences
* @param array &$preferences
*/
public static function onGetPreferences( $user, &$preferences ) {
$options = MediaWikiServices::getInstance()

View file

@ -741,7 +741,7 @@ class SkinCitizen extends SkinMustache {
* If the color scheme is set to auto, the theme switcher script will be added
*
* @param OutputPage $out
* @param array $skinOptions
* @param array &$skinOptions
*/
private function setSkinColorScheme( OutputPage $out, array &$skinOptions ) {
$options = MediaWikiServices::getInstance()
@ -755,7 +755,7 @@ class SkinCitizen extends SkinMustache {
if ( $setDarkClass ) {
$out->addHtmlClasses( 'skin-citizen-dark' );
} elseif ($setLightClass) {
} elseif ( $setLightClass ) {
$out->addHtmlClasses( 'skin-citizen-light' );
} else {
$skinOptions['scripts'] = array_merge(