Passed
Push — dbal ( 545eb7...a65111 )
by Greg
13:50 queued 06:40
created
app/Module/LifespansChartModule.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -248,9 +248,9 @@
 block discarded – undo
248 248
     protected function chart(Tree $tree, array $xrefs): ResponseInterface
249 249
     {
250 250
         /** @var Individual[] $individuals */
251
-        $individuals = array_map(static fn (string $xref): Individual|null => Registry::individualFactory()->make($xref, $tree), $xrefs);
251
+        $individuals = array_map(static fn (string $xref): Individual | null => Registry::individualFactory()->make($xref, $tree), $xrefs);
252 252
 
253
-        $individuals = array_filter($individuals, static fn (Individual|null $individual): bool => $individual instanceof Individual && $individual->canShow());
253
+        $individuals = array_filter($individuals, static fn (Individual | null $individual): bool => $individual instanceof Individual && $individual->canShow());
254 254
 
255 255
         // Sort the array in order of birth year
256 256
         usort($individuals, Individual::birthDateComparator());
Please login to merge, or discard this patch.
app/Media.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
      * Get the first media file that contains an image.
77 77
      */
78
-    public function firstImageFile(): MediaFile|null
78
+    public function firstImageFile(): MediaFile | null
79 79
     {
80 80
         return $this->mediaFiles()
81 81
             ->first(static fn (MediaFile $media_file): bool => $media_file->isImage() && !$media_file->isExternal());
Please login to merge, or discard this patch.
app/Census/AbstractCensusColumn.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -97,7 +97,7 @@
 block discarded – undo
97 97
     {
98 98
         return $individual->spouseFamilies()
99 99
                 // Exclude families that were created after this census date
100
-            ->filter(fn (Family $family): bool => Date::compare($family->getMarriageDate(), $this->date()) <= 0)
100
+            ->filter(fn (Family $family) : bool => Date::compare($family->getMarriageDate(), $this->date()) <= 0)
101 101
             ->sort(Family::marriageDateComparator())
102 102
             ->last();
103 103
     }
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 $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.
app/DB.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -140,7 +140,7 @@  discard block
 block discarded – undo
140 140
         return self::pdo()->getAttribute(PDO::ATTR_DRIVER_NAME);
141 141
     }
142 142
 
143
-    public static function exec(string $sql): int|false
143
+    public static function exec(string $sql): int | false
144 144
     {
145 145
         return self::pdo()->exec($sql);
146 146
     }
@@ -205,7 +205,7 @@  discard block
 block discarded – undo
205 205
         }
206 206
     }
207 207
 
208
-    public static function binaryColumn(string $column, string|null $alias = null): Expression
208
+    public static function binaryColumn(string $column, string | null $alias = null): Expression
209 209
     {
210 210
         if (self::driverName() === self::MYSQL) {
211 211
             $sql = 'CAST(' . $column . ' AS binary)';
Please login to merge, or discard this patch.
app/DB/Column.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -37,9 +37,9 @@  discard block
 block discarded – undo
37 37
         private bool $unsigned = false,
38 38
         private bool $fixed = false,
39 39
         private bool $nullable = false,
40
-        private float|int|string|null $default = null,
40
+        private float | int | string | null $default = null,
41 41
         private bool $autoincrement = false,
42
-        private string|null $collation = null,
42
+        private string | null $collation = null,
43 43
     ) {
44 44
     }
45 45
 
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
         );
61 61
     }
62 62
 
63
-    public function default(float|int|string $default): self
63
+    public function default(float | int | string $default): self
64 64
     {
65 65
         return new self(
66 66
             name: $this->name,
Please login to merge, or discard this patch.