@@ -125,7 +125,7 @@ discard block |
||
125 | 125 | */ |
126 | 126 | public function isBetween(int $minimum, int $maximum): self |
127 | 127 | { |
128 | - $this->rules[] = static function (?int $value) use ($minimum, $maximum): ?int { |
|
128 | + $this->rules[] = static function (?int $value) use ($minimum, $maximum) : ?int { |
|
129 | 129 | if (is_int($value) && $value >= $minimum && $value <= $maximum) { |
130 | 130 | return $value; |
131 | 131 | } |
@@ -143,7 +143,7 @@ discard block |
||
143 | 143 | */ |
144 | 144 | public function isInArray(array $values): self |
145 | 145 | { |
146 | - $this->rules[] = static fn (int|string|null $value): int|string|null => in_array($value, $values, true) ? $value : null; |
|
146 | + $this->rules[] = static fn (int | string | null $value): int | string | null => in_array($value, $values, true) ? $value : null; |
|
147 | 147 | |
148 | 148 | return $this; |
149 | 149 | } |
@@ -163,7 +163,7 @@ discard block |
||
163 | 163 | */ |
164 | 164 | public function isNotEmpty(): self |
165 | 165 | { |
166 | - $this->rules[] = static fn (?string $value): ?string => $value !== null && $value !== '' ? $value : null; |
|
166 | + $this->rules[] = static fn (?string $value) : ?string => $value !== null && $value !== '' ? $value : null; |
|
167 | 167 | |
168 | 168 | return $this; |
169 | 169 | } |
@@ -175,7 +175,7 @@ discard block |
||
175 | 175 | { |
176 | 176 | $base_url = $this->request->getAttribute('base_url', ''); |
177 | 177 | |
178 | - $this->rules[] = static function (?string $value) use ($base_url): ?string { |
|
178 | + $this->rules[] = static function (?string $value) use ($base_url) : ?string { |
|
179 | 179 | if ($value !== null) { |
180 | 180 | $value_info = parse_url($value); |
181 | 181 | $base_url_info = parse_url($base_url); |
@@ -247,7 +247,7 @@ discard block |
||
247 | 247 | * |
248 | 248 | * @return bool |
249 | 249 | */ |
250 | - public function boolean(string $parameter, bool|null $default = null): bool |
|
250 | + public function boolean(string $parameter, bool | null $default = null): bool |
|
251 | 251 | { |
252 | 252 | $value = $this->parameters[$parameter] ?? null; |
253 | 253 | |
@@ -279,7 +279,7 @@ discard block |
||
279 | 279 | throw new HttpBadRequestException(I18N::translate('The parameter “%s” is missing.', $parameter)); |
280 | 280 | } |
281 | 281 | |
282 | - $callback = static fn (?array $value, Closure $rule): ?array => $rule($value); |
|
282 | + $callback = static fn (?array $value, Closure $rule) : ?array => $rule($value); |
|
283 | 283 | |
284 | 284 | return array_reduce($this->rules, $callback, $value) ?? []; |
285 | 285 | } |
@@ -290,7 +290,7 @@ discard block |
||
290 | 290 | * |
291 | 291 | * @return float |
292 | 292 | */ |
293 | - public function float(string $parameter, float|null $default = null): float |
|
293 | + public function float(string $parameter, float | null $default = null): float |
|
294 | 294 | { |
295 | 295 | $value = $this->parameters[$parameter] ?? null; |
296 | 296 | |
@@ -300,7 +300,7 @@ discard block |
||
300 | 300 | $value = null; |
301 | 301 | } |
302 | 302 | |
303 | - $callback = static fn (?float $value, Closure $rule): ?float => $rule($value); |
|
303 | + $callback = static fn (?float $value, Closure $rule) : ?float => $rule($value); |
|
304 | 304 | |
305 | 305 | $value = array_reduce($this->rules, $callback, $value) ?? $default; |
306 | 306 | |
@@ -317,7 +317,7 @@ discard block |
||
317 | 317 | * |
318 | 318 | * @return int |
319 | 319 | */ |
320 | - public function integer(string $parameter, int|null $default = null): int |
|
320 | + public function integer(string $parameter, int | null $default = null): int |
|
321 | 321 | { |
322 | 322 | $value = $this->parameters[$parameter] ?? null; |
323 | 323 | |
@@ -333,7 +333,7 @@ discard block |
||
333 | 333 | $value = null; |
334 | 334 | } |
335 | 335 | |
336 | - $callback = static fn (?int $value, Closure $rule): ?int => $rule($value); |
|
336 | + $callback = static fn (?int $value, Closure $rule) : ?int => $rule($value); |
|
337 | 337 | |
338 | 338 | $value = array_reduce($this->rules, $callback, $value) ?? $default; |
339 | 339 | |
@@ -366,7 +366,7 @@ discard block |
||
366 | 366 | * |
367 | 367 | * @return string |
368 | 368 | */ |
369 | - public function string(string $parameter, string|null $default = null): string |
|
369 | + public function string(string $parameter, string | null $default = null): string |
|
370 | 370 | { |
371 | 371 | $value = $this->parameters[$parameter] ?? null; |
372 | 372 | |
@@ -374,9 +374,9 @@ discard block |
||
374 | 374 | $value = null; |
375 | 375 | } |
376 | 376 | |
377 | - $callback = static fn (?string $value, Closure $rule): ?string => $rule($value); |
|
377 | + $callback = static fn (?string $value, Closure $rule) : ?string => $rule($value); |
|
378 | 378 | |
379 | - $value = array_reduce($this->rules, $callback, $value) ?? $default; |
|
379 | + $value = array_reduce($this->rules, $callback, $value) ?? $default; |
|
380 | 380 | |
381 | 381 | if ($value === null) { |
382 | 382 | throw new HttpBadRequestException(I18N::translate('The parameter “%s” is missing.', $parameter)); |
@@ -243,7 +243,7 @@ discard block |
||
243 | 243 | * |
244 | 244 | * @return bool |
245 | 245 | */ |
246 | - public function canShow(int|null $access_level = null): bool |
|
246 | + public function canShow(int | null $access_level = null): bool |
|
247 | 247 | { |
248 | 248 | $access_level ??= Auth::accessLevel($this->tree); |
249 | 249 | |
@@ -267,7 +267,7 @@ discard block |
||
267 | 267 | * |
268 | 268 | * @return bool |
269 | 269 | */ |
270 | - public function canShowName(int|null $access_level = null): bool |
|
270 | + public function canShowName(int | null $access_level = null): bool |
|
271 | 271 | { |
272 | 272 | return $this->canShow($access_level); |
273 | 273 | } |
@@ -429,7 +429,7 @@ discard block |
||
429 | 429 | * |
430 | 430 | * @return void |
431 | 431 | */ |
432 | - public function setPrimaryName(int|null $n = null): void |
|
432 | + public function setPrimaryName(int | null $n = null): void |
|
433 | 433 | { |
434 | 434 | $this->getPrimaryName = $n; |
435 | 435 | $this->getSecondaryName = null; |
@@ -608,7 +608,7 @@ discard block |
||
608 | 608 | public function facts( |
609 | 609 | array $filter = [], |
610 | 610 | bool $sort = false, |
611 | - int|null $access_level = null, |
|
611 | + int | null $access_level = null, |
|
612 | 612 | bool $ignore_deleted = false |
613 | 613 | ): Collection { |
614 | 614 | $access_level ??= Auth::accessLevel($this->tree); |
@@ -55,7 +55,7 @@ discard block |
||
55 | 55 | * |
56 | 56 | * @return bool |
57 | 57 | */ |
58 | - public static function isAdmin(UserInterface|null $user = null): bool |
|
58 | + public static function isAdmin(UserInterface | null $user = null): bool |
|
59 | 59 | { |
60 | 60 | $user ??= self::user(); |
61 | 61 | |
@@ -70,7 +70,7 @@ discard block |
||
70 | 70 | * |
71 | 71 | * @return bool |
72 | 72 | */ |
73 | - public static function isManager(Tree $tree, UserInterface|null $user = null): bool |
|
73 | + public static function isManager(Tree $tree, UserInterface | null $user = null): bool |
|
74 | 74 | { |
75 | 75 | $user ??= self::user(); |
76 | 76 | |
@@ -85,7 +85,7 @@ discard block |
||
85 | 85 | * |
86 | 86 | * @return bool |
87 | 87 | */ |
88 | - public static function isModerator(Tree $tree, UserInterface|null $user = null): bool |
|
88 | + public static function isModerator(Tree $tree, UserInterface | null $user = null): bool |
|
89 | 89 | { |
90 | 90 | $user ??= self::user(); |
91 | 91 | |
@@ -102,7 +102,7 @@ discard block |
||
102 | 102 | * |
103 | 103 | * @return bool |
104 | 104 | */ |
105 | - public static function isEditor(Tree $tree, UserInterface|null $user = null): bool |
|
105 | + public static function isEditor(Tree $tree, UserInterface | null $user = null): bool |
|
106 | 106 | { |
107 | 107 | $user ??= self::user(); |
108 | 108 | |
@@ -119,7 +119,7 @@ discard block |
||
119 | 119 | * |
120 | 120 | * @return bool |
121 | 121 | */ |
122 | - public static function isMember(Tree $tree, UserInterface|null $user = null): bool |
|
122 | + public static function isMember(Tree $tree, UserInterface | null $user = null): bool |
|
123 | 123 | { |
124 | 124 | $user ??= self::user(); |
125 | 125 | |
@@ -136,7 +136,7 @@ discard block |
||
136 | 136 | * |
137 | 137 | * @return int |
138 | 138 | */ |
139 | - public static function accessLevel(Tree $tree, UserInterface|null $user = null): int |
|
139 | + public static function accessLevel(Tree $tree, UserInterface | null $user = null): int |
|
140 | 140 | { |
141 | 141 | $user ??= self::user(); |
142 | 142 |
@@ -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 | } |
@@ -378,7 +378,7 @@ |
||
378 | 378 | * |
379 | 379 | * @return string |
380 | 380 | */ |
381 | - private function getDescendantsHtml(Tree $tree, array $individuals, array $ancestors, string $surname, bool $soundex_dm, bool $soundex_std, Individual $individual, Family|null $parents = null): string |
|
381 | + private function getDescendantsHtml(Tree $tree, array $individuals, array $ancestors, string $surname, bool $soundex_dm, bool $soundex_std, Individual $individual, Family | null $parents = null): string |
|
382 | 382 | { |
383 | 383 | $module = $this->module_service->findByComponent(ModuleChartInterface::class, $tree, Auth::user())->first(static function (ModuleInterface $module) { |
384 | 384 | return $module instanceof RelationshipsChartModule; |
@@ -149,7 +149,7 @@ |
||
149 | 149 | * |
150 | 150 | * @return string |
151 | 151 | */ |
152 | - private function getPersonDetails(Individual $individual, Family|null $family = null): string |
|
152 | + private function getPersonDetails(Individual $individual, Family | null $family = null): string |
|
153 | 153 | { |
154 | 154 | $chart_url = route('module', [ |
155 | 155 | 'module' => 'tree', |
@@ -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; |
@@ -313,7 +313,7 @@ |
||
313 | 313 | * |
314 | 314 | * @return bool |
315 | 315 | */ |
316 | - public function canShow(int|null $access_level = null): bool |
|
316 | + public function canShow(int | null $access_level = null): bool |
|
317 | 317 | { |
318 | 318 | $access_level ??= Auth::accessLevel($this->record->tree()); |
319 | 319 |
@@ -85,7 +85,7 @@ discard block |
||
85 | 85 | * |
86 | 86 | * @return Collection<int,Family> |
87 | 87 | */ |
88 | - public function linkedFamilies(GedcomRecord $record, string|null $link_type = null): Collection |
|
88 | + public function linkedFamilies(GedcomRecord $record, string | null $link_type = null): Collection |
|
89 | 89 | { |
90 | 90 | $query = DB::table('families') |
91 | 91 | ->join('link', static function (JoinClause $join): void { |
@@ -116,7 +116,7 @@ discard block |
||
116 | 116 | * |
117 | 117 | * @return Collection<int,Individual> |
118 | 118 | */ |
119 | - public function linkedIndividuals(GedcomRecord $record, string|null $link_type = null): Collection |
|
119 | + public function linkedIndividuals(GedcomRecord $record, string | null $link_type = null): Collection |
|
120 | 120 | { |
121 | 121 | $query = DB::table('individuals') |
122 | 122 | ->join('link', static function (JoinClause $join): void { |