@@ -291,7 +291,7 @@ discard block |
||
291 | 291 | if ($kcount == 0) { |
292 | 292 | echo "</td><td style='width:", app(ModuleThemeInterface::class)->parameter('chart-box-x'), "px'>"; |
293 | 293 | } else { |
294 | - echo '<a href="#" title="' . I18N::translate('Children') . '" data-route="Descendants" data-xref="' . e($pid) . '" data-spouses="' . e($show_spouse) . '" data-tree="' . e($individual->tree()->name()) . '">' . view('icons/arrow-left') . '</a>'; |
|
294 | + echo '<a href="#" title="' . I18N::translate('Children') . '" data-route="Descendants" data-xref="' . e($pid) . '" data-spouses="' . e($show_spouse) . '" data-tree="' . e($individual->tree()->name()) . '">' . view('icons/arrow-left') . '</a>'; |
|
295 | 295 | |
296 | 296 | //-- move the arrow up to line up with the correct box |
297 | 297 | if ($show_spouse) { |
@@ -372,7 +372,7 @@ discard block |
||
372 | 372 | } |
373 | 373 | |
374 | 374 | // filter out root person from children array so only siblings remain |
375 | - $siblings = $family->children()->filter(function (Individual $x) use ($individual): bool { |
|
375 | + $siblings = $family->children()->filter(function (Individual $x) use ($individual): bool { |
|
376 | 376 | return $x !== $individual; |
377 | 377 | }); |
378 | 378 | |
@@ -445,7 +445,7 @@ discard block |
||
445 | 445 | echo '<td id="td_' . e($ARID) . '">'; |
446 | 446 | |
447 | 447 | if ($generation == $generations - 1 && $family->husband()->childFamilies()) { |
448 | - echo '<a href="#" title="' . I18N::translate('Parents') . '" data-route="Ancestors" data-xref="' . e($ARID) . '" data-spouses="' . e($show_spouse) . '" data-tree="' . e($family->husband()->tree()->name()) . '">' . view('icons/arrow-right') . '</a>'; |
|
448 | + echo '<a href="#" title="' . I18N::translate('Parents') . '" data-route="Ancestors" data-xref="' . e($ARID) . '" data-spouses="' . e($show_spouse) . '" data-tree="' . e($family->husband()->tree()->name()) . '">' . view('icons/arrow-right') . '</a>'; |
|
449 | 449 | } |
450 | 450 | |
451 | 451 | $this->printPersonPedigree($family->husband(), $generation + 1, $generations, $show_spouse); |
@@ -476,7 +476,7 @@ discard block |
||
476 | 476 | echo '<td id="td_' . e($ARID) . '">'; |
477 | 477 | |
478 | 478 | if ($generation == $generations - 1 && $family->wife()->childFamilies()) { |
479 | - echo '<a href="#" title="' . I18N::translate('Parents') . '" data-route="Ancestors" data-xref="' . e($ARID) . '" data-spouses="' . e($show_spouse) . '" data-tree="' . e($family->wife()->tree()->name()) . '">' . view('icons/arrow-right') . '</a>'; |
|
479 | + echo '<a href="#" title="' . I18N::translate('Parents') . '" data-route="Ancestors" data-xref="' . e($ARID) . '" data-spouses="' . e($show_spouse) . '" data-tree="' . e($family->wife()->tree()->name()) . '">' . view('icons/arrow-right') . '</a>'; |
|
480 | 480 | } |
481 | 481 | |
482 | 482 | $this->printPersonPedigree($family->wife(), $generation + 1, $generations, $show_spouse); |
@@ -555,7 +555,7 @@ |
||
555 | 555 | public function findByName(string $module_name, bool $include_disabled = false): ?ModuleInterface |
556 | 556 | { |
557 | 557 | return $this->all($include_disabled) |
558 | - ->filter(function (ModuleInterface $module) use ($module_name): bool { |
|
558 | + ->filter(function (ModuleInterface $module) use ($module_name) : bool { |
|
559 | 559 | return $module->name() === $module_name; |
560 | 560 | }) |
561 | 561 | ->first(); |
@@ -252,7 +252,7 @@ |
||
252 | 252 | [$namespace, $view_name] = explode(self::NAMESPACE_SEPARATOR, $view_name, 2); |
253 | 253 | |
254 | 254 | if ((self::$namespaces[$namespace] ?? null) === null) { |
255 | - throw new RuntimeException('Namespace "' . e($namespace) . '" not found.'); |
|
255 | + throw new RuntimeException('Namespace "' . e($namespace) . '" not found.'); |
|
256 | 256 | } |
257 | 257 | |
258 | 258 | $view_file = self::$namespaces[$namespace] . $view_name . self::TEMPLATE_EXTENSION; |