@@ -107,7 +107,7 @@ discard block |
||
| 107 | 107 | * |
| 108 | 108 | * @return Individual|null |
| 109 | 109 | */ |
| 110 | - public function husband(int|null $access_level = null): ?Individual |
|
| 110 | + public function husband(int | null $access_level = null): ?Individual |
|
| 111 | 111 | { |
| 112 | 112 | if ($this->tree->getPreference('SHOW_PRIVATE_RELATIONSHIPS') === '1') { |
| 113 | 113 | $access_level = Auth::PRIV_HIDE; |
@@ -127,7 +127,7 @@ discard block |
||
| 127 | 127 | * |
| 128 | 128 | * @return Individual|null |
| 129 | 129 | */ |
| 130 | - public function wife(int|null $access_level = null): ?Individual |
|
| 130 | + public function wife(int | null $access_level = null): ?Individual |
|
| 131 | 131 | { |
| 132 | 132 | if ($this->tree->getPreference('SHOW_PRIVATE_RELATIONSHIPS') === '1') { |
| 133 | 133 | $access_level = Auth::PRIV_HIDE; |
@@ -168,7 +168,7 @@ discard block |
||
| 168 | 168 | * |
| 169 | 169 | * @return bool |
| 170 | 170 | */ |
| 171 | - public function canShowName(int|null $access_level = null): bool |
|
| 171 | + public function canShowName(int | null $access_level = null): bool |
|
| 172 | 172 | { |
| 173 | 173 | // We can always see the name (Husband-name + Wife-name), however, |
| 174 | 174 | // the name will often be "private + private" |
@@ -183,7 +183,7 @@ discard block |
||
| 183 | 183 | * |
| 184 | 184 | * @return Individual|null |
| 185 | 185 | */ |
| 186 | - public function spouse(Individual $person, int|null $access_level = null): ?Individual |
|
| 186 | + public function spouse(Individual $person, int | null $access_level = null): ?Individual |
|
| 187 | 187 | { |
| 188 | 188 | if ($person === $this->wife) { |
| 189 | 189 | return $this->husband($access_level); |
@@ -199,7 +199,7 @@ discard block |
||
| 199 | 199 | * |
| 200 | 200 | * @return Collection<int,Individual> |
| 201 | 201 | */ |
| 202 | - public function spouses(int|null $access_level = null): Collection |
|
| 202 | + public function spouses(int | null $access_level = null): Collection |
|
| 203 | 203 | { |
| 204 | 204 | $spouses = new Collection([ |
| 205 | 205 | $this->husband($access_level), |
@@ -216,7 +216,7 @@ discard block |
||
| 216 | 216 | * |
| 217 | 217 | * @return Collection<int,Individual> |
| 218 | 218 | */ |
| 219 | - public function children(int|null $access_level = null): Collection |
|
| 219 | + public function children(int | null $access_level = null): Collection |
|
| 220 | 220 | { |
| 221 | 221 | $access_level ??= Auth::accessLevel($this->tree); |
| 222 | 222 | |
@@ -78,7 +78,7 @@ |
||
| 78 | 78 | * @param string $label |
| 79 | 79 | * @param array<string>|null $subtags |
| 80 | 80 | */ |
| 81 | - public function __construct(string $label, array|null $subtags = null) |
|
| 81 | + public function __construct(string $label, array | null $subtags = null) |
|
| 82 | 82 | { |
| 83 | 83 | $this->label = $label; |
| 84 | 84 | $this->subtags = $subtags ?? static::SUBTAGS; |
@@ -89,7 +89,7 @@ |
||
| 89 | 89 | * @param string $label |
| 90 | 90 | * @param array<string>|null $subtags |
| 91 | 91 | */ |
| 92 | - public function __construct(string $label, array|null $subtags = null) |
|
| 92 | + public function __construct(string $label, array | null $subtags = null) |
|
| 93 | 93 | { |
| 94 | 94 | if ($subtags === null && in_array(I18N::languageTag(), static::SURNAME_FIRST_LANGUAGES, true)) { |
| 95 | 95 | $subtags = static::SUBTAGS_SURNAME_FIRST; |
@@ -82,7 +82,7 @@ discard block |
||
| 82 | 82 | * |
| 83 | 83 | * @return bool |
| 84 | 84 | */ |
| 85 | - public function canShowName(int|null $access_level = null): bool |
|
| 85 | + public function canShowName(int | null $access_level = null): bool |
|
| 86 | 86 | { |
| 87 | 87 | $access_level ??= Auth::accessLevel($this->tree); |
| 88 | 88 | |
@@ -703,7 +703,7 @@ discard block |
||
| 703 | 703 | * |
| 704 | 704 | * @return Collection<int,Family> |
| 705 | 705 | */ |
| 706 | - public function spouseFamilies(int|null $access_level = null): Collection |
|
| 706 | + public function spouseFamilies(int | null $access_level = null): Collection |
|
| 707 | 707 | { |
| 708 | 708 | $access_level ??= Auth::accessLevel($this->tree); |
| 709 | 709 | |
@@ -769,7 +769,7 @@ discard block |
||
| 769 | 769 | * |
| 770 | 770 | * @return Collection<int,Family> |
| 771 | 771 | */ |
| 772 | - public function childFamilies(int|null $access_level = null): Collection |
|
| 772 | + public function childFamilies(int | null $access_level = null): Collection |
|
| 773 | 773 | { |
| 774 | 774 | $access_level ??= Auth::accessLevel($this->tree); |
| 775 | 775 | |
@@ -30,7 +30,7 @@ |
||
| 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 | |
@@ -30,7 +30,7 @@ |
||
| 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('Too many requests. Try again later.'); |
| 36 | 36 | |
@@ -30,7 +30,7 @@ |
||
| 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 | |
@@ -30,7 +30,7 @@ |
||
| 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('This page has been deleted.'); |
| 36 | 36 | |
@@ -30,7 +30,7 @@ |
||
| 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('The server could not understand this request.'); |
| 36 | 36 | |