From 2c3db10bb9a8e9abf0d6c4106afef85501aa8dd8 Mon Sep 17 00:00:00 2001 From: github-actions Date: Sun, 23 Oct 2022 17:38:49 +0000 Subject: [PATCH] =?UTF-8?q?ci:=20=F0=9F=91=B7=20lint=20code=20to=20MediaWi?= =?UTF-8?q?ki=20standards?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Check commit and GitHub actions for more details --- includes/Api/ApiWebappManifest.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/includes/Api/ApiWebappManifest.php b/includes/Api/ApiWebappManifest.php index 94be8ea9..fa3d95da 100644 --- a/includes/Api/ApiWebappManifest.php +++ b/includes/Api/ApiWebappManifest.php @@ -71,7 +71,7 @@ class ApiWebappManifest extends ApiBase { private function getIcons( $config, $services ) { $icons = []; $logos = $config->get( 'Logos' ); - + // That really shouldn't happen if ( $logos !== false ) { $logoKeys = [ @@ -82,7 +82,7 @@ class ApiWebappManifest extends ApiBase { 'svg' ]; - foreach( $logoKeys as $logoKey ) { + foreach ( $logoKeys as $logoKey ) { $logo = (string)$logos[$logoKey]; if ( !empty( $logo ) ) { @@ -97,7 +97,7 @@ class ApiWebappManifest extends ApiBase { $icon = [ 'src' => $logo ]; - + if ( isset( $logoSize ) && $logoSize !== false ) { $icon['sizes'] = $logoSize[0] . 'x' . $logoSize[1]; $icon['type'] = $logoSize['mime'];