@@ -237,7 +237,7 @@ discard block |
||
237 | 237 | * @return Point|false |
238 | 238 | * @throws Exception |
239 | 239 | */ |
240 | - final public function getCoordsFromExif(string $id): Point|false |
|
240 | + final public function getCoordsFromExif(string $id): Point | false |
|
241 | 241 | { |
242 | 242 | $exif = exif_read_data(mediaFN($id), 0, true); |
243 | 243 | if (!$exif || empty($exif ['GPS'])) { |
@@ -288,11 +288,11 @@ discard block |
||
288 | 288 | { |
289 | 289 | // rational64u |
290 | 290 | $nums = explode('/', $param); |
291 | - if ((int)$nums[1] > 0) { |
|
292 | - return (float)$nums[0] / (int)$nums[1]; |
|
291 | + if (( int ) $nums[1] > 0) { |
|
292 | + return ( float ) $nums[0] / ( int ) $nums[1]; |
|
293 | 293 | } |
294 | 294 | |
295 | - return (float)$nums[0]; |
|
295 | + return ( float ) $nums[0]; |
|
296 | 296 | } |
297 | 297 | |
298 | 298 | /** |
@@ -96,7 +96,7 @@ |
||
96 | 96 | assert($index instanceof helper_plugin_spatialhelper_index); |
97 | 97 | // 37° 4' 36.12",31° 39' 21.96" or 31.656100,37.076700 |
98 | 98 | $actual_output = $index->getCoordsFromExif(':manavgat_restaurant_handost_with_gps.jpg'); |
99 | - var_dump( $actual_output); |
|
99 | + var_dump($actual_output); |
|
100 | 100 | self::assertNotNull($actual_output, 'Expected a geotag to be found'); |
101 | 101 | self::assertNotFalse($actual_output, 'Expected a geotag to be found'); |
102 | 102 | self::assertEqualsWithDelta(31.6561, $actual_output->x(), 0.0001); |