Passed
Pull Request — main (#5166)
by Bernard
07:26
created
app/Services/LinkedRecordService.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
     /**
77 77
      * @return Collection<int,Family>
78 78
      */
79
-    public function linkedFamilies(GedcomRecord $record, string|null $link_type = null): Collection
79
+    public function linkedFamilies(GedcomRecord $record, string | null $link_type = null): Collection
80 80
     {
81 81
         $query = DB::table('families')
82 82
             ->join('link', static function (JoinClause $join): void {
@@ -102,7 +102,7 @@  discard block
 block discarded – undo
102 102
     /**
103 103
      * @return Collection<int,Individual>
104 104
      */
105
-    public function linkedIndividuals(GedcomRecord $record, string|null $link_type = null): Collection
105
+    public function linkedIndividuals(GedcomRecord $record, string | null $link_type = null): Collection
106 106
     {
107 107
         $query = DB::table('individuals')
108 108
             ->join('link', static function (JoinClause $join): void {
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/DB.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -141,7 +141,7 @@  discard block
 block discarded – undo
141 141
         return self::pdo()->getAttribute(PDO::ATTR_DRIVER_NAME);
142 142
     }
143 143
 
144
-    public static function exec(string $sql): int|false
144
+    public static function exec(string $sql): int | false
145 145
     {
146 146
         return self::pdo()->exec($sql);
147 147
     }
@@ -227,7 +227,7 @@  discard block
 block discarded – undo
227 227
     /**
228 228
      * @return Expression<string>
229 229
      */
230
-    public static function binaryColumn(string $column, string|null $alias = null): Expression
230
+    public static function binaryColumn(string $column, string | null $alias = null): Expression
231 231
     {
232 232
         if (self::driverName() === self::MYSQL) {
233 233
             $sql = 'CAST(' . $column . ' AS binary)';
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.