mirror of
https://github.com/StarCitizenTools/mediawiki-skins-Citizen.git
synced 2024-11-28 16:21:11 +00:00
ci: 👷 lint code to MediaWiki standards
Check commit and GitHub actions for more details
This commit is contained in:
parent
ea68ce0d25
commit
0059c2c2ff
|
@ -82,7 +82,7 @@ class ApiWebappManifest extends ApiBase {
|
|||
'svg'
|
||||
];
|
||||
|
||||
foreach( $logoKeys as $logoKey ) {
|
||||
foreach ( $logoKeys as $logoKey ) {
|
||||
$logo = (string)$logos[$logoKey];
|
||||
|
||||
if ( !empty( $logo ) ) {
|
||||
|
|
|
@ -120,7 +120,7 @@ class SkinHooks implements
|
|||
'unprotect' => 'unLock'
|
||||
];
|
||||
|
||||
foreach( $iconMap as $key => $icon ) {
|
||||
foreach ( $iconMap as $key => $icon ) {
|
||||
if ( isset( $links['actions'][$key] ) ) {
|
||||
$links['actions'][$key]['icon'] ??= $icon;
|
||||
}
|
||||
|
@ -171,7 +171,7 @@ class SkinHooks implements
|
|||
foreach ( $links[$menu] as $key => $item ) {
|
||||
$icon = $item['icon'] ?? '';
|
||||
|
||||
if( $icon ) {
|
||||
if ( $icon ) {
|
||||
// Html::makeLink will pass this through rawElement
|
||||
// Avoid using mw-ui-icon in case its styles get loaded
|
||||
$links[$menu][$key]['link-html'] = '<span class="citizen-ui-icon mw-ui-icon-' . $icon . ' mw-ui-icon-wikimedia-' . $icon . '"></span>';
|
||||
|
|
Loading…
Reference in a new issue