Passed
Push — develop ( 4b87ca...72589b )
by Greg
10:52 queued 04:37
created
app/Http/Controllers/HomePageController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -908,7 +908,7 @@
 block discarded – undo
908 908
     private function filterActiveBlocks(Collection $blocks, Collection $active_blocks): Collection
909 909
     {
910 910
         return $blocks->map(static function (string $block_name) use ($active_blocks): ?ModuleBlockInterface {
911
-            return $active_blocks->filter(static function (ModuleInterface $block) use ($block_name): bool {
911
+            return $active_blocks->filter(static function (ModuleInterface $block) use ($block_name) : bool {
912 912
                 return $block->name() === $block_name;
913 913
             })->first();
914 914
         })
Please login to merge, or discard this patch.
app/Services/ModuleService.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -721,7 +721,7 @@
 block discarded – undo
721 721
     public function findByName(string $module_name, bool $include_disabled = false): ?ModuleInterface
722 722
     {
723 723
         return $this->all($include_disabled)
724
-            ->filter(static function (ModuleInterface $module) use ($module_name): bool {
724
+            ->filter(static function (ModuleInterface $module) use ($module_name) : bool {
725 725
                 return $module->name() === $module_name;
726 726
             })
727 727
             ->first();
Please login to merge, or discard this patch.
app/Module/ListsMenuModule.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -87,7 +87,7 @@
 block discarded – undo
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()
Please login to merge, or discard this patch.
app/Module/HourglassChartModule.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -297,7 +297,7 @@  discard block
 block discarded – undo
297 297
             if ($kcount == 0) {
298 298
                 echo "</td><td style='width:", app(ModuleThemeInterface::class)->parameter('chart-box-x'), "px'>";
299 299
             } else {
300
-                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>';
300
+                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>';
301 301
 
302 302
                 //-- move the arrow up to line up with the correct box
303 303
                 if ($show_spouse) {
@@ -378,7 +378,7 @@  discard block
 block discarded – undo
378 378
                 }
379 379
 
380 380
                 // filter out root person from children array so only siblings remain
381
-                $siblings       = $family->children()->filter(static function (Individual $x) use ($individual): bool {
381
+                $siblings = $family->children()->filter(static function (Individual $x) use ($individual): bool {
382 382
                     return $x !== $individual;
383 383
                 });
384 384
 
@@ -451,7 +451,7 @@  discard block
 block discarded – undo
451 451
                 echo '<td id="td_' . e($ARID) . '">';
452 452
 
453 453
                 if ($generation == $generations - 1 && $family->husband()->childFamilies()) {
454
-                    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>';
454
+                    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>';
455 455
                 }
456 456
 
457 457
                 $this->printPersonPedigree($family->husband(), $generation + 1, $generations, $show_spouse);
@@ -482,7 +482,7 @@  discard block
 block discarded – undo
482 482
                 echo '<td id="td_' . e($ARID) . '">';
483 483
 
484 484
                 if ($generation == $generations - 1 && $family->wife()->childFamilies()) {
485
-                    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>';
485
+                    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>';
486 486
                 }
487 487
 
488 488
                 $this->printPersonPedigree($family->wife(), $generation + 1, $generations, $show_spouse);
Please login to merge, or discard this patch.