@@ -87,7 +87,7 @@ |
||
| 87 | 87 | */ |
| 88 | 88 | public function show(ServerRequestInterface $request): ResponseInterface |
| 89 | 89 | { |
| 90 | - $tree = $request->getAttribute('tree'); |
|
| 90 | + $tree = $request->getAttribute('tree'); |
|
| 91 | 91 | $xref = $request->getQueryParams()['xref']; |
| 92 | 92 | $individual = Individual::getInstance($xref, $tree); |
| 93 | 93 | |
@@ -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 | /** |