Passed
Push — dbal ( ab892e...ab3180 )
by Greg
13:41 queued 06:24
created
app/Exceptions/FileUploadException.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@
 block discarded – undo
42 42
     /**
43 43
      * @param UploadedFileInterface|null $uploaded_file
44 44
      */
45
-    public function __construct(UploadedFileInterface|null $uploaded_file)
45
+    public function __construct(UploadedFileInterface | null $uploaded_file)
46 46
     {
47 47
         if ($uploaded_file === null) {
48 48
             parent::__construct(I18N::translate('No file was received. Please try again.'));
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
@@ -385,7 +385,7 @@
 block discarded – undo
385 385
      */
386 386
     private function filterActiveBlocks(Collection $blocks, Collection $active_blocks): Collection
387 387
     {
388
-        return $blocks->map(static fn(string $block_name): ModuleBlockInterface|null => $active_blocks->filter(static fn(ModuleInterface $block): bool => $block->name() === $block_name)->first())
388
+        return $blocks->map(static fn(string $block_name): ModuleBlockInterface | null => $active_blocks->filter(static fn(ModuleInterface $block): bool => $block->name() === $block_name)->first())
389 389
             ->filter();
390 390
     }
391 391
 }
Please login to merge, or discard this patch.
app/Services/DataFixService.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@
 block discarded – undo
46 46
     /**
47 47
      * Since we know the type, this is quicker than calling Registry::gedcomRecordFactory()->make().
48 48
      */
49
-    public function getRecordByType(string $xref, Tree $tree, string $type): GedcomRecord|null
49
+    public function getRecordByType(string $xref, Tree $tree, string $type): GedcomRecord | null
50 50
     {
51 51
         switch ($type) {
52 52
             case Family::RECORD_TYPE:
Please login to merge, or discard this patch.
app/Services/GedcomService.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -174,17 +174,17 @@
 block discarded – undo
174 174
         return $tag;
175 175
     }
176 176
 
177
-    public function readLatitude(string $text): float|null
177
+    public function readLatitude(string $text): float | null
178 178
     {
179 179
         return $this->readDegrees($text, Gedcom::LATITUDE_NORTH, Gedcom::LATITUDE_SOUTH);
180 180
     }
181 181
 
182
-    public function readLongitude(string $text): float|null
182
+    public function readLongitude(string $text): float | null
183 183
     {
184 184
         return $this->readDegrees($text, Gedcom::LONGITUDE_EAST, Gedcom::LONGITUDE_WEST);
185 185
     }
186 186
 
187
-    private function readDegrees(string $text, string $positive, string $negative): float|null
187
+    private function readDegrees(string $text, string $positive, string $negative): float | null
188 188
     {
189 189
         $text       = trim($text);
190 190
         $hemisphere = substr($text, 0, 1);
Please login to merge, or discard this patch.
app/Services/ModuleService.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -696,7 +696,7 @@  discard block
 block discarded – undo
696 696
 
697 697
                 return strlen($module_name) <= 30;
698 698
             })
699
-            ->map(static function (string $filename): ModuleCustomInterface|null {
699
+            ->map(static function (string $filename): ModuleCustomInterface | null {
700 700
                 $module = self::load($filename);
701 701
 
702 702
                 if ($module instanceof ModuleCustomInterface) {
@@ -714,7 +714,7 @@  discard block
 block discarded – undo
714 714
     /**
715 715
      * Load a custom module in a static scope, to prevent it from modifying local or object variables.
716 716
      */
717
-    private static function load(string $filename): ModuleInterface|null
717
+    private static function load(string $filename): ModuleInterface | null
718 718
     {
719 719
         try {
720 720
             return include $filename;
@@ -826,7 +826,7 @@  discard block
 block discarded – undo
826 826
     /**
827 827
      * Find a specified module, if it is currently active.
828 828
      */
829
-    public function findByName(string $module_name, bool $include_disabled = false): ModuleInterface|null
829
+    public function findByName(string $module_name, bool $include_disabled = false): ModuleInterface | null
830 830
     {
831 831
         return $this->all($include_disabled)
832 832
             ->first(static fn(ModuleInterface $module): bool => $module->name() === $module_name);
Please login to merge, or discard this patch.
app/Services/UserService.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -45,10 +45,10 @@  discard block
 block discarded – undo
45 45
     /**
46 46
      * Find the user with a specified user_id.
47 47
      */
48
-    public function find(int|null $user_id): User|null
48
+    public function find(int | null $user_id): User | null
49 49
     {
50 50
         return Registry::cache()->array()
51
-            ->remember('user-' . $user_id, static fn(): User|null => DB::table('user')
51
+            ->remember('user-' . $user_id, static fn(): User | null => DB::table('user')
52 52
                 ->where('user_id', '=', $user_id)
53 53
                 ->get()
54 54
                 ->map(User::rowMapper())
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
     /**
59 59
      * Find the user with a specified email address.
60 60
      */
61
-    public function findByEmail(string $email): User|null
61
+    public function findByEmail(string $email): User | null
62 62
     {
63 63
         return DB::table('user')
64 64
             ->where('email', '=', $email)
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
     /**
71 71
      * Find the user with a specified user_name or email address.
72 72
      */
73
-    public function findByIdentifier(string $identifier): User|null
73
+    public function findByIdentifier(string $identifier): User | null
74 74
     {
75 75
         return DB::table('user')
76 76
             ->where('user_name', '=', $identifier)
@@ -102,7 +102,7 @@  discard block
 block discarded – undo
102 102
     /**
103 103
      * Find the user with a specified password reset token.
104 104
      */
105
-    public function findByToken(string $token): User|null
105
+    public function findByToken(string $token): User | null
106 106
     {
107 107
         return DB::table('user')
108 108
             ->join('user_setting AS us1', 'us1.user_id', '=', 'user.user_id')
@@ -120,7 +120,7 @@  discard block
 block discarded – undo
120 120
     /**
121 121
      * Find the user with a specified user_name.
122 122
      */
123
-    public function findByUserName(string $user_name): User|null
123
+    public function findByUserName(string $user_name): User | null
124 124
     {
125 125
         return DB::table('user')
126 126
             ->where('user_name', '=', $user_name)
Please login to merge, or discard this patch.
app/I18N.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -209,7 +209,7 @@  discard block
 block discarded – undo
209 209
 
210 210
     private static Translator $translator;
211 211
 
212
-    private static Collator|null $collator = null;
212
+    private static Collator | null $collator = null;
213 213
 
214 214
     /**
215 215
      * The preferred locales for this site, or a default list if no preference.
@@ -248,7 +248,7 @@  discard block
 block discarded – undo
248 248
      *
249 249
      * @return string
250 250
      */
251
-    public static function digits(string|int $n): string
251
+    public static function digits(string | int $n): string
252 252
     {
253 253
         return self::$locale->digits((string) $n);
254 254
     }
Please login to merge, or discard this patch.
app/Statistics.php 1 patch
Spacing   +20 added lines, -20 removed lines patch added patch discarded remove patch
@@ -316,7 +316,7 @@  discard block
 block discarded – undo
316 316
      * @return string
317 317
      */
318 318
     public function chartIndisWithSources(
319
-        string|null $color_from = null,
319
+        string | null $color_from = null,
320 320
         string $color_to = null
321 321
     ): string {
322 322
         return $this->individual_repository->chartIndisWithSources($color_from, $color_to);
@@ -369,7 +369,7 @@  discard block
 block discarded – undo
369 369
      * @return string
370 370
      */
371 371
     public function chartFamsWithSources(
372
-        string|null $color_from = null,
372
+        string | null $color_from = null,
373 373
         string $color_to = null
374 374
     ): string {
375 375
         return $this->individual_repository->chartFamsWithSources($color_from, $color_to);
@@ -581,8 +581,8 @@  discard block
 block discarded – undo
581 581
      * @return string
582 582
      */
583 583
     public function chartSex(
584
-        string|null $color_female = null,
585
-        string|null $color_male = null,
584
+        string | null $color_female = null,
585
+        string | null $color_male = null,
586 586
         string $color_unknown = null
587 587
     ): string {
588 588
         return $this->individual_repository->chartSex($color_female, $color_male, $color_unknown);
@@ -626,7 +626,7 @@  discard block
 block discarded – undo
626 626
      *
627 627
      * @return string
628 628
      */
629
-    public function chartMortality(string|null $color_living = null, string|null $color_dead = null): string
629
+    public function chartMortality(string | null $color_living = null, string | null $color_dead = null): string
630 630
     {
631 631
         return $this->individual_repository->chartMortality($color_living, $color_dead);
632 632
     }
@@ -797,7 +797,7 @@  discard block
 block discarded – undo
797 797
      *
798 798
      * @return string
799 799
      */
800
-    public function chartMedia(string|null $color_from = null, string|null $color_to = null): string
800
+    public function chartMedia(string | null $color_from = null, string | null $color_to = null): string
801 801
     {
802 802
         return $this->media_repository->chartMedia($color_from, $color_to);
803 803
     }
@@ -949,7 +949,7 @@  discard block
 block discarded – undo
949 949
      *
950 950
      * @return string
951 951
      */
952
-    public function statsBirth(string|null $color_from = null, string|null $color_to = null): string
952
+    public function statsBirth(string | null $color_from = null, string | null $color_to = null): string
953 953
     {
954 954
         return $this->individual_repository->statsBirth($color_from, $color_to);
955 955
     }
@@ -1046,7 +1046,7 @@  discard block
 block discarded – undo
1046 1046
      *
1047 1047
      * @return string
1048 1048
      */
1049
-    public function statsDeath(string|null $color_from = null, string|null $color_to = null): string
1049
+    public function statsDeath(string | null $color_from = null, string | null $color_to = null): string
1050 1050
     {
1051 1051
         return $this->individual_repository->statsDeath($color_from, $color_to);
1052 1052
     }
@@ -1468,7 +1468,7 @@  discard block
 block discarded – undo
1468 1468
      *
1469 1469
      * @return string
1470 1470
      */
1471
-    public function statsMarr(string|null $color_from = null, string|null $color_to = null): string
1471
+    public function statsMarr(string | null $color_from = null, string | null $color_to = null): string
1472 1472
     {
1473 1473
         return $this->family_repository->statsMarr($color_from, $color_to);
1474 1474
     }
@@ -1543,7 +1543,7 @@  discard block
 block discarded – undo
1543 1543
      *
1544 1544
      * @return string
1545 1545
      */
1546
-    public function statsDiv(string|null $color_from = null, string|null $color_to = null): string
1546
+    public function statsDiv(string | null $color_from = null, string | null $color_to = null): string
1547 1547
     {
1548 1548
         return $this->family_repository->statsDiv($color_from, $color_to);
1549 1549
     }
@@ -1978,8 +1978,8 @@  discard block
 block discarded – undo
1978 1978
      * @return string
1979 1979
      */
1980 1980
     public function chartLargestFamilies(
1981
-        string|null $color_from = null,
1982
-        string|null $color_to = null,
1981
+        string | null $color_from = null,
1982
+        string | null $color_to = null,
1983 1983
         string $total = '10'
1984 1984
     ): string {
1985 1985
         return $this->family_repository->chartLargestFamilies($color_from, $color_to, (int) $total);
@@ -2189,8 +2189,8 @@  discard block
 block discarded – undo
2189 2189
      * @return string
2190 2190
      */
2191 2191
     public function chartCommonSurnames(
2192
-        string|null $color_from = null,
2193
-        string|null $color_to = null,
2192
+        string | null $color_from = null,
2193
+        string | null $color_to = null,
2194 2194
         string $number_of_surnames = '10'
2195 2195
     ): string {
2196 2196
         return $this->individual_repository
@@ -2425,8 +2425,8 @@  discard block
 block discarded – undo
2425 2425
      * @return string
2426 2426
      */
2427 2427
     public function chartCommonGiven(
2428
-        string|null $color_from = null,
2429
-        string|null $color_to = null,
2428
+        string | null $color_from = null,
2429
+        string | null $color_to = null,
2430 2430
         string $maxtoshow = '7'
2431 2431
     ): string {
2432 2432
         return $this->individual_repository->chartCommonGiven($color_from, $color_to, (int) $maxtoshow);
@@ -2551,7 +2551,7 @@  discard block
 block discarded – undo
2551 2551
      *
2552 2552
      * @return string
2553 2553
      */
2554
-    public function latestUserRegDate(string|null $format = null): string
2554
+    public function latestUserRegDate(string | null $format = null): string
2555 2555
     {
2556 2556
         return $this->latest_user_repository->latestUserRegDate($format);
2557 2557
     }
@@ -2561,7 +2561,7 @@  discard block
 block discarded – undo
2561 2561
      *
2562 2562
      * @return string
2563 2563
      */
2564
-    public function latestUserRegTime(string|null $format = null): string
2564
+    public function latestUserRegTime(string | null $format = null): string
2565 2565
     {
2566 2566
         return $this->latest_user_repository->latestUserRegTime($format);
2567 2567
     }
@@ -2572,7 +2572,7 @@  discard block
 block discarded – undo
2572 2572
      *
2573 2573
      * @return string
2574 2574
      */
2575
-    public function latestUserLoggedin(string|null $yes = null, string|null $no = null): string
2575
+    public function latestUserLoggedin(string | null $yes = null, string | null $no = null): string
2576 2576
     {
2577 2577
         return $this->latest_user_repository->latestUserLoggedin($yes, $no);
2578 2578
     }
@@ -2796,7 +2796,7 @@  discard block
 block discarded – undo
2796 2796
      *
2797 2797
      * @return string|null
2798 2798
      */
2799
-    public function callBlock(string $block = '', ...$params): string|null
2799
+    public function callBlock(string $block = '', ...$params): string | null
2800 2800
     {
2801 2801
         /** @var ModuleBlockInterface|null $module */
2802 2802
         $module = $this->module_service
Please login to merge, or discard this patch.
app/Relationship.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -103,7 +103,7 @@
 block discarded – undo
103 103
      *
104 104
      * @return array<string>|null [nominative, genitive] or null
105 105
      */
106
-    public function match(array $nodes, array $patterns): array|null
106
+    public function match(array $nodes, array $patterns): array | null
107 107
     {
108 108
         $captures = [];
109 109
 
Please login to merge, or discard this patch.