@@ -588,7 +588,7 @@ |
||
588 | 588 | |
589 | 589 | $module = $module_service |
590 | 590 | ->findByComponent(ModuleListInterface::class, $this->tree, Auth::user()) |
591 | - ->first(static fn (ModuleInterface $module): bool => $module instanceof IndividualListModule); |
|
591 | + ->first(static fn(ModuleInterface $module): bool => $module instanceof IndividualListModule); |
|
592 | 592 | |
593 | 593 | if ($type === 'list') { |
594 | 594 | return view('lists/surnames-bullet-list', [ |
@@ -397,7 +397,7 @@ discard block |
||
397 | 397 | |
398 | 398 | $pedigree_chart = $module_service |
399 | 399 | ->findByComponent(ModuleChartInterface::class, $tree, Auth::user()) |
400 | - ->first(static fn (ModuleInterface $module): bool => $module instanceof PedigreeChartModule); |
|
400 | + ->first(static fn(ModuleInterface $module): bool => $module instanceof PedigreeChartModule); |
|
401 | 401 | |
402 | 402 | if ($my_xref !== '' && $pedigree_chart instanceof PedigreeChartModule) { |
403 | 403 | $individual = Registry::individualFactory()->make($my_xref, $tree); |
@@ -486,7 +486,7 @@ discard block |
||
486 | 486 | |
487 | 487 | return $module_service |
488 | 488 | ->findByComponent(ModuleMenuInterface::class, $tree, Auth::user()) |
489 | - ->map(static fn (ModuleMenuInterface $menu): ?Menu => $menu->getMenu($tree)) |
|
489 | + ->map(static fn(ModuleMenuInterface $menu): ?Menu => $menu->getMenu($tree)) |
|
490 | 490 | ->filter() |
491 | 491 | ->all(); |
492 | 492 | } |
@@ -145,7 +145,7 @@ |
||
145 | 145 | // Find a module providing individual lists |
146 | 146 | $module = $this->module_service |
147 | 147 | ->findByComponent(ModuleListInterface::class, $tree, Auth::user()) |
148 | - ->first(static fn (ModuleInterface $module): bool => $module instanceof IndividualListModule); |
|
148 | + ->first(static fn(ModuleInterface $module): bool => $module instanceof IndividualListModule); |
|
149 | 149 | |
150 | 150 | $surnames = view('lists/surnames-compact-list', [ |
151 | 151 | 'module' => $module, |
@@ -328,7 +328,7 @@ |
||
328 | 328 | |
329 | 329 | $language = $this->module_service |
330 | 330 | ->findByInterface(ModuleLanguageInterface::class, true) |
331 | - ->first(fn (ModuleLanguageInterface $language): bool => $language->locale()->languageTag() === I18N::languageTag()); |
|
331 | + ->first(fn(ModuleLanguageInterface $language): bool => $language->locale()->languageTag() === I18N::languageTag()); |
|
332 | 332 | |
333 | 333 | echo '<h3>', I18N::translate('Relationship: %s', $this->relationship_service->nameFromPath($nodes->all(), $language)), '</h3>'; |
334 | 334 | $num_paths++; |