|
@@ -537,7 +537,7 @@ discard block |
|
|
block discarded – undo |
|
537
|
537
|
if ($event->date()->isOK() || $event->place()->gedcomName() !== '') { |
|
538
|
538
|
switch ($style) { |
|
539
|
539
|
case 1: |
|
540
|
|
- return '<br><em>' . $event->label() . ' ' . view('fact-date', ['cal_link' => 'false', 'fact' => $event, 'record' => $event->record(), 'time' => false]) . '</em>'; |
|
|
540
|
+ return '<br><em>' . $event->label() . ' ' . view('fact-date', ['cal_link' => 'false', 'fact' => $event, 'record' => $event->record(), 'time' => false]) . '</em>'; |
|
541
|
541
|
case 2: |
|
542
|
542
|
return '<dl><dt class="label">' . $event->label() . '</dt><dd class="field">' . view('fact-date', ['cal_link' => 'false', 'fact' => $event, 'record' => $event->record(), 'time' => false]) . $joiner . $event->place()->shortName() . '</dd></dl>'; |
|
543
|
543
|
} |
|
@@ -781,7 +781,7 @@ discard block |
|
|
block discarded – undo |
|
781
|
781
|
$access_level = $access_level ?? Auth::accessLevel($this->tree); |
|
782
|
782
|
|
|
783
|
783
|
// Convert BIRT into INDI:BIRT, etc. |
|
784
|
|
- $filter = array_map(fn (string $tag): string => $this->tag() . ':' . $tag, $filter); |
|
|
784
|
+ $filter = array_map(fn(string $tag): string => $this->tag() . ':' . $tag, $filter); |
|
785
|
785
|
|
|
786
|
786
|
$facts = new Collection(); |
|
787
|
787
|
if ($this->canShow($access_level)) { |
|
@@ -801,7 +801,7 @@ discard block |
|
|
block discarded – undo |
|
801
|
801
|
|
|
802
|
802
|
default: |
|
803
|
803
|
$subtags = Registry::elementFactory()->make($this->tag())->subtags(); |
|
804
|
|
- $subtags = array_map(fn (string $tag): string => $this->tag() . ':' . $tag, array_keys($subtags)); |
|
|
804
|
+ $subtags = array_map(fn(string $tag): string => $this->tag() . ':' . $tag, array_keys($subtags)); |
|
805
|
805
|
$subtags = array_combine(range(1, count($subtags)), $subtags); |
|
806
|
806
|
|
|
807
|
807
|
$facts = $facts |