Passed
Push — dbal ( ab892e...ab3180 )
by Greg
13:41 queued 06:24
created
app/Module/FixDuplicateLinks.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -92,7 +92,7 @@
 block discarded – undo
92 92
      *
93 93
      * @return Collection<int,string>|null
94 94
      */
95
-    protected function individualsToFix(Tree $tree, array $params): Collection|null
95
+    protected function individualsToFix(Tree $tree, array $params): Collection | null
96 96
     {
97 97
         // No DB querying possible?  Select all.
98 98
         return $this->individualsToFixQuery($tree, $params)
Please login to merge, or discard this patch.
app/Module/TimelineChartModule.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -160,7 +160,7 @@  discard block
 block discarded – undo
160 160
         // Find the requested individuals.
161 161
         $individuals = (new Collection($xrefs))
162 162
             ->uniqueStrict()
163
-            ->map(static fn(string $xref): Individual|null => Registry::individualFactory()->make($xref, $tree))
163
+            ->map(static fn(string $xref): Individual | null => Registry::individualFactory()->make($xref, $tree))
164 164
             ->filter()
165 165
             ->filter(GedcomRecord::accessFilter());
166 166
 
@@ -179,9 +179,9 @@  discard block
 block discarded – undo
179 179
             ]);
180 180
         }
181 181
 
182
-        $individuals = array_map(static fn(string $xref): Individual|null => Registry::individualFactory()->make($xref, $tree), $xrefs);
182
+        $individuals = array_map(static fn(string $xref): Individual | null => Registry::individualFactory()->make($xref, $tree), $xrefs);
183 183
 
184
-        $individuals = array_filter($individuals, static fn(Individual|null $individual): bool => $individual instanceof Individual && $individual->canShow());
184
+        $individuals = array_filter($individuals, static fn(Individual | null $individual): bool => $individual instanceof Individual && $individual->canShow());
185 185
 
186 186
         if ($ajax) {
187 187
             $this->layout = 'layouts/ajax';
@@ -237,9 +237,9 @@  discard block
 block discarded – undo
237 237
     protected function chart(Tree $tree, array $xrefs, int $scale): ResponseInterface
238 238
     {
239 239
         /** @var Individual[] $individuals */
240
-        $individuals = array_map(static fn(string $xref): Individual|null => Registry::individualFactory()->make($xref, $tree), $xrefs);
240
+        $individuals = array_map(static fn(string $xref): Individual | null => Registry::individualFactory()->make($xref, $tree), $xrefs);
241 241
 
242
-        $individuals = array_filter($individuals, static fn(Individual|null $individual): bool => $individual instanceof Individual && $individual->canShow());
242
+        $individuals = array_filter($individuals, static fn(Individual | null $individual): bool => $individual instanceof Individual && $individual->canShow());
243 243
 
244 244
         $baseyear    = (int) date('Y');
245 245
         $topyear     = 0;
Please login to merge, or discard this patch.
app/Module/ClippingsCartModule.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -147,7 +147,7 @@  discard block
 block discarded – undo
147 147
     /**
148 148
      * A menu, to be added to the main application menu.
149 149
      */
150
-    public function getMenu(Tree $tree): Menu|null
150
+    public function getMenu(Tree $tree): Menu | null
151 151
     {
152 152
         $request = Registry::container()->get(ServerRequestInterface::class);
153 153
         $route   = Validator::attributes($request)->route();
@@ -409,7 +409,7 @@  discard block
 block discarded – undo
409 409
         $xrefs = array_map('strval', $xrefs); // PHP converts numeric keys to integers.
410 410
 
411 411
         // Fetch all the records in the cart.
412
-        $records = array_map(static fn(string $xref): GedcomRecord|null => Registry::gedcomRecordFactory()->make($xref, $tree), $xrefs);
412
+        $records = array_map(static fn(string $xref): GedcomRecord | null => Registry::gedcomRecordFactory()->make($xref, $tree), $xrefs);
413 413
 
414 414
         // Some records may have been deleted after they were added to the cart.
415 415
         $records = array_filter($records);
Please login to merge, or discard this patch.
app/Module/InteractiveTree/TreeView.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
93 93
             switch ($firstLetter) {
94 94
                 case 'c':
95 95
                     $families = Collection::make(explode(',', $json_request))
96
-                        ->map(static fn(string $xref): Family|null => Registry::familyFactory()->make($xref, $tree))
96
+                        ->map(static fn(string $xref): Family | null => Registry::familyFactory()->make($xref, $tree))
97 97
                         ->filter();
98 98
 
99 99
                     $r[] = $this->drawChildren($families, 1, true);
@@ -147,7 +147,7 @@  discard block
 block discarded – undo
147 147
      *
148 148
      * @return string
149 149
      */
150
-    private function getPersonDetails(Individual $individual, Family|null $family = null): string
150
+    private function getPersonDetails(Individual $individual, Family | null $family = null): string
151 151
     {
152 152
         $chart_url = route('module', [
153 153
             'module' => 'tree',
@@ -235,7 +235,7 @@  discard block
 block discarded – undo
235 235
      *
236 236
      * @return string
237 237
      */
238
-    private function drawPerson(Individual $person, int $gen, int $state, Family|null $pfamily, string $line, bool $isRoot): string
238
+    private function drawPerson(Individual $person, int $gen, int $state, Family | null $pfamily, string $line, bool $isRoot): string
239 239
     {
240 240
         if ($gen < 0) {
241 241
             return '';
Please login to merge, or discard this patch.
app/Module/StoriesModule.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -184,7 +184,7 @@
 block discarded – undo
184 184
      *
185 185
      * @return Menu|null
186 186
      */
187
-    public function getMenu(Tree $tree): Menu|null
187
+    public function getMenu(Tree $tree): Menu | null
188 188
     {
189 189
         return new Menu($this->title(), route('module', [
190 190
             'module' => $this->name(),
Please login to merge, or discard this patch.
app/Module/ModuleListTrait.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@
 block discarded – undo
48 48
      *
49 49
      * @return Menu|null
50 50
      */
51
-    public function listMenu(Tree $tree): Menu|null
51
+    public function listMenu(Tree $tree): Menu | null
52 52
     {
53 53
         if ($this->listIsEmpty($tree)) {
54 54
             return null;
Please login to merge, or discard this patch.
app/Module/LifespansChartModule.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -248,9 +248,9 @@
 block discarded – undo
248 248
     protected function chart(Tree $tree, array $xrefs): ResponseInterface
249 249
     {
250 250
         /** @var Individual[] $individuals */
251
-        $individuals = array_map(static fn(string $xref): Individual|null => Registry::individualFactory()->make($xref, $tree), $xrefs);
251
+        $individuals = array_map(static fn(string $xref): Individual | null => Registry::individualFactory()->make($xref, $tree), $xrefs);
252 252
 
253
-        $individuals = array_filter($individuals, static fn(Individual|null $individual): bool => $individual instanceof Individual && $individual->canShow());
253
+        $individuals = array_filter($individuals, static fn(Individual | null $individual): bool => $individual instanceof Individual && $individual->canShow());
254 254
 
255 255
         // Sort the array in order of birth year
256 256
         usort($individuals, Individual::birthDateComparator());
Please login to merge, or discard this patch.
app/Module/CalendarMenuModule.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -66,7 +66,7 @@
 block discarded – undo
66 66
     /**
67 67
      * A menu, to be added to the main application menu.
68 68
      */
69
-    public function getMenu(Tree $tree): Menu|null
69
+    public function getMenu(Tree $tree): Menu | null
70 70
     {
71 71
         $submenu = [
72 72
             $this->calendarDayMenu($tree),
Please login to merge, or discard this patch.
app/Module/FixMissingDeaths.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -75,7 +75,7 @@
 block discarded – undo
75 75
      *
76 76
      * @return Collection<int,string>|null
77 77
      */
78
-    protected function individualsToFix(Tree $tree, array $params): Collection|null
78
+    protected function individualsToFix(Tree $tree, array $params): Collection | null
79 79
     {
80 80
         $query = $this->individualsToFixQuery($tree, $params);
81 81
 
Please login to merge, or discard this patch.