@@ -192,7 +192,7 @@ |
||
192 | 192 | '<div class="gedcom-data" dir="ltr">' . |
193 | 193 | preg_replace_callback( |
194 | 194 | '/@(' . Gedcom::REGEX_XREF . ')@/', |
195 | - static function (array $match) use ($tree): string { |
|
195 | + static function (array $match) use ($tree) : string { |
|
196 | 196 | $record = GedcomRecord::getInstance($match[1], $tree); |
197 | 197 | |
198 | 198 | return $record ? '<a href="' . e($record->url()) . '">' . $match[0] . '</a>' : $match[0]; |
@@ -12,7 +12,8 @@ |
||
12 | 12 | * An example module to modify PHP and database configuration. |
13 | 13 | */ |
14 | 14 | |
15 | -return new class extends AbstractModule implements ModuleCustomInterface { |
|
15 | +return new class extends AbstractModule implements ModuleCustomInterface |
|
16 | +{ |
|
16 | 17 | use ModuleCustomTrait; |
17 | 18 | |
18 | 19 | /** @var ServerCheckService */ |
@@ -12,7 +12,8 @@ |
||
12 | 12 | * Instead, you could extend AbstractModule and implement ModuleThemeInterface directly. |
13 | 13 | */ |
14 | 14 | |
15 | -return new class extends MinimalTheme implements ModuleCustomInterface { |
|
15 | +return new class extends MinimalTheme implements ModuleCustomInterface |
|
16 | +{ |
|
16 | 17 | use ModuleCustomTrait; |
17 | 18 | |
18 | 19 | /** |
@@ -14,7 +14,8 @@ |
||
14 | 14 | * Example module |
15 | 15 | */ |
16 | 16 | |
17 | -return new class extends AbstractModule implements ModuleCustomInterface { |
|
17 | +return new class extends AbstractModule implements ModuleCustomInterface |
|
18 | +{ |
|
18 | 19 | use ModuleCustomTrait; |
19 | 20 | |
20 | 21 | /** |