Passed
Push — dbal ( f02271...d7ee92 )
by Greg
10:14
created
app/DB/Index.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 block discarded – undo
29 29
     /**
30 30
      * @param array<int,string> $columns
31 31
      */
32
-    public function __construct(public readonly array $columns, string|null $name = null)
32
+    public function __construct(public readonly array $columns, string | null $name = null)
33 33
     {
34 34
         parent::__construct(name: $name, columns: $this->columns);
35 35
     }
Please login to merge, or discard this patch.
app/Factories/SlugFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@
 block discarded – undo
34 34
  */
35 35
 class SlugFactory implements SlugFactoryInterface
36 36
 {
37
-    private Transliterator|null $transliterator = null;
37
+    private Transliterator | null $transliterator = null;
38 38
 
39 39
     public function __construct(private PhpService $php_service)
40 40
     {
Please login to merge, or discard this patch.
app/Http/Middleware/CompressResponse.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -94,7 +94,7 @@
 block discarded – undo
94 94
         return $response;
95 95
     }
96 96
 
97
-    protected function compressionMethod(RequestInterface $request): string|null
97
+    protected function compressionMethod(RequestInterface $request): string | null
98 98
     {
99 99
         $accept_encoding = strtolower($request->getHeaderLine('accept-encoding'));
100 100
         $zlib_available  = $this->php_service->extensionLoaded(extension: 'zlib');
Please login to merge, or discard this patch.
app/Services/TimeoutService.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@
 block discarded – undo
37 37
 
38 38
     public function __construct(
39 39
         private PhpService $php_service,
40
-        float|null $start_time = null,
40
+        float | null $start_time = null,
41 41
     ) {
42 42
         $this->start_time = $start_time ?? Registry::timeFactory()->now();
43 43
     }
Please login to merge, or discard this patch.
app/Cli/Commands/TreeList.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -112,7 +112,7 @@
 block discarded – undo
112 112
         return implode(separator: ',', array: $columns);
113 113
     }
114 114
 
115
-    private function quoteCsvValue(string|int $value): string
115
+    private function quoteCsvValue(string | int $value): string
116 116
     {
117 117
         return '"' . addcslashes(string: (string) $value, characters: '"') . '"';
118 118
     }
Please login to merge, or discard this patch.
app/Cli/Commands/UserList.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -71,13 +71,13 @@  discard block
 block discarded – undo
71 71
             'real_name'  => $user->realName(),
72 72
             'email'      => $user->email(),
73 73
             'admin'      => $user->getPreference(setting_name: UserInterface::PREF_IS_ADMINISTRATOR) ? 'yes' : 'no',
74
-            'approved'   => $user->getPreference(setting_name: UserInterface::PREF_IS_ACCOUNT_APPROVED) ? 'yes' : 'no',
75
-            'verified'   => $user->getPreference(setting_name: UserInterface::PREF_IS_EMAIL_VERIFIED) ? 'yes' : 'no',
76
-            'language'   => $user->getPreference(setting_name: UserInterface::PREF_LANGUAGE),
77
-            'timezone'   => $user->getPreference(setting_name: UserInterface::PREF_TIME_ZONE),
78
-            'contact'    => $user->getPreference(setting_name: UserInterface::PREF_CONTACT_METHOD),
79
-            'registered' => $this->formatTimestamp(timestamp: (int) $user->getPreference(setting_name: UserInterface::PREF_TIMESTAMP_REGISTERED)),
80
-            'last_login' => $this->formatTimestamp(timestamp: (int) $user->getPreference(setting_name: UserInterface::PREF_TIMESTAMP_ACTIVE)),
74
+            'approved'   => $user->getPreference(setting_name : UserInterface::PREF_IS_ACCOUNT_APPROVED) ? 'yes' : 'no',
75
+            'verified'   => $user->getPreference(setting_name : UserInterface::PREF_IS_EMAIL_VERIFIED) ? 'yes' : 'no',
76
+            'language'   => $user->getPreference(setting_name : UserInterface::PREF_LANGUAGE),
77
+            'timezone'   => $user->getPreference(setting_name : UserInterface::PREF_TIME_ZONE),
78
+            'contact'    => $user->getPreference(setting_name : UserInterface::PREF_CONTACT_METHOD),
79
+            'registered' => $this->formatTimestamp(timestamp : (int) $user->getPreference(setting_name : UserInterface::PREF_TIMESTAMP_REGISTERED)),
80
+            'last_login' => $this->formatTimestamp(timestamp : (int) $user->getPreference(setting_name : UserInterface::PREF_TIMESTAMP_ACTIVE)),
81 81
         ])
82 82
         ->values()
83 83
         ->all();
@@ -131,7 +131,7 @@  discard block
 block discarded – undo
131 131
         return implode(separator: ',', array: $columns);
132 132
     }
133 133
 
134
-    private function quoteCsvValue(string|int $value): string
134
+    private function quoteCsvValue(string | int $value): string
135 135
     {
136 136
         return '"' . addcslashes(string: (string) $value, characters: '"') . '"';
137 137
     }
Please login to merge, or discard this patch.
app/StatisticsFormat.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -174,7 +174,7 @@
 block discarded – undo
174 174
         ]);
175 175
     }
176 176
 
177
-    public function record(GedcomRecord|null $record): string
177
+    public function record(GedcomRecord | null $record): string
178 178
     {
179 179
         if ($record === null) {
180 180
             return $this->missing();
Please login to merge, or discard this patch.
app/Module/StatisticsChartModule.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -846,7 +846,7 @@  discard block
 block discarded – undo
846 846
      * @param array<int|string> $z_axis
847 847
      * @param array<array<int>> $ydata
848 848
      */
849
-    private function fillYData(int|string $x, int|string $z, int $value, array $x_axis, array $z_axis, array &$ydata): void
849
+    private function fillYData(int | string $x, int | string $z, int $value, array $x_axis, array $z_axis, array &$ydata): void
850 850
     {
851 851
         $x = $this->findAxisEntry($x, $x_axis);
852 852
         $z = $this->findAxisEntry($z, $z_axis);
@@ -862,7 +862,7 @@  discard block
 block discarded – undo
862 862
      *
863 863
      * @param array<int|string > $axis
864 864
      */
865
-    private function findAxisEntry(int|string $value, array $axis): int|string
865
+    private function findAxisEntry(int | string $value, array $axis): int | string
866 866
     {
867 867
         if (is_numeric($value)) {
868 868
             $value = (int) $value;
Please login to merge, or discard this patch.
app/Statistics.php 1 patch
Spacing   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -513,7 +513,7 @@  discard block
 block discarded – undo
513 513
     public function commonGiven(string $threshold = '1', string $limit = '10'): string
514 514
     {
515 515
         return $this->data->commonGivenNames('ALL', (int) $threshold, (int) $limit)
516
-            ->mapWithKeys(static fn (int $value, int|string $key): array => [
516
+            ->mapWithKeys(static fn (int $value, int | string $key): array => [
517 517
                 $key => '<bdi>' . e($key) . '</bdi>',
518 518
             ])
519 519
             ->implode(I18N::$list_separator);
@@ -522,7 +522,7 @@  discard block
 block discarded – undo
522 522
     public function commonGivenFemale(string $threshold = '1', string $limit = '10'): string
523 523
     {
524 524
         return $this->data->commonGivenNames('F', (int) $threshold, (int) $limit)
525
-            ->mapWithKeys(static fn (int $value, int|string $key): array => [
525
+            ->mapWithKeys(static fn (int $value, int | string $key): array => [
526 526
                 $key => '<bdi>' . e($key) . '</bdi>',
527 527
             ])
528 528
             ->implode(I18N::$list_separator);
@@ -555,7 +555,7 @@  discard block
 block discarded – undo
555 555
     public function commonGivenFemaleTotals(string $threshold = '1', string $limit = '10'): string
556 556
     {
557 557
         return $this->data->commonGivenNames('F', (int) $threshold, (int) $limit)
558
-            ->mapWithKeys(static fn (int $value, int|string $key): array => [
558
+            ->mapWithKeys(static fn (int $value, int | string $key): array => [
559 559
                 $key => '<bdi>' . e($key) . '</bdi> (' . I18N::number($value) . ')',
560 560
             ])
561 561
             ->implode(I18N::$list_separator);
@@ -580,7 +580,7 @@  discard block
 block discarded – undo
580 580
     public function commonGivenMale(string $threshold = '1', string $limit = '10'): string
581 581
     {
582 582
         return $this->data->commonGivenNames('M', (int) $threshold, (int) $limit)
583
-            ->mapWithKeys(static fn (int $value, int|string $key): array => [
583
+            ->mapWithKeys(static fn (int $value, int | string $key): array => [
584 584
                 $key => '<bdi>' . e($key) . '</bdi>',
585 585
             ])
586 586
             ->implode(I18N::$list_separator);
@@ -613,7 +613,7 @@  discard block
 block discarded – undo
613 613
     public function commonGivenMaleTotals(string $threshold = '1', string $limit = '10'): string
614 614
     {
615 615
         return $this->data->commonGivenNames('M', (int) $threshold, (int) $limit)
616
-            ->mapWithKeys(static fn (int $value, int|string $key): array => [
616
+            ->mapWithKeys(static fn (int $value, int | string $key): array => [
617 617
                 $key => '<bdi>' . e($key) . '</bdi> (' . I18N::number($value) . ')',
618 618
             ])
619 619
             ->implode(I18N::$list_separator);
@@ -622,7 +622,7 @@  discard block
 block discarded – undo
622 622
     public function commonGivenOther(string $threshold = '1', string $limit = '10'): string
623 623
     {
624 624
         return $this->data->commonGivenNames('X', (int) $threshold, (int) $limit)
625
-            ->mapWithKeys(static fn (int $value, int|string $key): array => [
625
+            ->mapWithKeys(static fn (int $value, int | string $key): array => [
626 626
                 $key => '<bdi>' . e($key) . '</bdi>',
627 627
             ])
628 628
             ->implode(I18N::$list_separator);
@@ -655,7 +655,7 @@  discard block
 block discarded – undo
655 655
     public function commonGivenOtherTotals(string $threshold = '1', string $limit = '10'): string
656 656
     {
657 657
         return $this->data->commonGivenNames('X', (int) $threshold, (int) $limit)
658
-            ->mapWithKeys(static fn (int $value, int|string $key): array => [
658
+            ->mapWithKeys(static fn (int $value, int | string $key): array => [
659 659
                 $key => '<bdi>' . e($key) . '</bdi> (' . I18N::number($value) . ')',
660 660
             ])
661 661
             ->implode(I18N::$list_separator);
@@ -672,7 +672,7 @@  discard block
 block discarded – undo
672 672
     public function commonGivenTotals(string $threshold = '1', string $limit = '10'): string
673 673
     {
674 674
         return $this->data->commonGivenNames('ALL', (int) $threshold, (int) $limit)
675
-            ->mapWithKeys(static fn (int $value, int|string $key): array => [
675
+            ->mapWithKeys(static fn (int $value, int | string $key): array => [
676 676
                 $key => '<bdi>' . e($key) . '</bdi> (' . I18N::number($value) . ')',
677 677
             ])
678 678
             ->implode(I18N::$list_separator);
@@ -681,7 +681,7 @@  discard block
 block discarded – undo
681 681
     public function commonGivenUnknown(string $threshold = '1', string $limit = '10'): string
682 682
     {
683 683
         return $this->data->commonGivenNames('U', (int) $threshold, (int) $limit)
684
-            ->mapWithKeys(static fn (int $value, int|string $key): array => [
684
+            ->mapWithKeys(static fn (int $value, int | string $key): array => [
685 685
                 $key => '<bdi>' . e($key) . '</bdi>',
686 686
             ])
687 687
             ->implode(I18N::$list_separator);
@@ -714,7 +714,7 @@  discard block
 block discarded – undo
714 714
     public function commonGivenUnknownTotals(string $threshold = '1', string $limit = '10'): string
715 715
     {
716 716
         return $this->data->commonGivenNames('U', (int) $threshold, (int) $limit)
717
-            ->mapWithKeys(static fn (int $value, int|string $key): array => [
717
+            ->mapWithKeys(static fn (int $value, int | string $key): array => [
718 718
                 $key => '<bdi>' . e($key) . '</bdi> (' . I18N::number($value) . ')',
719 719
             ])
720 720
             ->implode(I18N::$list_separator);
@@ -1215,7 +1215,7 @@  discard block
 block discarded – undo
1215 1215
         return (string) $user->id();
1216 1216
     }
1217 1217
 
1218
-    public function latestUserLoggedin(string|null $yes = null, string|null $no = null): string
1218
+    public function latestUserLoggedin(string | null $yes = null, string | null $no = null): string
1219 1219
     {
1220 1220
         if ($this->data->isUserLoggedIn($this->data->latestUserId())) {
1221 1221
             return $yes ?? I18N::translate('Yes');
@@ -1231,9 +1231,9 @@  discard block
 block discarded – undo
1231 1231
         return e($user->userName());
1232 1232
     }
1233 1233
 
1234
-    public function latestUserRegDate(string|null $format = null): string
1234
+    public function latestUserRegDate(string | null $format = null): string
1235 1235
     {
1236
-        $format    ??= I18N::dateFormat();
1236
+        $format ??= I18N::dateFormat();
1237 1237
         $user      = $this->user_service->find($this->data->latestUserId()) ?? Auth::user();
1238 1238
         $timestamp = (int) $user->getPreference(UserInterface::PREF_TIMESTAMP_REGISTERED);
1239 1239
 
@@ -1244,9 +1244,9 @@  discard block
 block discarded – undo
1244 1244
         return Registry::timestampFactory()->make($timestamp)->format(strtr($format, ['%' => '']));
1245 1245
     }
1246 1246
 
1247
-    public function latestUserRegTime(string|null $format = null): string
1247
+    public function latestUserRegTime(string | null $format = null): string
1248 1248
     {
1249
-        $format    ??= I18N::timeFormat();
1249
+        $format ??= I18N::timeFormat();
1250 1250
         $user      = $this->user_service->find($this->data->latestUserId()) ?? Auth::user();
1251 1251
         $timestamp = (int) $user->getPreference(UserInterface::PREF_TIMESTAMP_REGISTERED);
1252 1252
 
Please login to merge, or discard this patch.