@@ -214,7 +214,7 @@ discard block |
||
| 214 | 214 | if ((!str_ends_with(strtolower($imgId), '.jpg')) && |
| 215 | 215 | (!str_ends_with(strtolower($imgId), '.jpeg')) |
| 216 | 216 | ) { |
| 217 | - Logger::debug("indexImage:: ".$imgId." is not a supported image file."); |
|
| 217 | + Logger::debug("indexImage:: " . $imgId . " is not a supported image file."); |
|
| 218 | 218 | return false; |
| 219 | 219 | } |
| 220 | 220 | |
@@ -236,7 +236,7 @@ discard block |
||
| 236 | 236 | * @return Point|false |
| 237 | 237 | * @throws Exception |
| 238 | 238 | */ |
| 239 | - final public function getCoordsFromExif(string $id): Point|false |
|
| 239 | + final public function getCoordsFromExif(string $id): Point | false |
|
| 240 | 240 | { |
| 241 | 241 | $exif = exif_read_data(mediaFN($id), 0, true); |
| 242 | 242 | if (empty($exif ['GPS'])) { |
@@ -287,11 +287,11 @@ discard block |
||
| 287 | 287 | { |
| 288 | 288 | // rational64u |
| 289 | 289 | $nums = explode('/', $param); |
| 290 | - if ((int)$nums[1] > 0) { |
|
| 291 | - return (float)$nums[0] / (int)$nums[1]; |
|
| 290 | + if (( int ) $nums[1] > 0) { |
|
| 291 | + return ( float ) $nums[0] / ( int ) $nums[1]; |
|
| 292 | 292 | } |
| 293 | 293 | |
| 294 | - return (float)$nums[0]; |
|
| 294 | + return ( float ) $nums[0]; |
|
| 295 | 295 | } |
| 296 | 296 | |
| 297 | 297 | /** |
@@ -248,11 +248,11 @@ discard block |
||
| 248 | 248 | */ |
| 249 | 249 | private function printHTML(array $searchresults, bool $showMedia = true): void |
| 250 | 250 | { |
| 251 | - $pages = (array)($searchresults ['pages']); |
|
| 252 | - $media = (array)$searchresults ['media']; |
|
| 253 | - $lat = (float)$searchresults ['lat']; |
|
| 254 | - $lon = (float)$searchresults ['lon']; |
|
| 255 | - $geohash = (string)$searchresults ['geohash']; |
|
| 251 | + $pages = ( array ) ($searchresults ['pages']); |
|
| 252 | + $media = ( array ) $searchresults ['media']; |
|
| 253 | + $lat = ( float ) $searchresults ['lat']; |
|
| 254 | + $lon = ( float ) $searchresults ['lon']; |
|
| 255 | + $geohash = ( string ) $searchresults ['geohash']; |
|
| 256 | 256 | |
| 257 | 257 | if (isset($searchresults ['error'])) { |
| 258 | 258 | echo '<div class="level1"><p>' . hsc($searchresults ['error']) . '</p></div>'; |
@@ -337,7 +337,7 @@ discard block |
||
| 337 | 337 | // check the list of mimetypes |
| 338 | 338 | // if it's a supported type call appropriate index function |
| 339 | 339 | if (str_contains($event->data [3], 'image/jpeg')) { |
| 340 | - Logger::debug("handleMediaUploaded::got ".$event->data[3]." upload"); |
|
| 340 | + Logger::debug("handleMediaUploaded::got " . $event->data[3] . " upload"); |
|
| 341 | 341 | $indexer = plugin_load('helper', 'spatialhelper_index'); |
| 342 | 342 | if ($indexer !== null) { |
| 343 | 343 | $indexer->indexImage($event->data [2]); |