@@ -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 | /** |
@@ -100,6 +100,6 @@ |
||
| 100 | 100 | // 37° 4' 36.12";31° 39' 21.96" or 31.656100;37.076700 |
| 101 | 101 | $actual_output = $index->getCoordsFromExif(':manavgat_restaurant_handost_with_gps.jpg'); |
| 102 | 102 | self::assertNotNull($actual_output); |
| 103 | - self::assertEqualsWithDelta(31.6561, (Point)$actual_output.x(), 0.0001); |
|
| 103 | + self::assertEqualsWithDelta(31.6561, (Point)$actual_output . x(), 0.0001); |
|
| 104 | 104 | } |
| 105 | 105 | } |