@@ -87,7 +87,7 @@ |
||
87 | 87 | public function getMenu(Tree $tree): ?Menu |
88 | 88 | { |
89 | 89 | $submenus = $this->module_service->findByComponent(ModuleListInterface::class, $tree, Auth::user()) |
90 | - ->map(static function (ModuleListInterface $module) use ($tree): ?Menu { |
|
90 | + ->map(static function (ModuleListInterface $module) use ($tree) : ?Menu { |
|
91 | 91 | return $module->listMenu($tree); |
92 | 92 | }) |
93 | 93 | ->filter() |
@@ -721,7 +721,7 @@ |
||
721 | 721 | public function findByName(string $module_name, bool $include_disabled = false): ?ModuleInterface |
722 | 722 | { |
723 | 723 | return $this->all($include_disabled) |
724 | - ->first(static function (ModuleInterface $module) use ($module_name): bool { |
|
724 | + ->first(static function (ModuleInterface $module) use ($module_name) : bool { |
|
725 | 725 | return $module->name() === $module_name; |
726 | 726 | }); |
727 | 727 | } |
@@ -211,7 +211,7 @@ |
||
211 | 211 | |
212 | 212 | // Father’s ancestors link to the father’s pedigree |
213 | 213 | // Mother’s ancestors link to the mother’s pedigree.. |
214 | - $links = $ancestors->map(function (?Individual $individual, $sosa) use ($ancestors, $style, $generations): string { |
|
214 | + $links = $ancestors->map(function (?Individual $individual, $sosa) use ($ancestors, $style, $generations) : string { |
|
215 | 215 | if ($individual instanceof Individual && $sosa >= 2 ** $generations / 2 && $individual->childFamilies()->isNotEmpty()) { |
216 | 216 | // The last row/column, and there are more generations. |
217 | 217 | if ($sosa >= 2 ** $generations * 3 / 4) { |
@@ -907,7 +907,7 @@ |
||
907 | 907 | private function filterActiveBlocks(Collection $blocks, Collection $active_blocks): Collection |
908 | 908 | { |
909 | 909 | return $blocks->map(static function (string $block_name) use ($active_blocks): ?ModuleBlockInterface { |
910 | - return $active_blocks->filter(static function (ModuleInterface $block) use ($block_name): bool { |
|
910 | + return $active_blocks->filter(static function (ModuleInterface $block) use ($block_name) : bool { |
|
911 | 911 | return $block->name() === $block_name; |
912 | 912 | })->first(); |
913 | 913 | })->filter(); |
@@ -96,7 +96,7 @@ |
||
96 | 96 | * |
97 | 97 | * @return GedcomRecord |
98 | 98 | */ |
99 | - public function new(string $xref, string $gedcom, ?string $pending, Tree $tree): GedcomRecord |
|
99 | + public function new(string $xref, string $gedcom, ?string $pending, Tree $tree) : GedcomRecord |
|
100 | 100 | { |
101 | 101 | return new GedcomRecord($xref, $gedcom, $pending, $tree); |
102 | 102 | } |
@@ -86,7 +86,7 @@ |
||
86 | 86 | * |
87 | 87 | * @return Note |
88 | 88 | */ |
89 | - public function new(string $xref, string $gedcom, ?string $pending, Tree $tree): Note |
|
89 | + public function new(string $xref, string $gedcom, ?string $pending, Tree $tree) : Note |
|
90 | 90 | { |
91 | 91 | return new Note($xref, $gedcom, $pending, $tree); |
92 | 92 | } |
@@ -86,7 +86,7 @@ |
||
86 | 86 | * |
87 | 87 | * @return Media |
88 | 88 | */ |
89 | - public function new(string $xref, string $gedcom, ?string $pending, Tree $tree): Media |
|
89 | + public function new(string $xref, string $gedcom, ?string $pending, Tree $tree) : Media |
|
90 | 90 | { |
91 | 91 | return new Media($xref, $gedcom, $pending, $tree); |
92 | 92 | } |
@@ -99,7 +99,7 @@ |
||
99 | 99 | * |
100 | 100 | * @return Family |
101 | 101 | */ |
102 | - public function new(string $xref, string $gedcom, ?string $pending, Tree $tree): Family |
|
102 | + public function new(string $xref, string $gedcom, ?string $pending, Tree $tree) : Family |
|
103 | 103 | { |
104 | 104 | return new Family($xref, $gedcom, $pending, $tree); |
105 | 105 | } |
@@ -87,7 +87,7 @@ |
||
87 | 87 | * |
88 | 88 | * @return Source |
89 | 89 | */ |
90 | - public function new(string $xref, string $gedcom, ?string $pending, Tree $tree): Source |
|
90 | + public function new(string $xref, string $gedcom, ?string $pending, Tree $tree) : Source |
|
91 | 91 | { |
92 | 92 | return new Source($xref, $gedcom, $pending, $tree); |
93 | 93 | } |