Skip to content

Commit

Permalink
Update ExifMetadataProvider.php
Browse files Browse the repository at this point in the history
Formatting

Signed-off-by: Clint Johnson <[email protected]>
  • Loading branch information
nmbgeek authored Sep 14, 2024
1 parent 0695c30 commit d56659a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Listener/ExifMetadataProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -132,8 +132,8 @@ private function gpsDegreesToDecimal($coordinates, ?string $hemisphere): float {
*/
private function parseGPSData($rawData): float {
if (is_array($rawData)) {
if (count($rawData) === 3) {
return floatval($rawData[0]) + floatval($rawData[1]) / 60 + floatval($rawData[2]) / 3600;
if (count($rawData) === 3) {
return floatval($rawData[0]) + floatval($rawData[1]) / 60 + floatval($rawData[2]) / 3600;
} else {
return 0; // Handle unexpected array structure
}
Expand Down

0 comments on commit d56659a

Please sign in to comment.