mirror of
https://github.com/StarCitizenTools/mediawiki-skins-Citizen.git
synced 2024-11-29 00:31:09 +00:00
ci: lint code to MediaWiki standards
Check commit and GitHub actions for more details
This commit is contained in:
parent
affe2ddc66
commit
002240b384
|
@ -155,7 +155,7 @@ class CitizenHooks {
|
|||
|
||||
/**
|
||||
* @param User $user
|
||||
* @param array $preferences
|
||||
* @param array &$preferences
|
||||
*/
|
||||
public static function onGetPreferences( $user, &$preferences ) {
|
||||
$options = MediaWikiServices::getInstance()
|
||||
|
|
|
@ -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(
|
||||
|
|
Loading…
Reference in a new issue