@@ -531,13 +531,13 @@ discard block |
||
| 531 | 531 | } |
| 532 | 532 | |
| 533 | 533 | // Compute age of associated Person at the event (Person BIRT is mandatory ) |
| 534 | - $ageOfAssociated =""; |
|
| 534 | + $ageOfAssociated = ""; |
|
| 535 | 535 | if (preg_match('/\n2 DATE (.+)/', $event->gedcom(), $match1)) { |
| 536 | 536 | if (preg_match('/\n1 BIRT/', $person->gedcom(), $match)) { |
| 537 | 537 | preg_match('/\n2 DATE (.+)/', $person->gedcom(), $match2); |
| 538 | 538 | $dateEvent = new Date($match1[1]); |
| 539 | 539 | $dateAssoP = new Date($match2[1]); |
| 540 | - $ageOfAssociated = (new Age($dateAssoP, $dateEvent))->ageAtEvent(true); |
|
| 540 | + $ageOfAssociated = (new Age($dateAssoP, $dateEvent))->ageAtEvent(true); |
|
| 541 | 541 | } |
| 542 | 542 | } |
| 543 | 543 | $values = ['<a href="' . e($person->url()) . '">' . $person->fullName() . '<i> ' . $ageOfAssociated . '</i>' . '</a>']; |
@@ -600,7 +600,7 @@ discard block |
||
| 600 | 600 | for ($j = 0; $j < $ct; $j++) { |
| 601 | 601 | if (!str_contains($match[$j][1], '@')) { |
| 602 | 602 | $source = e($match[$j][1] . preg_replace('/\n\d CONT ?/', "\n", $match[$j][2])); |
| 603 | - $data .= '<div class="fact_SOUR"><span class="label">' . I18N::translate('Source') . ':</span> <span class="field" dir="auto">' . Filter::formatText($source, $tree) . '</span></div>'; |
|
| 603 | + $data .= '<div class="fact_SOUR"><span class="label">' . I18N::translate('Source') . ':</span> <span class="field" dir="auto">' . Filter::formatText($source, $tree) . '</span></div>'; |
|
| 604 | 604 | } |
| 605 | 605 | } |
| 606 | 606 | // Find source for each fact |
@@ -618,7 +618,7 @@ discard block |
||
| 618 | 618 | } |
| 619 | 619 | $srec = substr($factrec, $spos1, $spos2 - $spos1); |
| 620 | 620 | $lt = preg_match_all("/$nlevel \w+/", $srec, $matches); |
| 621 | - $data .= '<div class="fact_SOUR">'; |
|
| 621 | + $data .= '<div class="fact_SOUR">'; |
|
| 622 | 622 | $id = 'collapse-' . Uuid::uuid4()->toString(); |
| 623 | 623 | $expanded = (bool) $tree->getPreference('EXPAND_SOURCES'); |
| 624 | 624 | if ($lt > 0) { |
@@ -172,7 +172,7 @@ discard block |
||
| 172 | 172 | if ($note->canShow()) { |
| 173 | 173 | $noterec = $note->gedcom(); |
| 174 | 174 | $nt = preg_match("/0 @$nmatch[1]@ NOTE (.*)/", $noterec, $n1match); |
| 175 | - $data .= self::printNoteRecord($tree, $nt > 0 ? $n1match[1] : '', 1, $noterec); |
|
| 175 | + $data .= self::printNoteRecord($tree, $nt > 0 ? $n1match[1] : '', 1, $noterec); |
|
| 176 | 176 | } |
| 177 | 177 | } else { |
| 178 | 178 | $data = '<div class="fact_NOTE"><span class="label">' . I18N::translate('Note') . '</span>: <span class="field error">' . $nmatch[1] . '</span></div>'; |
@@ -272,7 +272,7 @@ discard block |
||
| 272 | 272 | } |
| 273 | 273 | }, |
| 274 | 274 | $age_string |
| 275 | - ) ; |
|
| 275 | + ); |
|
| 276 | 276 | } |
| 277 | 277 | } |
| 278 | 278 | |
@@ -336,7 +336,7 @@ discard block |
||
| 336 | 336 | $ageText = ''; |
| 337 | 337 | if ($fact === 'DEAT' || Date::compare($date, $death_date) <= 0 || !$record->isDead()) { |
| 338 | 338 | // Before death, print age |
| 339 | - $age = (new Age($birth_date, $date))->ageAtEvent(false,$record->sex()); |
|
| 339 | + $age = (new Age($birth_date, $date))->ageAtEvent(false, $record->sex()); |
|
| 340 | 340 | // Only show calculated age if it differs from recorded age |
| 341 | 341 | if ($age !== '') { |
| 342 | 342 | if ($fact_age !== '' && $fact_age !== $age) { |
@@ -406,20 +406,20 @@ discard block |
||
| 406 | 406 | if (preg_match_all('/\n3 (?:_HEB|ROMN) (.+)/', $placerec, $matches)) { |
| 407 | 407 | foreach ($matches[1] as $match) { |
| 408 | 408 | $wt_place = new Place($match, $tree); |
| 409 | - $html .= ' - ' . $wt_place->fullName(); |
|
| 409 | + $html .= ' - ' . $wt_place->fullName(); |
|
| 410 | 410 | } |
| 411 | 411 | } |
| 412 | 412 | $map_lati = ''; |
| 413 | 413 | $cts = preg_match('/\d LATI (.*)/', $placerec, $match); |
| 414 | 414 | if ($cts > 0) { |
| 415 | 415 | $map_lati = $match[1]; |
| 416 | - $html .= '<br><span class="label">' . I18N::translate('Latitude') . ': </span>' . $map_lati; |
|
| 416 | + $html .= '<br><span class="label">' . I18N::translate('Latitude') . ': </span>' . $map_lati; |
|
| 417 | 417 | } |
| 418 | 418 | $map_long = ''; |
| 419 | 419 | $cts = preg_match('/\d LONG (.*)/', $placerec, $match); |
| 420 | 420 | if ($cts > 0) { |
| 421 | 421 | $map_long = $match[1]; |
| 422 | - $html .= ' <span class="label">' . I18N::translate('Longitude') . ': </span>' . $map_long; |
|
| 422 | + $html .= ' <span class="label">' . I18N::translate('Longitude') . ': </span>' . $map_long; |
|
| 423 | 423 | } |
| 424 | 424 | if ($map_lati && $map_long) { |
| 425 | 425 | $map_lati = trim(strtr($map_lati, 'NSEW,�', ' - -. ')); // S5,6789 ==> -5.6789 |
@@ -111,11 +111,11 @@ |
||
| 111 | 111 | |
| 112 | 112 | if ($individual->isDead()) { |
| 113 | 113 | // If dead, show age at death |
| 114 | - $age = (new Age($bdate, $ddate))->ageAtEvent(false,$individual->sex()); |
|
| 114 | + $age = (new Age($bdate, $ddate))->ageAtEvent(false, $individual->sex()); |
|
| 115 | 115 | } else { |
| 116 | 116 | // If living, show age today |
| 117 | 117 | $today = strtoupper(date('d M Y')); |
| 118 | - $age = (new Age($bdate, new Date($today)))->ageAtEvent(true,$individual->sex()); |
|
| 118 | + $age = (new Age($bdate, new Date($today)))->ageAtEvent(true, $individual->sex()); |
|
| 119 | 119 | } |
| 120 | 120 | |
| 121 | 121 | // What images are linked to this individual |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -return array ( |
|
| 3 | +return array( |
|
| 4 | 4 | ' but the details are unknown' => ' mais les détails sont inconnus', |
| 5 | 5 | ' in ' => ' à ', |
| 6 | 6 | '#%s' => '#%s', |