From ac46a91a2c74f5b3210f3d9ccf65b75f13b899f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roland=20H=C3=A4der?= Date: Wed, 4 Jul 2018 00:07:53 +0200 Subject: [PATCH] Fixed parser errors MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Roland Häder --- fromgplus/fromgplus.php | 3 +-- googlemaps/googlemaps.php | 3 +-- smileybutton/smileybutton.php | 2 +- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/fromgplus/fromgplus.php b/fromgplus/fromgplus.php index c48155f2..4ee7c085 100644 --- a/fromgplus/fromgplus.php +++ b/fromgplus/fromgplus.php @@ -40,7 +40,6 @@ function fromgplus_uninstall() { } function fromgplus_addon_settings(App $a, $s) { - if(! local_user()) return; @@ -302,7 +301,7 @@ function fromgplus_cleanupgoogleproxy($fullImage, $image) { $cleaned["full"] = $fullImage; } - if ($cleaned["full"] == "" && exif_imagetype($image) != 0) + if ($cleaned["full"] == "" && exif_imagetype($image) != 0) { $cleaned["full"] = $image; } diff --git a/googlemaps/googlemaps.php b/googlemaps/googlemaps.php index cc0b2daa..866c1166 100644 --- a/googlemaps/googlemaps.php +++ b/googlemaps/googlemaps.php @@ -27,12 +27,11 @@ function googlemaps_uninstall() function googlemaps_location(App $a, array &$item) { - if (! (strlen($item['location']) || strlen($item['coord']))) { return; } - if (isset($item['coord']) { + if (isset($item['coord'])) { $target = "http://maps.google.com/?q=".urlencode($item['coord']); } else { $target = "http://maps.google.com/?q=".urlencode($item['location']); diff --git a/smileybutton/smileybutton.php b/smileybutton/smileybutton.php index 291ec50d..71e1b93f 100644 --- a/smileybutton/smileybutton.php +++ b/smileybutton/smileybutton.php @@ -29,7 +29,7 @@ function smileybutton_uninstall() { function show_button(App $a, &$b) { // Disable if theme is quattro // TODO add style for quattro - if ($a->getCurrentTheme() == 'quattro') + if ($a->getCurrentTheme() == 'quattro') { return; }