@@ -220,7 +220,7 @@ discard block |
||
220 | 220 | $surname_initials = $this->surnameInitials($surname_data); |
221 | 221 | |
222 | 222 | // We've requested a surname that doesn't currently exist. |
223 | - if ($surname !== '' && !array_key_exists($surname, $all_surns)) { |
|
223 | + if ($surname !== '' && !array_key_exists($surname, $all_surns)) { |
|
224 | 224 | $message = I18N::translate('There are no individuals with the surname ā%sā', e($surname)); |
225 | 225 | FlashMessages::addMessage($message); |
226 | 226 | |
@@ -608,7 +608,7 @@ discard block |
||
608 | 608 | ->groupBy([$this->binaryColumn('n_givn')]); |
609 | 609 | |
610 | 610 | foreach ($query->get() as $row) { |
611 | - $initial = I18N::strtoupper(I18N::language()->initialLetter($row->n_givn)); |
|
611 | + $initial = I18N::strtoupper(I18N::language()->initialLetter($row->n_givn)); |
|
612 | 612 | $initials[$initial] ??= 0; |
613 | 613 | $initials[$initial] += (int) $row->count; |
614 | 614 | } |
@@ -304,7 +304,8 @@ discard block |
||
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 |
||
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 === ''; |
@@ -45,7 +45,7 @@ discard block |
||
45 | 45 | */ |
46 | 46 | public function make(int $timestamp, ?UserInterface $user = null): TimestampInterface |
47 | 47 | { |
48 | - $user ??= Auth::user(); |
|
48 | + $user ??= Auth::user(); |
|
49 | 49 | $timezone = $user->getPreference(UserInterface::PREF_TIME_ZONE, Site::getPreference('TIMEZONE')); |
50 | 50 | $locale = I18N::locale()->code(); |
51 | 51 | |
@@ -61,7 +61,7 @@ discard block |
||
61 | 61 | */ |
62 | 62 | public function fromString(?string $string, string $format = 'Y-m-d H:i:s', ?UserInterface $user = null): TimestampInterface |
63 | 63 | { |
64 | - $string ??= date($format); |
|
64 | + $string ??= date($format); |
|
65 | 65 | $timestamp = date_create_from_format($format, $string); |
66 | 66 | |
67 | 67 | if ($timestamp === false) { |
@@ -250,7 +250,7 @@ |
||
250 | 250 | ->where('m_file', '=', $this->tree->id()) |
251 | 251 | ->groupBy('source_media_type') |
252 | 252 | ->pluck(new Expression('COUNT(*) AS total'), 'source_media_type') |
253 | - ->map(static fn (string $n): int => (int) $n) |
|
253 | + ->map(static fn (string $n) : int => (int) $n) |
|
254 | 254 | ->all(); |
255 | 255 | |
256 | 256 | return (new ChartMedia($this->color_service)) |
@@ -126,7 +126,7 @@ |
||
126 | 126 | |
127 | 127 | // We want to know about all PHP errors during development, and fewer in production. |
128 | 128 | // Several of our libaries (e.g. laravel) give deprecations for PHP 8.4, and won't be fixed. |
129 | - public const ERROR_REPORTING = (self::DEBUG && PHP_VERSION_ID < 80400)? E_ALL : E_ALL & ~E_DEPRECATED & ~E_USER_DEPRECATED; |
|
129 | + public const ERROR_REPORTING = (self::DEBUG && PHP_VERSION_ID < 80400) ? E_ALL : E_ALL & ~E_DEPRECATED & ~E_USER_DEPRECATED; |
|
130 | 130 | |
131 | 131 | // Page layouts for various page types. |
132 | 132 | public const LAYOUT_ADMINISTRATION = 'layouts/administration'; |