Passed
Push — main ( 3f96aa...cd87ae )
by Greg
06:34
created
app/Statistics/Google/ChartDeath.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -70,7 +70,7 @@
 block discarded – undo
70 70
             ]);
71 71
     }
72 72
 
73
-    public function chartDeath(string|null $color_from = null, string|null $color_to = null): string
73
+    public function chartDeath(string | null $color_from = null, string | null $color_to = null): string
74 74
     {
75 75
         $color_from ??= 'ffffff';
76 76
         $color_to ??= '84beff';
Please login to merge, or discard this patch.
app/Statistics/Google/ChartCommonGiven.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -43,8 +43,8 @@
 block discarded – undo
43 43
     public function chartCommonGiven(
44 44
         int $total_individuals,
45 45
         array $given,
46
-        string|null $color_from = null,
47
-        string|null $color_to = null
46
+        string | null $color_from = null,
47
+        string | null $color_to = null
48 48
     ): string {
49 49
         $color_from ??= 'ffffff';
50 50
         $color_to ??= '84beff';
Please login to merge, or discard this patch.
app/Statistics/Google/ChartCommonSurname.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -100,8 +100,8 @@
 block discarded – undo
100 100
     public function chartCommonSurnames(
101 101
         int $total_individuals,
102 102
         array $all_surnames,
103
-        string|null $color_from = null,
104
-        string|null $color_to = null
103
+        string | null $color_from = null,
104
+        string | null $color_to = null
105 105
     ): string {
106 106
         $color_from ??= 'ffffff';
107 107
         $color_to ??= '84beff';
Please login to merge, or discard this patch.
app/Statistics/Google/ChartFamilyWithSources.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -40,8 +40,8 @@
 block discarded – undo
40 40
     public function chartFamsWithSources(
41 41
         int $total_families,
42 42
         int $total_families_with_sources,
43
-        string|null $color_from = null,
44
-        string|null $color_to = null
43
+        string | null $color_from = null,
44
+        string | null $color_to = null
45 45
     ): string {
46 46
         $color_from ??= 'ffffff';
47 47
         $color_to ??= '84beff';
Please login to merge, or discard this patch.
app/Statistics/Google/ChartSex.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -30,9 +30,9 @@
 block discarded – undo
30 30
         int $total_male,
31 31
         int $total_female,
32 32
         int $total_unknown,
33
-        string|null $color_female = null,
34
-        string|null $color_male = null,
35
-        string|null $color_unknown = null
33
+        string | null $color_female = null,
34
+        string | null $color_male = null,
35
+        string | null $color_unknown = null
36 36
     ): string {
37 37
         $color_female ??= '#ffd1dc';
38 38
         $color_male ??= '#84beff';
Please login to merge, or discard this patch.
app/Statistics/Google/ChartBirth.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -70,7 +70,7 @@
 block discarded – undo
70 70
             ]);
71 71
     }
72 72
 
73
-    public function chartBirth(string|null $color_from = null, string|null $color_to = null): string
73
+    public function chartBirth(string | null $color_from = null, string | null $color_to = null): string
74 74
     {
75 75
         $color_from ??= 'ffffff';
76 76
         $color_to ??= '84beff';
Please login to merge, or discard this patch.
app/Statistics/Repository/EventRepository.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -145,7 +145,7 @@
 block discarded – undo
145 145
      *
146 146
      * @return object{id:string,year:int,fact:string,type:string}|null
147 147
      */
148
-    private function eventQuery(string $direction): object|null
148
+    private function eventQuery(string $direction): object | null
149 149
     {
150 150
         $events = [
151 151
             ...Gedcom::BIRTH_EVENTS,
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/Services/SearchService.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1069,7 +1069,7 @@
 block discarded – undo
1069 1069
      * @param Expression<string>|string $column
1070 1070
      * @param array<string>             $search_terms
1071 1071
      */
1072
-    private function whereSearch(Builder $query, Expression|string $column, array $search_terms): void
1072
+    private function whereSearch(Builder $query, Expression | string $column, array $search_terms): void
1073 1073
     {
1074 1074
         foreach ($search_terms as $search_term) {
1075 1075
             $query->where($column, DB::iLike(), '%' . addcslashes($search_term, '\\%_') . '%');
Please login to merge, or discard this patch.