@@ -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; |
@@ -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('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 |
@@ -55,7 +55,7 @@ discard block |
||
55 | 55 | * |
56 | 56 | * @return void |
57 | 57 | */ |
58 | - private static function addLog(string $message, string $log_type, Tree|null $tree = null): void |
|
58 | + private static function addLog(string $message, string $log_type, Tree | null $tree = null): void |
|
59 | 59 | { |
60 | 60 | if (Registry::container()->has(ServerRequestInterface::class)) { |
61 | 61 | $request = Registry::container()->get(ServerRequestInterface::class); |
@@ -81,7 +81,7 @@ discard block |
||
81 | 81 | * |
82 | 82 | * @return void |
83 | 83 | */ |
84 | - public static function addConfigurationLog(string $message, Tree|null $tree = null): void |
|
84 | + public static function addConfigurationLog(string $message, Tree | null $tree = null): void |
|
85 | 85 | { |
86 | 86 | self::addLog($message, self::TYPE_CONFIGURATION, $tree); |
87 | 87 | } |
@@ -116,7 +116,7 @@ discard block |
||
116 | 116 | * |
117 | 117 | * @return CacheFactoryInterface |
118 | 118 | */ |
119 | - public static function cache(CacheFactoryInterface|null $factory = null): CacheFactoryInterface |
|
119 | + public static function cache(CacheFactoryInterface | null $factory = null): CacheFactoryInterface |
|
120 | 120 | { |
121 | 121 | if ($factory instanceof CacheFactoryInterface) { |
122 | 122 | self::$cache_factory = $factory; |
@@ -132,7 +132,7 @@ discard block |
||
132 | 132 | * |
133 | 133 | * @return CalendarDateFactoryInterface |
134 | 134 | */ |
135 | - public static function calendarDateFactory(CalendarDateFactoryInterface|null $factory = null): CalendarDateFactoryInterface |
|
135 | + public static function calendarDateFactory(CalendarDateFactoryInterface | null $factory = null): CalendarDateFactoryInterface |
|
136 | 136 | { |
137 | 137 | if ($factory instanceof CalendarDateFactoryInterface) { |
138 | 138 | self::$calendar_date_factory = $factory; |
@@ -148,7 +148,7 @@ discard block |
||
148 | 148 | * |
149 | 149 | * @return ContainerInterface |
150 | 150 | */ |
151 | - public static function container(ContainerInterface|null $container = null): ContainerInterface |
|
151 | + public static function container(ContainerInterface | null $container = null): ContainerInterface |
|
152 | 152 | { |
153 | 153 | if ($container instanceof ContainerInterface) { |
154 | 154 | self::$container = $container; |
@@ -164,7 +164,7 @@ discard block |
||
164 | 164 | * |
165 | 165 | * @return ElementFactoryInterface |
166 | 166 | */ |
167 | - public static function elementFactory(ElementFactoryInterface|null $factory = null): ElementFactoryInterface |
|
167 | + public static function elementFactory(ElementFactoryInterface | null $factory = null): ElementFactoryInterface |
|
168 | 168 | { |
169 | 169 | if ($factory instanceof ElementFactoryInterface) { |
170 | 170 | self::$element_factory = $factory; |
@@ -180,7 +180,7 @@ discard block |
||
180 | 180 | * |
181 | 181 | * @return EncodingFactoryInterface |
182 | 182 | */ |
183 | - public static function encodingFactory(EncodingFactoryInterface|null $factory = null): EncodingFactoryInterface |
|
183 | + public static function encodingFactory(EncodingFactoryInterface | null $factory = null): EncodingFactoryInterface |
|
184 | 184 | { |
185 | 185 | if ($factory instanceof EncodingFactoryInterface) { |
186 | 186 | self::$encoding_factory = $factory; |
@@ -196,7 +196,7 @@ discard block |
||
196 | 196 | * |
197 | 197 | * @return FamilyFactoryInterface |
198 | 198 | */ |
199 | - public static function familyFactory(FamilyFactoryInterface|null $factory = null): FamilyFactoryInterface |
|
199 | + public static function familyFactory(FamilyFactoryInterface | null $factory = null): FamilyFactoryInterface |
|
200 | 200 | { |
201 | 201 | if ($factory instanceof FamilyFactoryInterface) { |
202 | 202 | self::$family_factory = $factory; |
@@ -212,7 +212,7 @@ discard block |
||
212 | 212 | * |
213 | 213 | * @return FilesystemFactoryInterface |
214 | 214 | */ |
215 | - public static function filesystem(FilesystemFactoryInterface|null $factory = null): FilesystemFactoryInterface |
|
215 | + public static function filesystem(FilesystemFactoryInterface | null $factory = null): FilesystemFactoryInterface |
|
216 | 216 | { |
217 | 217 | if ($factory instanceof FilesystemFactoryInterface) { |
218 | 218 | self::$filesystem_factory = $factory; |
@@ -228,7 +228,7 @@ discard block |
||
228 | 228 | * |
229 | 229 | * @return GedcomRecordFactoryInterface |
230 | 230 | */ |
231 | - public static function gedcomRecordFactory(GedcomRecordFactoryInterface|null $factory = null): GedcomRecordFactoryInterface |
|
231 | + public static function gedcomRecordFactory(GedcomRecordFactoryInterface | null $factory = null): GedcomRecordFactoryInterface |
|
232 | 232 | { |
233 | 233 | if ($factory instanceof GedcomRecordFactoryInterface) { |
234 | 234 | self::$gedcom_record_factory = $factory; |
@@ -244,7 +244,7 @@ discard block |
||
244 | 244 | * |
245 | 245 | * @return HeaderFactoryInterface |
246 | 246 | */ |
247 | - public static function headerFactory(HeaderFactoryInterface|null $factory = null): HeaderFactoryInterface |
|
247 | + public static function headerFactory(HeaderFactoryInterface | null $factory = null): HeaderFactoryInterface |
|
248 | 248 | { |
249 | 249 | if ($factory instanceof HeaderFactoryInterface) { |
250 | 250 | self::$header_factory = $factory; |
@@ -260,7 +260,7 @@ discard block |
||
260 | 260 | * |
261 | 261 | * @return IdFactoryInterface |
262 | 262 | */ |
263 | - public static function idFactory(IdFactoryInterface|null $factory = null): IdFactoryInterface |
|
263 | + public static function idFactory(IdFactoryInterface | null $factory = null): IdFactoryInterface |
|
264 | 264 | { |
265 | 265 | if ($factory instanceof IdFactoryInterface) { |
266 | 266 | self::$id_factory = $factory; |
@@ -276,7 +276,7 @@ discard block |
||
276 | 276 | * |
277 | 277 | * @return ImageFactoryInterface |
278 | 278 | */ |
279 | - public static function imageFactory(ImageFactoryInterface|null $factory = null): ImageFactoryInterface |
|
279 | + public static function imageFactory(ImageFactoryInterface | null $factory = null): ImageFactoryInterface |
|
280 | 280 | { |
281 | 281 | if ($factory instanceof ImageFactoryInterface) { |
282 | 282 | self::$image_factory = $factory; |
@@ -292,7 +292,7 @@ discard block |
||
292 | 292 | * |
293 | 293 | * @return IndividualFactoryInterface |
294 | 294 | */ |
295 | - public static function individualFactory(IndividualFactoryInterface|null $factory = null): IndividualFactoryInterface |
|
295 | + public static function individualFactory(IndividualFactoryInterface | null $factory = null): IndividualFactoryInterface |
|
296 | 296 | { |
297 | 297 | if ($factory instanceof IndividualFactoryInterface) { |
298 | 298 | self::$individual_factory = $factory; |
@@ -308,7 +308,7 @@ discard block |
||
308 | 308 | * |
309 | 309 | * @return LocationFactoryInterface |
310 | 310 | */ |
311 | - public static function locationFactory(LocationFactoryInterface|null $factory = null): LocationFactoryInterface |
|
311 | + public static function locationFactory(LocationFactoryInterface | null $factory = null): LocationFactoryInterface |
|
312 | 312 | { |
313 | 313 | if ($factory instanceof LocationFactoryInterface) { |
314 | 314 | self::$location_factory = $factory; |
@@ -324,7 +324,7 @@ discard block |
||
324 | 324 | * |
325 | 325 | * @return MarkdownFactoryInterface |
326 | 326 | */ |
327 | - public static function markdownFactory(MarkdownFactoryInterface|null $factory = null): MarkdownFactoryInterface |
|
327 | + public static function markdownFactory(MarkdownFactoryInterface | null $factory = null): MarkdownFactoryInterface |
|
328 | 328 | { |
329 | 329 | if ($factory instanceof MarkdownFactoryInterface) { |
330 | 330 | self::$markdown_factory = $factory; |
@@ -340,7 +340,7 @@ discard block |
||
340 | 340 | * |
341 | 341 | * @return MediaFactoryInterface |
342 | 342 | */ |
343 | - public static function mediaFactory(MediaFactoryInterface|null $factory = null): MediaFactoryInterface |
|
343 | + public static function mediaFactory(MediaFactoryInterface | null $factory = null): MediaFactoryInterface |
|
344 | 344 | { |
345 | 345 | if ($factory instanceof MediaFactoryInterface) { |
346 | 346 | self::$media_factory = $factory; |
@@ -356,7 +356,7 @@ discard block |
||
356 | 356 | * |
357 | 357 | * @return NoteFactoryInterface |
358 | 358 | */ |
359 | - public static function noteFactory(NoteFactoryInterface|null $factory = null): NoteFactoryInterface |
|
359 | + public static function noteFactory(NoteFactoryInterface | null $factory = null): NoteFactoryInterface |
|
360 | 360 | { |
361 | 361 | if ($factory instanceof NoteFactoryInterface) { |
362 | 362 | self::$note_factory = $factory; |
@@ -372,7 +372,7 @@ discard block |
||
372 | 372 | * |
373 | 373 | * @return RepositoryFactoryInterface |
374 | 374 | */ |
375 | - public static function repositoryFactory(RepositoryFactoryInterface|null $factory = null): RepositoryFactoryInterface |
|
375 | + public static function repositoryFactory(RepositoryFactoryInterface | null $factory = null): RepositoryFactoryInterface |
|
376 | 376 | { |
377 | 377 | if ($factory instanceof RepositoryFactoryInterface) { |
378 | 378 | self::$repository_factory = $factory; |
@@ -388,7 +388,7 @@ discard block |
||
388 | 388 | * |
389 | 389 | * @return ResponseFactoryInterface |
390 | 390 | */ |
391 | - public static function responseFactory(ResponseFactoryInterface|null $factory = null): ResponseFactoryInterface |
|
391 | + public static function responseFactory(ResponseFactoryInterface | null $factory = null): ResponseFactoryInterface |
|
392 | 392 | { |
393 | 393 | if ($factory instanceof ResponseFactoryInterface) { |
394 | 394 | self::$response_factory = $factory; |
@@ -404,7 +404,7 @@ discard block |
||
404 | 404 | * |
405 | 405 | * @return RouteFactoryInterface |
406 | 406 | */ |
407 | - public static function routeFactory(RouteFactoryInterface|null $factory = null): RouteFactoryInterface |
|
407 | + public static function routeFactory(RouteFactoryInterface | null $factory = null): RouteFactoryInterface |
|
408 | 408 | { |
409 | 409 | if ($factory instanceof RouteFactoryInterface) { |
410 | 410 | self::$route_factory = $factory; |
@@ -420,7 +420,7 @@ discard block |
||
420 | 420 | * |
421 | 421 | * @return SharedNoteFactoryInterface |
422 | 422 | */ |
423 | - public static function sharedNoteFactory(SharedNoteFactoryInterface|null $factory = null): SharedNoteFactoryInterface |
|
423 | + public static function sharedNoteFactory(SharedNoteFactoryInterface | null $factory = null): SharedNoteFactoryInterface |
|
424 | 424 | { |
425 | 425 | if ($factory instanceof SharedNoteFactoryInterface) { |
426 | 426 | self::$shared_note_factory = $factory; |
@@ -436,7 +436,7 @@ discard block |
||
436 | 436 | * |
437 | 437 | * @return SlugFactoryInterface |
438 | 438 | */ |
439 | - public static function slugFactory(SlugFactoryInterface|null $factory = null): SlugFactoryInterface |
|
439 | + public static function slugFactory(SlugFactoryInterface | null $factory = null): SlugFactoryInterface |
|
440 | 440 | { |
441 | 441 | if ($factory instanceof SlugFactoryInterface) { |
442 | 442 | self::$slug_factory = $factory; |
@@ -452,7 +452,7 @@ discard block |
||
452 | 452 | * |
453 | 453 | * @return SourceFactoryInterface |
454 | 454 | */ |
455 | - public static function sourceFactory(SourceFactoryInterface|null $factory = null): SourceFactoryInterface |
|
455 | + public static function sourceFactory(SourceFactoryInterface | null $factory = null): SourceFactoryInterface |
|
456 | 456 | { |
457 | 457 | if ($factory instanceof SourceFactoryInterface) { |
458 | 458 | self::$source_factory = $factory; |
@@ -468,7 +468,7 @@ discard block |
||
468 | 468 | * |
469 | 469 | * @return SubmissionFactoryInterface |
470 | 470 | */ |
471 | - public static function submissionFactory(SubmissionFactoryInterface|null $factory = null): SubmissionFactoryInterface |
|
471 | + public static function submissionFactory(SubmissionFactoryInterface | null $factory = null): SubmissionFactoryInterface |
|
472 | 472 | { |
473 | 473 | if ($factory instanceof SubmissionFactoryInterface) { |
474 | 474 | self::$submission_factory = $factory; |
@@ -484,7 +484,7 @@ discard block |
||
484 | 484 | * |
485 | 485 | * @return SubmitterFactoryInterface |
486 | 486 | */ |
487 | - public static function submitterFactory(SubmitterFactoryInterface|null $factory = null): SubmitterFactoryInterface |
|
487 | + public static function submitterFactory(SubmitterFactoryInterface | null $factory = null): SubmitterFactoryInterface |
|
488 | 488 | { |
489 | 489 | if ($factory instanceof SubmitterFactoryInterface) { |
490 | 490 | self::$submitter_factory = $factory; |
@@ -500,7 +500,7 @@ discard block |
||
500 | 500 | * |
501 | 501 | * @return SurnameTraditionFactoryInterface |
502 | 502 | */ |
503 | - public static function surnameTraditionFactory(SurnameTraditionFactoryInterface|null $factory = null): SurnameTraditionFactoryInterface |
|
503 | + public static function surnameTraditionFactory(SurnameTraditionFactoryInterface | null $factory = null): SurnameTraditionFactoryInterface |
|
504 | 504 | { |
505 | 505 | if ($factory instanceof SurnameTraditionFactoryInterface) { |
506 | 506 | self::$surname_tradition_factory = $factory; |
@@ -516,7 +516,7 @@ discard block |
||
516 | 516 | * |
517 | 517 | * @return TimeFactoryInterface |
518 | 518 | */ |
519 | - public static function timeFactory(TimeFactoryInterface|null $factory = null): TimeFactoryInterface |
|
519 | + public static function timeFactory(TimeFactoryInterface | null $factory = null): TimeFactoryInterface |
|
520 | 520 | { |
521 | 521 | if ($factory instanceof TimeFactoryInterface) { |
522 | 522 | self::$time_factory = $factory; |
@@ -532,7 +532,7 @@ discard block |
||
532 | 532 | * |
533 | 533 | * @return TimestampFactoryInterface |
534 | 534 | */ |
535 | - public static function timestampFactory(TimestampFactoryInterface|null $factory = null): TimestampFactoryInterface |
|
535 | + public static function timestampFactory(TimestampFactoryInterface | null $factory = null): TimestampFactoryInterface |
|
536 | 536 | { |
537 | 537 | if ($factory instanceof TimestampFactoryInterface) { |
538 | 538 | self::$timestamp_factory = $factory; |
@@ -548,7 +548,7 @@ discard block |
||
548 | 548 | * |
549 | 549 | * @return XrefFactoryInterface |
550 | 550 | */ |
551 | - public static function xrefFactory(XrefFactoryInterface|null $factory = null): XrefFactoryInterface |
|
551 | + public static function xrefFactory(XrefFactoryInterface | null $factory = null): XrefFactoryInterface |
|
552 | 552 | { |
553 | 553 | if ($factory instanceof XrefFactoryInterface) { |
554 | 554 | self::$xref_factory = $factory; |
@@ -325,7 +325,7 @@ |
||
325 | 325 | * |
326 | 326 | * @deprecated This code was originally Functions::getRelationshipNameFromPath |
327 | 327 | */ |
328 | - public function legacyNameAlgorithm(string $path, Individual|null $person1 = null, Individual|null $person2 = null): string |
|
328 | + public function legacyNameAlgorithm(string $path, Individual | null $person1 = null, Individual | null $person2 = null): string |
|
329 | 329 | { |
330 | 330 | // The path does not include the starting person. In some languages, the |
331 | 331 | // translation for a man’s (relative) is different from a woman’s (relative), |
@@ -196,7 +196,7 @@ |
||
196 | 196 | * |
197 | 197 | * @return string |
198 | 198 | */ |
199 | - public function getPreference(string $setting_name, string|null $default = null): string |
|
199 | + public function getPreference(string $setting_name, string | null $default = null): string |
|
200 | 200 | { |
201 | 201 | if ($this->preferences === []) { |
202 | 202 | $this->preferences = DB::table('gedcom_setting') |