Passed
Push ā€” main ( 00bb7d...3566f1 )
by Greg
06:12
created
app/Services/MapDataService.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -175,7 +175,7 @@  discard block
 block discarded – undo
175 175
      *
176 176
      * @return void
177 177
      */
178
-    public function deleteUnusedLocations(int|null $parent_location_id, array $parent_place_ids): void
178
+    public function deleteUnusedLocations(int | null $parent_location_id, array $parent_place_ids): void
179 179
     {
180 180
         if ($parent_location_id === null) {
181 181
             $location_query = DB::table('place_location')
@@ -212,7 +212,7 @@  discard block
 block discarded – undo
212 212
      *
213 213
      * @return Collection<int,object>
214 214
      */
215
-    public function getPlaceListLocation(int|null $parent_id): Collection
215
+    public function getPlaceListLocation(int | null $parent_id): Collection
216 216
     {
217 217
         $prefix = DB::prefix();
218 218
 
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
@@ -288,7 +288,7 @@
 block discarded – undo
288 288
      * This module assumes the database will use binary collation on the name columns.
289 289
      * Until we convert MySQL databases to use utf8_bin, we need to do this at run-time.
290 290
      */
291
-    private function binaryColumn(string $column, string|null $alias = null): Expression
291
+    private function binaryColumn(string $column, string | null $alias = null): Expression
292 292
     {
293 293
         if (DB::driverName() === 'mysql') {
294 294
             $sql = 'CAST(' . $column . ' AS binary)';
Please login to merge, or discard this patch.
app/Module/IndividualListModule.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -216,7 +216,7 @@  discard block
 block discarded – undo
216 216
         $surname_initials = $this->surnameInitials($surname_data);
217 217
 
218 218
         // We've requested a surname that doesn't currently exist.
219
-        if ($surname !== ''  && !array_key_exists($surname, $all_surns)) {
219
+        if ($surname !== '' && !array_key_exists($surname, $all_surns)) {
220 220
             $message = I18N::translate('There are no individuals with the surname ā€œ%sā€', e($surname));
221 221
             FlashMessages::addMessage($message);
222 222
 
@@ -604,7 +604,7 @@  discard block
 block discarded – undo
604 604
             ->groupBy([$this->binaryColumn('n_givn')]);
605 605
 
606 606
         foreach ($query->get() as $row) {
607
-            $initial            = I18N::strtoupper(I18N::language()->initialLetter($row->n_givn));
607
+            $initial = I18N::strtoupper(I18N::language()->initialLetter($row->n_givn));
608 608
             $initials[$initial] ??= 0;
609 609
             $initials[$initial] += (int) $row->count;
610 610
         }
@@ -827,7 +827,7 @@  discard block
 block discarded – undo
827 827
      * This module assumes the database will use binary collation on the name columns.
828 828
      * Until we convert MySQL databases to use utf8_bin, we need to do this at run-time.
829 829
      */
830
-    private function binaryColumn(string $column, string|null $alias = null): Expression
830
+    private function binaryColumn(string $column, string | null $alias = null): Expression
831 831
     {
832 832
         if (DB::driverName() === 'mysql') {
833 833
             $sql = 'CAST(' . $column . ' AS binary)';
Please login to merge, or discard this patch.