@@ -44,7 +44,7 @@ discard block |
||
44 | 44 | * |
45 | 45 | * @return Note|null |
46 | 46 | */ |
47 | - public function make(string $xref, Tree $tree, string|null $gedcom = null): ?Note |
|
47 | + public function make(string $xref, Tree $tree, string | null $gedcom = null): ?Note |
|
48 | 48 | { |
49 | 49 | return Registry::cache()->array()->remember(self::class . $xref . '@' . $tree->id(), function () use ($xref, $tree, $gedcom) { |
50 | 50 | $gedcom ??= $this->gedcom($xref, $tree); |
@@ -83,7 +83,7 @@ discard block |
||
83 | 83 | * |
84 | 84 | * @return Note |
85 | 85 | */ |
86 | - public function new(string $xref, string $gedcom, ?string $pending, Tree $tree): Note |
|
86 | + public function new(string $xref, string $gedcom, ?string $pending, Tree $tree) : Note |
|
87 | 87 | { |
88 | 88 | return new Note($xref, $gedcom, $pending, $tree); |
89 | 89 | } |
@@ -44,7 +44,7 @@ discard block |
||
44 | 44 | * |
45 | 45 | * @return Header|null |
46 | 46 | */ |
47 | - public function make(string $xref, Tree $tree, string|null $gedcom = null): ?Header |
|
47 | + public function make(string $xref, Tree $tree, string | null $gedcom = null): ?Header |
|
48 | 48 | { |
49 | 49 | return Registry::cache()->array()->remember(self::class . $xref . '@' . $tree->id(), function () use ($xref, $tree, $gedcom) { |
50 | 50 | $gedcom ??= $this->gedcom($xref, $tree); |
@@ -83,7 +83,7 @@ discard block |
||
83 | 83 | * |
84 | 84 | * @return Header |
85 | 85 | */ |
86 | - public function new(string $xref, string $gedcom, ?string $pending, Tree $tree): Header |
|
86 | + public function new(string $xref, string $gedcom, ?string $pending, Tree $tree) : Header |
|
87 | 87 | { |
88 | 88 | return new Header($xref, $gedcom, $pending, $tree); |
89 | 89 | } |
@@ -44,7 +44,7 @@ discard block |
||
44 | 44 | * |
45 | 45 | * @return SharedNote|null |
46 | 46 | */ |
47 | - public function make(string $xref, Tree $tree, string|null $gedcom = null): ?SharedNote |
|
47 | + public function make(string $xref, Tree $tree, string | null $gedcom = null): ?SharedNote |
|
48 | 48 | { |
49 | 49 | return Registry::cache()->array()->remember(self::class . $xref . '@' . $tree->id(), function () use ($xref, $tree, $gedcom) { |
50 | 50 | $gedcom ??= $this->gedcom($xref, $tree); |
@@ -83,7 +83,7 @@ discard block |
||
83 | 83 | * |
84 | 84 | * @return SharedNote |
85 | 85 | */ |
86 | - public function new(string $xref, string $gedcom, ?string $pending, Tree $tree): SharedNote |
|
86 | + public function new(string $xref, string $gedcom, ?string $pending, Tree $tree) : SharedNote |
|
87 | 87 | { |
88 | 88 | return new SharedNote($xref, $gedcom, $pending, $tree); |
89 | 89 | } |
@@ -83,7 +83,7 @@ discard block |
||
83 | 83 | * |
84 | 84 | * @return string |
85 | 85 | */ |
86 | - public function autolink(string $markdown, Tree|null $tree = null): string |
|
86 | + public function autolink(string $markdown, Tree | null $tree = null): string |
|
87 | 87 | { |
88 | 88 | // Create a minimal commonmark processor - just add support for auto-links. |
89 | 89 | $environment = new Environment(static::CONFIG_AUTOLINK); |
@@ -117,7 +117,7 @@ discard block |
||
117 | 117 | * |
118 | 118 | * @return string |
119 | 119 | */ |
120 | - public function markdown(string $markdown, Tree|null $tree = null): string |
|
120 | + public function markdown(string $markdown, Tree | null $tree = null): string |
|
121 | 121 | { |
122 | 122 | $environment = new Environment(static::CONFIG_MARKDOWN); |
123 | 123 | $environment->addExtension(new CommonMarkCoreExtension()); |
@@ -44,7 +44,7 @@ discard block |
||
44 | 44 | * |
45 | 45 | * @return Submitter|null |
46 | 46 | */ |
47 | - public function make(string $xref, Tree $tree, string|null $gedcom = null): ?Submitter |
|
47 | + public function make(string $xref, Tree $tree, string | null $gedcom = null): ?Submitter |
|
48 | 48 | { |
49 | 49 | return Registry::cache()->array()->remember(self::class . $xref . '@' . $tree->id(), function () use ($xref, $tree, $gedcom) { |
50 | 50 | $gedcom ??= $this->gedcom($xref, $tree); |
@@ -83,7 +83,7 @@ discard block |
||
83 | 83 | * |
84 | 84 | * @return Submitter |
85 | 85 | */ |
86 | - public function new(string $xref, string $gedcom, ?string $pending, Tree $tree): Submitter |
|
86 | + public function new(string $xref, string $gedcom, ?string $pending, Tree $tree) : Submitter |
|
87 | 87 | { |
88 | 88 | return new Submitter($xref, $gedcom, $pending, $tree); |
89 | 89 | } |
@@ -44,7 +44,7 @@ discard block |
||
44 | 44 | * |
45 | 45 | * @return Location|null |
46 | 46 | */ |
47 | - public function make(string $xref, Tree $tree, string|null $gedcom = null): ?Location |
|
47 | + public function make(string $xref, Tree $tree, string | null $gedcom = null): ?Location |
|
48 | 48 | { |
49 | 49 | return Registry::cache()->array()->remember(self::class . $xref . '@' . $tree->id(), function () use ($xref, $tree, $gedcom) { |
50 | 50 | $gedcom ??= $this->gedcom($xref, $tree); |
@@ -83,7 +83,7 @@ discard block |
||
83 | 83 | * |
84 | 84 | * @return Location |
85 | 85 | */ |
86 | - public function new(string $xref, string $gedcom, ?string $pending, Tree $tree): Location |
|
86 | + public function new(string $xref, string $gedcom, ?string $pending, Tree $tree) : Location |
|
87 | 87 | { |
88 | 88 | return new Location($xref, $gedcom, $pending, $tree); |
89 | 89 | } |
@@ -45,7 +45,7 @@ discard block |
||
45 | 45 | * |
46 | 46 | * @return Repository|null |
47 | 47 | */ |
48 | - public function make(string $xref, Tree $tree, string|null $gedcom = null): ?Repository |
|
48 | + public function make(string $xref, Tree $tree, string | null $gedcom = null): ?Repository |
|
49 | 49 | { |
50 | 50 | return Registry::cache()->array()->remember(self::class . $xref . '@' . $tree->id(), function () use ($xref, $tree, $gedcom) { |
51 | 51 | $gedcom ??= $this->gedcom($xref, $tree); |
@@ -89,7 +89,7 @@ discard block |
||
89 | 89 | * |
90 | 90 | * @return Repository |
91 | 91 | */ |
92 | - public function new(string $xref, string $gedcom, ?string $pending, Tree $tree): Repository |
|
92 | + public function new(string $xref, string $gedcom, ?string $pending, Tree $tree) : Repository |
|
93 | 93 | { |
94 | 94 | return new Repository($xref, $gedcom, $pending, $tree); |
95 | 95 | } |
@@ -44,7 +44,7 @@ discard block |
||
44 | 44 | * |
45 | 45 | * @return Individual|null |
46 | 46 | */ |
47 | - public function make(string $xref, Tree $tree, string|null $gedcom = null): ?Individual |
|
47 | + public function make(string $xref, Tree $tree, string | null $gedcom = null): ?Individual |
|
48 | 48 | { |
49 | 49 | return Registry::cache()->array()->remember(self::class . $xref . '@' . $tree->id(), function () use ($xref, $tree, $gedcom) { |
50 | 50 | $gedcom ??= $this->gedcom($xref, $tree); |
@@ -82,7 +82,7 @@ discard block |
||
82 | 82 | * |
83 | 83 | * @return Individual |
84 | 84 | */ |
85 | - public function new(string $xref, string $gedcom, ?string $pending, Tree $tree): Individual |
|
85 | + public function new(string $xref, string $gedcom, ?string $pending, Tree $tree) : Individual |
|
86 | 86 | { |
87 | 87 | return new Individual($xref, $gedcom, $pending, $tree); |
88 | 88 | } |
@@ -45,7 +45,7 @@ discard block |
||
45 | 45 | * |
46 | 46 | * @return Family|null |
47 | 47 | */ |
48 | - public function make(string $xref, Tree $tree, string|null $gedcom = null): ?Family |
|
48 | + public function make(string $xref, Tree $tree, string | null $gedcom = null): ?Family |
|
49 | 49 | { |
50 | 50 | return Registry::cache()->array()->remember(self::class . $xref . '@' . $tree->id(), function () use ($xref, $tree, $gedcom) { |
51 | 51 | $gedcom ??= $this->gedcom($xref, $tree); |
@@ -92,7 +92,7 @@ discard block |
||
92 | 92 | * |
93 | 93 | * @return Family |
94 | 94 | */ |
95 | - public function new(string $xref, string $gedcom, ?string $pending, Tree $tree): Family |
|
95 | + public function new(string $xref, string $gedcom, ?string $pending, Tree $tree) : Family |
|
96 | 96 | { |
97 | 97 | return new Family($xref, $gedcom, $pending, $tree); |
98 | 98 | } |