Passed
Push — dbal ( ab3180...545eb7 )
by Greg
19:11 queued 12:15
created
app/Statistics/Repository/LatestUserRepository.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -110,7 +110,7 @@  discard block
 block discarded – undo
110 110
      *
111 111
      * @return string
112 112
      */
113
-    public function latestUserRegDate(string|null $format = null): string
113
+    public function latestUserRegDate(string | null $format = null): string
114 114
     {
115 115
         $format ??= I18N::dateFormat();
116 116
         $user      = $this->latestUserQuery();
@@ -124,7 +124,7 @@  discard block
 block discarded – undo
124 124
      *
125 125
      * @return string
126 126
      */
127
-    public function latestUserRegTime(string|null $format = null): string
127
+    public function latestUserRegTime(string | null $format = null): string
128 128
     {
129 129
         $format ??= str_replace('%', '', I18N::timeFormat());
130 130
         $user = $this->latestUserQuery();
@@ -138,7 +138,7 @@  discard block
 block discarded – undo
138 138
      *
139 139
      * @return string
140 140
      */
141
-    public function latestUserLoggedin(string|null $yes = null, string|null $no = null): string
141
+    public function latestUserLoggedin(string | null $yes = null, string | null $no = null): string
142 142
     {
143 143
         $yes ??= I18N::translate('yes');
144 144
         $no ??= I18N::translate('no');
Please login to merge, or discard this patch.
app/Cache.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@
 block discarded – undo
50 50
      *
51 51
      * @return T
52 52
      */
53
-    public function remember(string $key, Closure $closure, int|null $ttl = null)
53
+    public function remember(string $key, Closure $closure, int | null $ttl = null)
54 54
     {
55 55
         return $this->cache->get(md5($key), static function (ItemInterface $item) use ($closure, $ttl) {
56 56
             $item->expiresAfter($ttl);
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
@@ -347,7 +347,7 @@
 block discarded – undo
347 347
      *
348 348
      * @return Expression
349 349
      */
350
-    private function binaryColumn(string $column, string|null $alias = null): Expression
350
+    private function binaryColumn(string $column, string | null $alias = null): Expression
351 351
     {
352 352
         if (DB::driverName() === 'mysql') {
353 353
             $sql = 'CAST(' . $column . ' AS binary)';
Please login to merge, or discard this patch.
app/Module/IndividualListModule.php 2 patches
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
         }
@@ -832,7 +832,7 @@  discard block
 block discarded – undo
832 832
      *
833 833
      * @return Expression
834 834
      */
835
-    private function binaryColumn(string $column, string|null $alias = null): Expression
835
+    private function binaryColumn(string $column, string | null $alias = null): Expression
836 836
     {
837 837
         if (DB::driverName() === 'mysql') {
838 838
             $sql = 'CAST(' . $column . ' AS binary)';
Please login to merge, or discard this patch.
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -304,7 +304,8 @@  discard block
 block discarded – undo
304 304
                     <li class="wt-initials-list-item d-flex">
305 305
                         <?php if ($count > 0) : ?>
306 306
                             <a href="<?= e($this->listUrl($tree, ['alpha' => $letter, 'show_marnm' => $show_marnm, 'tree' => $tree->name()])) ?>" class="wt-initial px-1<?= $letter === $alpha ? ' active' : '' ?> '" title="<?= I18N::number($count) ?>"><?= $this->displaySurnameInitial((string) $letter) ?></a>
307
-                        <?php else : ?>
307
+                        <?php else {
308
+    : ?>
308 309
                             <span class="wt-initial px-1 text-muted"><?= $this->displaySurnameInitial((string) $letter) ?></span>
309 310
 
310 311
                         <?php endif ?>
@@ -359,6 +360,7 @@  discard block
 block discarded – undo
359 360
                 switch ($alpha) {
360 361
                     case '@':
361 362
                         $filter = static fn (string $x): bool => $x === Individual::NOMEN_NESCIO;
363
+}
362 364
                         break;
363 365
                     case ',':
364 366
                         $filter = static fn (string $x): bool => $x === '';
Please login to merge, or discard this patch.
app/Http/Exceptions/HttpNotFoundException.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@
 block discarded – undo
30 30
     /**
31 31
      * @param string|null $message
32 32
      */
33
-    public function __construct(string|null $message = null)
33
+    public function __construct(string | null $message = null)
34 34
     {
35 35
         $message ??= I18N::translate('You do not have permission to view this page.');
36 36
 
Please login to merge, or discard this patch.
app/Date/AbstractCalendarDate.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
      *
81 81
      * @param array<string>|int|AbstractCalendarDate $date
82 82
      */
83
-    public function __construct(array|int|AbstractCalendarDate $date)
83
+    public function __construct(array | int | AbstractCalendarDate $date)
84 84
     {
85 85
         // Construct from an integer (a julian day number)
86 86
         if (is_int($date)) {
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
             $this->month = static::MONTH_TO_NUMBER[$date[1]] ?? 0;
98 98
 
99 99
             if ($this->month === 0) {
100
-                $this->day   = 0;
100
+                $this->day = 0;
101 101
             }
102 102
 
103 103
             $this->year = $this->extractYear($date[0]);
Please login to merge, or discard this patch.
app/Exceptions/FileUploadException.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@
 block discarded – undo
42 42
     /**
43 43
      * @param UploadedFileInterface|null $uploaded_file
44 44
      */
45
-    public function __construct(UploadedFileInterface|null $uploaded_file)
45
+    public function __construct(UploadedFileInterface | null $uploaded_file)
46 46
     {
47 47
         if ($uploaded_file === null) {
48 48
             parent::__construct(I18N::translate('No file was received. Please try again.'));
Please login to merge, or discard this patch.
app/Services/DataFixService.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@
 block discarded – undo
46 46
     /**
47 47
      * Since we know the type, this is quicker than calling Registry::gedcomRecordFactory()->make().
48 48
      */
49
-    public function getRecordByType(string $xref, Tree $tree, string $type): GedcomRecord|null
49
+    public function getRecordByType(string $xref, Tree $tree, string $type): GedcomRecord | null
50 50
     {
51 51
         switch ($type) {
52 52
             case Family::RECORD_TYPE:
Please login to merge, or discard this patch.
app/Services/GedcomService.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -174,17 +174,17 @@
 block discarded – undo
174 174
         return $tag;
175 175
     }
176 176
 
177
-    public function readLatitude(string $text): float|null
177
+    public function readLatitude(string $text): float | null
178 178
     {
179 179
         return $this->readDegrees($text, Gedcom::LATITUDE_NORTH, Gedcom::LATITUDE_SOUTH);
180 180
     }
181 181
 
182
-    public function readLongitude(string $text): float|null
182
+    public function readLongitude(string $text): float | null
183 183
     {
184 184
         return $this->readDegrees($text, Gedcom::LONGITUDE_EAST, Gedcom::LONGITUDE_WEST);
185 185
     }
186 186
 
187
-    private function readDegrees(string $text, string $positive, string $negative): float|null
187
+    private function readDegrees(string $text, string $positive, string $negative): float | null
188 188
     {
189 189
         $text       = trim($text);
190 190
         $hemisphere = substr($text, 0, 1);
Please login to merge, or discard this patch.