Passed
Push — develop ( e21e10...4cbe0a )
by Greg
10:46 queued 03:19
created
app/Http/RequestHandlers/ReorderChildrenAction.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
 
77 77
         // Sort the facts
78
-        $callback = static fn (string $x, string $y): int => array_search($x, $order, true) <=> array_search($y, $order, true);
78
+        $callback = static fn(string $x, string $y): int => array_search($x, $order, true) <=> array_search($y, $order, true);
79 79
         uksort($sort_facts, $callback);
80 80
 
81 81
         // Merge the facts
Please login to merge, or discard this patch.
app/Module/LifespansChartModule.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -267,7 +267,7 @@
 block discarded – undo
267 267
 
268 268
         $lifespans = $this->layoutIndividuals($individuals);
269 269
 
270
-        $callback = static fn (int $carry, object $item): int => max($carry, $item->row);
270
+        $callback = static fn(int $carry, object $item): int => max($carry, $item->row);
271 271
         $max_rows = array_reduce($lifespans, $callback, 0);
272 272
 
273 273
         $count    = count($xrefs);
Please login to merge, or discard this patch.
app/Statistics/Google/ChartMortality.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@
 block discarded – undo
57 57
         string $color_dead = null
58 58
     ): string {
59 59
         $color_living = $color_living ?? '#ffffff';
60
-        $color_dead   = $color_dead   ?? '#cccccc';
60
+        $color_dead   = $color_dead ?? '#cccccc';
61 61
 
62 62
         $data = [
63 63
             [
Please login to merge, or discard this patch.
app/Services/MediaFileService.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -298,9 +298,9 @@  discard block
 block discarded – undo
298 298
         try {
299 299
             $files = $filesystem
300 300
                 ->listContents($folder, $subfolders)
301
-                ->filter(fn (StorageAttributes $attributes): bool => $attributes->isFile())
302
-                ->filter(fn (StorageAttributes $attributes): bool => !$this->ignorePath($attributes->path()))
303
-                ->map(fn (StorageAttributes $attributes): string => $attributes->path())
301
+                ->filter(fn(StorageAttributes $attributes): bool => $attributes->isFile())
302
+                ->filter(fn(StorageAttributes $attributes): bool => !$this->ignorePath($attributes->path()))
303
+                ->map(fn(StorageAttributes $attributes): string => $attributes->path())
304 304
                 ->toArray();
305 305
         } catch (FilesystemException $ex) {
306 306
             $files = [];
@@ -348,9 +348,9 @@  discard block
 block discarded – undo
348 348
     {
349 349
         $folders = Registry::filesystem()->media($tree)
350 350
             ->listContents('', FilesystemReader::LIST_DEEP)
351
-            ->filter(fn (StorageAttributes $attributes): bool => $attributes->isDir())
352
-            ->filter(fn (StorageAttributes $attributes): bool => !$this->ignorePath($attributes->path()))
353
-            ->map(fn (StorageAttributes $attributes): string => $attributes->path())
351
+            ->filter(fn(StorageAttributes $attributes): bool => $attributes->isDir())
352
+            ->filter(fn(StorageAttributes $attributes): bool => !$this->ignorePath($attributes->path()))
353
+            ->map(fn(StorageAttributes $attributes): string => $attributes->path())
354 354
             ->toArray();
355 355
 
356 356
         return new Collection($folders);
@@ -395,9 +395,9 @@  discard block
 block discarded – undo
395 395
         foreach ($media_roots as $media_folder) {
396 396
             $tmp = $data_filesystem
397 397
                 ->listContents($media_folder, FilesystemReader::LIST_DEEP)
398
-                ->filter(fn (StorageAttributes $attributes): bool => $attributes->isDir())
399
-                ->filter(fn (StorageAttributes $attributes): bool => !$this->ignorePath($attributes->path()))
400
-                ->map(fn (StorageAttributes $attributes): string => $attributes->path() . '/')
398
+                ->filter(fn(StorageAttributes $attributes): bool => $attributes->isDir())
399
+                ->filter(fn(StorageAttributes $attributes): bool => !$this->ignorePath($attributes->path()))
400
+                ->map(fn(StorageAttributes $attributes): string => $attributes->path() . '/')
401 401
                 ->toArray();
402 402
 
403 403
             $disk_folders = $disk_folders->concat($tmp);
Please login to merge, or discard this patch.
app/Date.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -457,7 +457,7 @@
 block discarded – undo
457 457
     public function addYears(int $years, string $qualifier = ''): Date
458 458
     {
459 459
         $tmp               = clone $this;
460
-        $tmp->date1->year  += $years;
460
+        $tmp->date1->year += $years;
461 461
         $tmp->date1->month = 0;
462 462
         $tmp->date1->day   = 0;
463 463
         $tmp->date1->setJdFromYmd();
Please login to merge, or discard this patch.
app/Module/FanChartModule.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -431,7 +431,7 @@
 block discarded – undo
431 431
                     ]);
432 432
 
433 433
                     $text_lines = array_map(
434
-                        fn (string $line): string => $this->fitTextToPixelWidth($line, $max_text_length),
434
+                        fn(string $line): string => $this->fitTextToPixelWidth($line, $max_text_length),
435 435
                         $text_lines
436 436
                     );
437 437
 
Please login to merge, or discard this patch.
app/Module/ChartsBlockModule.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
                             'generations' => 3,
118 118
                             'layout'      => PedigreeChartModule::STYLE_RIGHT,
119 119
                         ]);
120
-                        $content   = view('modules/charts/chart', [
120
+                        $content = view('modules/charts/chart', [
121 121
                             'block_id'  => $block_id,
122 122
                             'chart_url' => $chart_url,
123 123
                         ]);
@@ -137,7 +137,7 @@  discard block
 block discarded – undo
137 137
                             'generations' => 2,
138 138
                             'chart_style' => DescendancyChartModule::CHART_STYLE_TREE,
139 139
                         ]);
140
-                        $content   = view('modules/charts/chart', [
140
+                        $content = view('modules/charts/chart', [
141 141
                             'block_id'  => $block_id,
142 142
                             'chart_url' => $chart_url,
143 143
                         ]);
@@ -157,7 +157,7 @@  discard block
 block discarded – undo
157 157
                             'ajax'        => true,
158 158
                             'generations' => 2,
159 159
                         ]);
160
-                        $content   = view('modules/charts/chart', [
160
+                        $content = view('modules/charts/chart', [
161 161
                             'block_id'  => $block_id,
162 162
                             'chart_url' => $chart_url,
163 163
                         ]);
Please login to merge, or discard this patch.
app/SurnameTradition/DefaultSurnameTradition.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -124,7 +124,7 @@  discard block
 block discarded – undo
124 124
         $parts = array_filter($parts);
125 125
 
126 126
         $parts = array_map(
127
-            static fn (string $tag, string $value): string => "\n2 " . $tag . ' ' . $value,
127
+            static fn(string $tag, string $value): string => "\n2 " . $tag . ' ' . $value,
128 128
             array_keys($parts),
129 129
             $parts
130 130
         );
@@ -148,7 +148,7 @@  discard block
 block discarded – undo
148 148
         if ($individual instanceof Individual) {
149 149
             $fact = $individual
150 150
                 ->facts(['NAME'])
151
-                ->first(fn (Fact $fact): bool => in_array($fact->attribute('TYPE'), ['', 'birth', 'change'], true));
151
+                ->first(fn(Fact $fact): bool => in_array($fact->attribute('TYPE'), ['', 'birth', 'change'], true));
152 152
 
153 153
             if ($fact instanceof Fact) {
154 154
                 return $fact->value();
Please login to merge, or discard this patch.
app/Relationship.php 1 patch
Spacing   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
      */
82 82
     public static function fixed(string $nominative, string $genitive): Relationship
83 83
     {
84
-        return new self(fn () => [$nominative, $genitive]);
84
+        return new self(fn() => [$nominative, $genitive]);
85 85
     }
86 86
 
87 87
     /**
@@ -126,9 +126,9 @@  discard block
 block discarded – undo
126 126
      */
127 127
     public function adopted(): Relationship
128 128
     {
129
-        $this->matchers[] = static fn (array $nodes): bool => count($nodes) > 2 && $nodes[2]
129
+        $this->matchers[] = static fn(array $nodes): bool => count($nodes) > 2 && $nodes[2]
130 130
                 ->facts(['FAMC'], false, Auth::PRIV_HIDE)
131
-                ->contains(fn (Fact $fact): bool => $fact->value() === '@' . $nodes[1]->xref() . '@' && $fact->attribute('PEDI') === 'adopted');
131
+                ->contains(fn(Fact $fact): bool => $fact->value() === '@' . $nodes[1]->xref() . '@' && $fact->attribute('PEDI') === 'adopted');
132 132
 
133 133
         return $this;
134 134
     }
@@ -138,9 +138,9 @@  discard block
 block discarded – undo
138 138
      */
139 139
     public function adoptive(): Relationship
140 140
     {
141
-        $this->matchers[] = static fn (array $nodes): bool => $nodes[0]
141
+        $this->matchers[] = static fn(array $nodes): bool => $nodes[0]
142 142
             ->facts(['FAMC'], false, Auth::PRIV_HIDE)
143
-            ->contains(fn (Fact $fact): bool => $fact->value() === '@' . $nodes[1]->xref() . '@' && $fact->attribute('PEDI') === 'adopted');
143
+            ->contains(fn(Fact $fact): bool => $fact->value() === '@' . $nodes[1]->xref() . '@' && $fact->attribute('PEDI') === 'adopted');
144 144
 
145 145
         return $this;
146 146
     }
@@ -346,9 +346,9 @@  discard block
 block discarded – undo
346 346
      */
347 347
     public function fostered(): Relationship
348 348
     {
349
-        $this->matchers[] = static fn (array $nodes): bool => count($nodes) > 2 && $nodes[2]
349
+        $this->matchers[] = static fn(array $nodes): bool => count($nodes) > 2 && $nodes[2]
350 350
                 ->facts(['FAMC'], false, Auth::PRIV_HIDE)
351
-                ->contains(fn (Fact $fact): bool => $fact->value() === '@' . $nodes[1]->xref() . '@' && $fact->attribute('PEDI') === 'foster');
351
+                ->contains(fn(Fact $fact): bool => $fact->value() === '@' . $nodes[1]->xref() . '@' && $fact->attribute('PEDI') === 'foster');
352 352
 
353 353
         return $this;
354 354
     }
@@ -358,9 +358,9 @@  discard block
 block discarded – undo
358 358
      */
359 359
     public function fostering(): Relationship
360 360
     {
361
-        $this->matchers[] = static fn (array $nodes): bool => $nodes[0]
361
+        $this->matchers[] = static fn(array $nodes): bool => $nodes[0]
362 362
             ->facts(['FAMC'], false, Auth::PRIV_HIDE)
363
-            ->contains(fn (Fact $fact): bool => $fact->value() === '@' . $nodes[1]->xref() . '@' && $fact->attribute('PEDI') === 'foster');
363
+            ->contains(fn(Fact $fact): bool => $fact->value() === '@' . $nodes[1]->xref() . '@' && $fact->attribute('PEDI') === 'foster');
364 364
 
365 365
         return $this;
366 366
     }
@@ -403,8 +403,8 @@  discard block
 block discarded – undo
403 403
     public function older(): Relationship
404 404
     {
405 405
         $this->matchers[] = static function (array $nodes): bool {
406
-            $date1 = $nodes[0]->facts(['BIRT'], false, Auth::PRIV_HIDE)->map(fn (Fact $fact): Date => $fact->date())->first() ?? new Date('');
407
-            $date2 = $nodes[2]->facts(['BIRT'], false, Auth::PRIV_HIDE)->map(fn (Fact $fact): Date => $fact->date())->first() ?? new Date('');
406
+            $date1 = $nodes[0]->facts(['BIRT'], false, Auth::PRIV_HIDE)->map(fn(Fact $fact): Date => $fact->date())->first() ?? new Date('');
407
+            $date2 = $nodes[2]->facts(['BIRT'], false, Auth::PRIV_HIDE)->map(fn(Fact $fact): Date => $fact->date())->first() ?? new Date('');
408 408
 
409 409
             return Date::compare($date1, $date2) > 0;
410 410
         };
@@ -503,8 +503,8 @@  discard block
 block discarded – undo
503 503
     public function twin(): Relationship
504 504
     {
505 505
         $this->matchers[] = static function (array $nodes): bool {
506
-            $date1 = $nodes[0]->facts(['BIRT'], false, Auth::PRIV_HIDE)->map(fn (Fact $fact): Date => $fact->date())->first() ?? new Date('');
507
-            $date2 = $nodes[2]->facts(['BIRT'], false, Auth::PRIV_HIDE)->map(fn (Fact $fact): Date => $fact->date())->first() ?? new Date('');
506
+            $date1 = $nodes[0]->facts(['BIRT'], false, Auth::PRIV_HIDE)->map(fn(Fact $fact): Date => $fact->date())->first() ?? new Date('');
507
+            $date2 = $nodes[2]->facts(['BIRT'], false, Auth::PRIV_HIDE)->map(fn(Fact $fact): Date => $fact->date())->first() ?? new Date('');
508 508
 
509 509
             return
510 510
                 $date1->isOK() &&
@@ -531,8 +531,8 @@  discard block
 block discarded – undo
531 531
     public function younger(): Relationship
532 532
     {
533 533
         $this->matchers[] = static function (array $nodes): bool {
534
-            $date1 = $nodes[0]->facts(['BIRT'], false, Auth::PRIV_HIDE)->map(fn (Fact $fact): Date => $fact->date())->first() ?? new Date('');
535
-            $date2 = $nodes[2]->facts(['BIRT'], false, Auth::PRIV_HIDE)->map(fn (Fact $fact): Date => $fact->date())->first() ?? new Date('');
534
+            $date1 = $nodes[0]->facts(['BIRT'], false, Auth::PRIV_HIDE)->map(fn(Fact $fact): Date => $fact->date())->first() ?? new Date('');
535
+            $date2 = $nodes[2]->facts(['BIRT'], false, Auth::PRIV_HIDE)->map(fn(Fact $fact): Date => $fact->date())->first() ?? new Date('');
536 536
 
537 537
             return Date::compare($date1, $date2) < 0;
538 538
         };
Please login to merge, or discard this patch.