ci: 👷 lint code to MediaWiki standards

Check commit and GitHub actions for more details
This commit is contained in:
github-actions 2022-11-01 01:19:56 +00:00 committed by alistair3149
parent ea68ce0d25
commit 0059c2c2ff
No known key found for this signature in database
2 changed files with 3 additions and 3 deletions

View file

@ -82,7 +82,7 @@ class ApiWebappManifest extends ApiBase {
'svg'
];
foreach( $logoKeys as $logoKey ) {
foreach ( $logoKeys as $logoKey ) {
$logo = (string)$logos[$logoKey];
if ( !empty( $logo ) ) {

View file

@ -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>';