Completed
Pull Request — master (#3594)
by
unknown
06:24 queued 58s
created
app/Functions/FunctionsPrintFacts.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -531,13 +531,13 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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) {
Please login to merge, or discard this patch.