Passed
Push — develop ( 6cf45e...7f7132 )
by Greg
07:10
created
app/Date/JulianDate.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -74,7 +74,7 @@
 block discarded – undo
74 74
         }
75 75
 
76 76
         if (preg_match('/^(\d+) B\.C\.$/', $year, $match)) {
77
-            return - (int) $match[1];
77
+            return -(int) $match[1];
78 78
         }
79 79
 
80 80
         return (int) $year;
Please login to merge, or discard this patch.
app/Services/UpgradeService.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -76,7 +76,7 @@
 block discarded – undo
76 76
     {
77 77
         $latest_version = $this->fetchLatestVersion();
78 78
 
79
-        [, , $url] = explode('|', $latest_version . '||');
79
+        [,, $url] = explode('|', $latest_version . '||');
80 80
 
81 81
         return $url;
82 82
     }
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/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
-            ->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
     }
Please login to merge, or discard this patch.
app/Statistics.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2618,7 +2618,7 @@
 block discarded – undo
2618 2618
         /** @var ModuleBlockInterface|null $module */
2619 2619
         $module = $this->module_service
2620 2620
             ->findByComponent(ModuleBlockInterface::class, $this->tree, Auth::user())
2621
-            ->first(static function (ModuleInterface $module) use ($block): bool {
2621
+            ->first(static function (ModuleInterface $module) use ($block) : bool {
2622 2622
                 return $module->name() === $block && $module->name() !== 'html';
2623 2623
             });
2624 2624
 
Please login to merge, or discard this patch.
app/Module/PedigreeChartModule.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -211,7 +211,7 @@
 block discarded – undo
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) {
Please login to merge, or discard this patch.
app/Services/HomePageService.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -907,7 +907,7 @@
 block discarded – undo
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();
Please login to merge, or discard this patch.
app/Factories/GedcomRecordFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -96,7 +96,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
app/Factories/NoteFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -86,7 +86,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.