@@ -1153,11 +1153,11 @@ |
||
| 1153 | 1153 | // The record does have a CHAN event |
| 1154 | 1154 | $d = $chan->getDate()->minimumDate(); |
| 1155 | 1155 | if (preg_match('/\n3 TIME (\d\d):(\d\d):(\d\d)/', $chan->getGedcom(), $match)) { |
| 1156 | - $t = mktime((int)$match[1], (int)$match[2], (int)$match[3], (int)$d->format('%n'), (int)$d->format('%j'), (int)$d->format('%Y')); |
|
| 1156 | + $t = mktime((int) $match[1], (int) $match[2], (int) $match[3], (int) $d->format('%n'), (int) $d->format('%j'), (int) $d->format('%Y')); |
|
| 1157 | 1157 | } elseif (preg_match('/\n3 TIME (\d\d):(\d\d)/', $chan->getGedcom(), $match)) { |
| 1158 | - $t = mktime((int)$match[1], (int)$match[2], 0, (int)$d->format('%n'), (int)$d->format('%j'), (int)$d->format('%Y')); |
|
| 1158 | + $t = mktime((int) $match[1], (int) $match[2], 0, (int) $d->format('%n'), (int) $d->format('%j'), (int) $d->format('%Y')); |
|
| 1159 | 1159 | } else { |
| 1160 | - $t = mktime(0, 0, 0, (int)$d->format('%n'), (int)$d->format('%j'), (int)$d->format('%Y')); |
|
| 1160 | + $t = mktime(0, 0, 0, (int) $d->format('%n'), (int) $d->format('%j'), (int) $d->format('%Y')); |
|
| 1161 | 1161 | } |
| 1162 | 1162 | if ($sorting) { |
| 1163 | 1163 | return $t; |
@@ -71,7 +71,7 @@ |
||
| 71 | 71 | $this->pdo_statement->bindValue($key, $bind_variable, PDO::PARAM_NULL); |
| 72 | 72 | break; |
| 73 | 73 | case 'boolean': |
| 74 | - $this->pdo_statement->bindValue($key, (int)$bind_variable, PDO::PARAM_INT); |
|
| 74 | + $this->pdo_statement->bindValue($key, (int) $bind_variable, PDO::PARAM_INT); |
|
| 75 | 75 | break; |
| 76 | 76 | case 'integer': |
| 77 | 77 | $this->pdo_statement->bindValue($key, $bind_variable, PDO::PARAM_INT); |
@@ -37,7 +37,7 @@ |
||
| 37 | 37 | if ($individual->getSex() === 'M') { |
| 38 | 38 | return ''; |
| 39 | 39 | } else { |
| 40 | - return (string)Date::getAge($individual->getEstimatedBirthDate(), $this->date(), 0); |
|
| 40 | + return (string) Date::getAge($individual->getEstimatedBirthDate(), $this->date(), 0); |
|
| 41 | 41 | } |
| 42 | 42 | } |
| 43 | 43 | } |
@@ -97,7 +97,7 @@ |
||
| 97 | 97 | */ |
| 98 | 98 | private function isChild(Individual $individual) |
| 99 | 99 | { |
| 100 | - $age = (int)Date::getAge($individual->getEstimatedBirthDate(), $this->date(), 0); |
|
| 100 | + $age = (int) Date::getAge($individual->getEstimatedBirthDate(), $this->date(), 0); |
|
| 101 | 101 | |
| 102 | 102 | return $age < $this->age_adult; |
| 103 | 103 | } |
@@ -53,6 +53,6 @@ |
||
| 53 | 53 | } |
| 54 | 54 | } |
| 55 | 55 | |
| 56 | - return (string)$count; |
|
| 56 | + return (string) $count; |
|
| 57 | 57 | } |
| 58 | 58 | } |
@@ -47,7 +47,7 @@ |
||
| 47 | 47 | if ($marriage_date === null) { |
| 48 | 48 | return ''; |
| 49 | 49 | } else { |
| 50 | - return (string)Date::getAge($marriage_date, $this->date(), 0); |
|
| 50 | + return (string) Date::getAge($marriage_date, $this->date(), 0); |
|
| 51 | 51 | } |
| 52 | 52 | } |
| 53 | 53 | } |
@@ -42,7 +42,7 @@ |
||
| 42 | 42 | $years -= $years % 5; |
| 43 | 43 | } |
| 44 | 44 | |
| 45 | - return (string)$years; |
|
| 45 | + return (string) $years; |
|
| 46 | 46 | } |
| 47 | 47 | } |
| 48 | 48 | } |
@@ -37,7 +37,7 @@ |
||
| 37 | 37 | if ($individual->getSex() === 'F') { |
| 38 | 38 | return ''; |
| 39 | 39 | } else { |
| 40 | - return (string)Date::getAge($individual->getEstimatedBirthDate(), $this->date(), 0); |
|
| 40 | + return (string) Date::getAge($individual->getEstimatedBirthDate(), $this->date(), 0); |
|
| 41 | 41 | } |
| 42 | 42 | } |
| 43 | 43 | } |
@@ -139,7 +139,7 @@ discard block |
||
| 139 | 139 | if ($note->canShow()) { |
| 140 | 140 | $noterec = $note->getGedcom(); |
| 141 | 141 | $nt = preg_match("/0 @$nmatch[1]@ NOTE (.*)/", $noterec, $n1match); |
| 142 | - $data .= self::printNoteRecord($tree, ($nt > 0) ? $n1match[1] : '', 1, $noterec); |
|
| 142 | + $data .= self::printNoteRecord($tree, ($nt > 0) ? $n1match[1] : '', 1, $noterec); |
|
| 143 | 143 | } |
| 144 | 144 | } else { |
| 145 | 145 | $data = '<div class="fact_NOTE"><span class="label">' . I18N::translate('Note') . '</span>: <span class="field error">' . $nmatch[1] . '</span></div>'; |
@@ -385,35 +385,35 @@ discard block |
||
| 385 | 385 | if (preg_match_all('/\n3 (?:_HEB|ROMN) (.+)/', $placerec, $matches)) { |
| 386 | 386 | foreach ($matches[1] as $match) { |
| 387 | 387 | $wt_place = new Place($match, $tree); |
| 388 | - $html .= ' - ' . $wt_place->getFullName(); |
|
| 388 | + $html .= ' - ' . $wt_place->getFullName(); |
|
| 389 | 389 | } |
| 390 | 390 | } |
| 391 | 391 | $map_lati = ''; |
| 392 | 392 | $cts = preg_match('/\d LATI (.*)/', $placerec, $match); |
| 393 | 393 | if ($cts > 0) { |
| 394 | 394 | $map_lati = $match[1]; |
| 395 | - $html .= '<br><span class="label">' . I18N::translate('Latitude') . ': </span>' . $map_lati; |
|
| 395 | + $html .= '<br><span class="label">' . I18N::translate('Latitude') . ': </span>' . $map_lati; |
|
| 396 | 396 | } |
| 397 | 397 | $map_long = ''; |
| 398 | 398 | $cts = preg_match('/\d LONG (.*)/', $placerec, $match); |
| 399 | 399 | if ($cts > 0) { |
| 400 | 400 | $map_long = $match[1]; |
| 401 | - $html .= ' <span class="label">' . I18N::translate('Longitude') . ': </span>' . $map_long; |
|
| 401 | + $html .= ' <span class="label">' . I18N::translate('Longitude') . ': </span>' . $map_long; |
|
| 402 | 402 | } |
| 403 | 403 | if ($map_lati && $map_long) { |
| 404 | 404 | $map_lati = trim(strtr($map_lati, 'NSEW,�', ' - -. ')); // S5,6789 ==> -5.6789 |
| 405 | 405 | $map_long = trim(strtr($map_long, 'NSEW,�', ' - -. ')); // E3.456� ==> 3.456 |
| 406 | - $html .= FontAwesome::linkIcon('google-maps', I18N::translate('Google Maps™'), [ |
|
| 406 | + $html .= FontAwesome::linkIcon('google-maps', I18N::translate('Google Maps™'), [ |
|
| 407 | 407 | 'class' => 'btn btn-link', |
| 408 | 408 | 'url' => 'https://maps.google.com/maps?q=' . $map_lati . ',' . $map_long, |
| 409 | 409 | 'rel' => 'nofollow', |
| 410 | 410 | ]); |
| 411 | - $html .= FontAwesome::linkIcon('bing-maps', I18N::translate('Bing Maps™'), [ |
|
| 411 | + $html .= FontAwesome::linkIcon('bing-maps', I18N::translate('Bing Maps™'), [ |
|
| 412 | 412 | 'class' => 'btn btn-link', |
| 413 | 413 | 'url' => 'https://www.bing.com/maps/?lvl=15&cp=' . $map_lati . '~' . $map_long, |
| 414 | 414 | 'rel' => 'nofollow', |
| 415 | 415 | ]); |
| 416 | - $html .= FontAwesome::linkIcon('openstreetmap', I18N::translate('OpenStreetMap™'), [ |
|
| 416 | + $html .= FontAwesome::linkIcon('openstreetmap', I18N::translate('OpenStreetMap™'), [ |
|
| 417 | 417 | 'class' => 'btn btn-link', |
| 418 | 418 | 'url' => 'https://www.openstreetmap.org/#map=15/' . $map_lati . '/' . $map_long, |
| 419 | 419 | 'rel' => 'nofollow', |