Skip to content

Commit

Permalink
Formatting
Browse files Browse the repository at this point in the history
Remove extra space

Signed-off-by: Clint Johnson <50661551+nmbgeek@users.noreply.github.com>
  • Loading branch information
nmbgeek authored and artonge committed Sep 24, 2024
1 parent b895876 commit f0a6128
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Listener/ExifMetadataProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ public function handle(Event $event): void {

if (array_key_exists('GPSAltitude', $rawExifData['GPS']) && array_key_exists('GPSAltitudeRef', $rawExifData['GPS']) && is_string($rawExifData['GPS']['GPSAltitude'])) {
$gps['altitude'] = ($rawExifData['GPS']['GPSAltitudeRef'] === '1' ? -1 : 1) * $this->parseGPSData($rawExifData['GPS']['GPSAltitude']);
}
}

if (!empty($gps)) {
$event->getMetadata()->setArray('photos-gps', $gps);
Expand Down

0 comments on commit f0a6128

Please sign in to comment.