Passed
Push — master ( c12752...863831 )
by Greg
05:21
created
app/Http/Controllers/CalendarController.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -291,7 +291,7 @@  discard block
 block discarded – undo
291 291
                 $anniversary_facts = $this->calendar_service->getCalendarEvents($ged_year->minimumJulianDay(), $ged_year->maximumJulianDay(), $filterev, $tree);
292 292
             }
293 293
 
294
-            $anniversary_facts   = $this->applyFilter($anniversary_facts, $filterof, $filtersx);
294
+            $anniversary_facts = $this->applyFilter($anniversary_facts, $filterof, $filtersx);
295 295
             $anniversaries = Collection::make($anniversary_facts)
296 296
                 ->unique()
297 297
                 ->sort(static function (Fact $x, Fact $y): int {
@@ -467,7 +467,7 @@  discard block
 block discarded – undo
467 467
      */
468 468
     private function applyFilter(array $facts, string $filterof, string $filtersx): array
469 469
     {
470
-        $filtered      = [];
470
+        $filtered = [];
471 471
         $hundred_years_ago = Carbon::now()->subYears(100)->julianDay();
472 472
         foreach ($facts as $fact) {
473 473
             $record = $fact->record();
@@ -519,7 +519,7 @@  discard block
 block discarded – undo
519 519
         $html = '';
520 520
 
521 521
         foreach ($list as $xref => $facts) {
522
-            $tmp  = GedcomRecord::getInstance((string) $xref, $tree);
522
+            $tmp = GedcomRecord::getInstance((string) $xref, $tree);
523 523
             $html .= $tag1 . '<a href="' . e($tmp->url()) . '">' . $tmp->fullName() . '</a> ';
524 524
             $html .= '<div class="indent">' . $facts . '</div>' . $tag2;
525 525
         }
Please login to merge, or discard this patch.