@@ -294,7 +294,7 @@ |
||
294 | 294 | { |
295 | 295 | $tmp = round($degrees, self::PRECISION); |
296 | 296 | |
297 | - return ($tmp < 0 ? $negative : $positive) . (string)abs($tmp); |
|
297 | + return ($tmp < 0 ? $negative : $positive) . (string) abs($tmp); |
|
298 | 298 | } |
299 | 299 | |
300 | 300 | /** |
@@ -160,13 +160,13 @@ discard block |
||
160 | 160 | |
161 | 161 | if ($place_id === 0) { |
162 | 162 | $breadcrumbs[] = I18N::translate('Add'); |
163 | - $title .= ' — ' . I18N::translate('Add'); |
|
163 | + $title .= ' — ' . I18N::translate('Add'); |
|
164 | 164 | $latitude = GedcomService::INVALID_COORD; |
165 | 165 | $longitude = GedcomService::INVALID_COORD; |
166 | 166 | $map_bounds = $parent->boundingRectangle(); |
167 | 167 | } else { |
168 | 168 | $breadcrumbs[] = I18N::translate('Edit'); |
169 | - $title .= ' — ' . I18N::translate('Edit'); |
|
169 | + $title .= ' — ' . I18N::translate('Edit'); |
|
170 | 170 | $latitude = $location->latitude(); |
171 | 171 | $longitude = $location->longitude(); |
172 | 172 | $map_bounds = $location->boundingRectangle(); |
@@ -217,8 +217,8 @@ discard block |
||
217 | 217 | |
218 | 218 | $parent_id = (int) $request->getQueryParams()['parent_id']; |
219 | 219 | $place_id = (int) $request->getQueryParams()['place_id']; |
220 | - $lat = $this->gedcom_service->writeLatitude((float)$params['new_place_lati']); |
|
221 | - $lng = $this->gedcom_service->writeLongitude((float)$params['new_place_long']); |
|
220 | + $lat = $this->gedcom_service->writeLatitude((float) $params['new_place_lati']); |
|
221 | + $lng = $this->gedcom_service->writeLongitude((float) $params['new_place_long']); |
|
222 | 222 | $hierarchy = $this->getHierarchy($parent_id); |
223 | 223 | $level = count($hierarchy); |
224 | 224 | $icon = $params['icon']; |
@@ -534,8 +534,8 @@ discard block |
||
534 | 534 | |
535 | 535 | $places[] = [ |
536 | 536 | 'pl_level' => $level, |
537 | - 'pl_long' => (float)strtr($row[$count - 4], ['E' => '', 'W' => '-', ',' => '.']), |
|
538 | - 'pl_lati' => (float)strtr($row[$count - 3], ['N' => '', 'S' => '-', ',' => '.']), |
|
537 | + 'pl_long' => (float) strtr($row[$count - 4], ['E' => '', 'W' => '-', ',' => '.']), |
|
538 | + 'pl_lati' => (float) strtr($row[$count - 3], ['N' => '', 'S' => '-', ',' => '.']), |
|
539 | 539 | 'pl_zoom' => $row[$count - 2], |
540 | 540 | 'pl_icon' => $row[$count - 1], |
541 | 541 | 'fqpn' => $fqdn, |