Passed
Pull Request — main (#4972)
by Jonathan
06:22
created
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::caseInsensitiveLikeOperator(), '%' . addcslashes($search_term, '\\%_') . '%');
Please login to merge, or discard this patch.
app/Module/FamilyTreeStatisticsModule.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -342,7 +342,7 @@
 block discarded – undo
342 342
      * This module assumes the database will use binary collation on the name columns.
343 343
      * Until we convert MySQL databases to use utf8_bin, we need to do this at run-time.
344 344
      */
345
-    private function binaryColumn(string $column, string|null $alias = null): Expression
345
+    private function binaryColumn(string $column, string | null $alias = null): Expression
346 346
     {
347 347
         if (DB::driverName() === 'mysql') {
348 348
             $sql = 'CAST(' . $column . ' AS binary)';
Please login to merge, or discard this patch.
app/Module/TopSurnamesModule.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -342,7 +342,7 @@
 block discarded – undo
342 342
      * This module assumes the database will use binary collation on the name columns.
343 343
      * Until we convert MySQL databases to use utf8_bin, we need to do this at run-time.
344 344
      */
345
-    private function binaryColumn(string $column, string|null $alias = null): Expression
345
+    private function binaryColumn(string $column, string | null $alias = null): Expression
346 346
     {
347 347
         if (DB::driverName() === 'mysql') {
348 348
             $sql = 'CAST(' . $column . ' AS binary)';
Please login to merge, or discard this patch.