From 8ec21747f344b020cfca116e6a4e0a2d25bafe28 Mon Sep 17 00:00:00 2001 From: Varun Patil Date: Fri, 14 Apr 2023 00:02:16 -0700 Subject: [PATCH] lint: fix php --- lib/Db/TimelineWritePlaces.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/Db/TimelineWritePlaces.php b/lib/Db/TimelineWritePlaces.php index bf07c4d0..a941e2b1 100644 --- a/lib/Db/TimelineWritePlaces.php +++ b/lib/Db/TimelineWritePlaces.php @@ -175,8 +175,8 @@ trait TimelineWritePlaces */ private static function readCoord(array &$exif) { - $lat = array_key_exists(LAT_KEY, $exif) ? round((float) $exif[LAT_KEY], 6) : null; - $lon = array_key_exists(LON_KEY, $exif) ? round((float) $exif[LON_KEY], 6) : null; + $lat = \array_key_exists(LAT_KEY, $exif) ? round((float) $exif[LAT_KEY], 6) : null; + $lon = \array_key_exists(LON_KEY, $exif) ? round((float) $exif[LON_KEY], 6) : null; // Make sure we have valid coordinates if (null === $lat || null === $lon || abs($lat) > 90 || abs($lon) > 180 || ($lat < 0.00001 && $lon < 0.00001)) { @@ -184,10 +184,10 @@ trait TimelineWritePlaces } // Remove invalid coordinates - if (null === $lat && array_key_exists(LAT_KEY, $exif)) { + if (null === $lat && \array_key_exists(LAT_KEY, $exif)) { unset($exif[LAT_KEY]); } - if (null === $lon && array_key_exists(LON_KEY, $exif)) { + if (null === $lon && \array_key_exists(LON_KEY, $exif)) { unset($exif[LON_KEY]); }