@@ -45,11 +45,11 @@ discard block |
||
45 | 45 | protected const string ROUTE_NAME = IndividualPage::class; |
46 | 46 | |
47 | 47 | /** Used in some lists to keep track of this individual’s generation in that list */ |
48 | - public int|null $generation = null; |
|
48 | + public int | null $generation = null; |
|
49 | 49 | |
50 | - private Date|null $estimated_birth_date = null; |
|
50 | + private Date | null $estimated_birth_date = null; |
|
51 | 51 | |
52 | - private Date|null $estimated_death_date = null; |
|
52 | + private Date | null $estimated_death_date = null; |
|
53 | 53 | |
54 | 54 | /** |
55 | 55 | * A closure which will compare individuals by birth date. |
@@ -78,7 +78,7 @@ discard block |
||
78 | 78 | * |
79 | 79 | * @return bool |
80 | 80 | */ |
81 | - public function canShowName(int|null $access_level = null): bool |
|
81 | + public function canShowName(int | null $access_level = null): bool |
|
82 | 82 | { |
83 | 83 | $access_level ??= Auth::accessLevel($this->tree); |
84 | 84 | |
@@ -312,7 +312,7 @@ discard block |
||
312 | 312 | /** |
313 | 313 | * Find the highlighted media object for an individual |
314 | 314 | */ |
315 | - public function findHighlightedMediaFile(): MediaFile|null |
|
315 | + public function findHighlightedMediaFile(): MediaFile | null |
|
316 | 316 | { |
317 | 317 | $fact = $this->facts(['OBJE']) |
318 | 318 | ->first(static function (Fact $fact): bool { |
@@ -663,7 +663,7 @@ discard block |
||
663 | 663 | * |
664 | 664 | * @return Collection<int,Family> |
665 | 665 | */ |
666 | - public function spouseFamilies(int|null $access_level = null): Collection |
|
666 | + public function spouseFamilies(int | null $access_level = null): Collection |
|
667 | 667 | { |
668 | 668 | $access_level ??= Auth::accessLevel($this->tree); |
669 | 669 | |
@@ -690,7 +690,7 @@ discard block |
||
690 | 690 | * |
691 | 691 | * @return Individual|null |
692 | 692 | */ |
693 | - public function getCurrentSpouse(): Individual|null |
|
693 | + public function getCurrentSpouse(): Individual | null |
|
694 | 694 | { |
695 | 695 | $family = $this->spouseFamilies()->last(); |
696 | 696 | |
@@ -729,7 +729,7 @@ discard block |
||
729 | 729 | * |
730 | 730 | * @return Collection<int,Family> |
731 | 731 | */ |
732 | - public function childFamilies(int|null $access_level = null): Collection |
|
732 | + public function childFamilies(int | null $access_level = null): Collection |
|
733 | 733 | { |
734 | 734 | $access_level ??= Auth::accessLevel($this->tree); |
735 | 735 |
@@ -50,13 +50,13 @@ discard block |
||
50 | 50 | class MarkdownFactory implements MarkdownFactoryInterface |
51 | 51 | { |
52 | 52 | // Commonmark uses the self-closing form of this tag, so we do the same for consistency. |
53 | - public const string BREAK = '<br />'; |
|
53 | + public const string break = '<br />'; |
|
54 | 54 | |
55 | 55 | protected const array CONFIG_AUTOLINK = [ |
56 | 56 | 'allow_unsafe_links' => false, |
57 | 57 | 'html_input' => HtmlFilter::ESCAPE, |
58 | 58 | 'renderer' => [ |
59 | - 'soft_break' => self::BREAK, |
|
59 | + 'soft_break' => self::break, |
|
60 | 60 | ], |
61 | 61 | ]; |
62 | 62 | |
@@ -64,7 +64,7 @@ discard block |
||
64 | 64 | 'allow_unsafe_links' => false, |
65 | 65 | 'html_input' => HtmlFilter::ESCAPE, |
66 | 66 | 'renderer' => [ |
67 | - 'soft_break' => self::BREAK, |
|
67 | + 'soft_break' => self::break, |
|
68 | 68 | ], |
69 | 69 | 'table' => [ |
70 | 70 | 'wrap' => [ |