@@ -85,7 +85,7 @@ |
||
| 85 | 85 | * |
| 86 | 86 | * @return Submission |
| 87 | 87 | */ |
| 88 | - public function new(string $xref, string $gedcom, ?string $pending, Tree $tree): Submission |
|
| 88 | + public function new(string $xref, string $gedcom, ?string $pending, Tree $tree) : Submission |
|
| 89 | 89 | { |
| 90 | 90 | return new Submission($xref, $gedcom, $pending, $tree); |
| 91 | 91 | } |
@@ -59,6 +59,6 @@ |
||
| 59 | 59 | * |
| 60 | 60 | * @return Submission |
| 61 | 61 | */ |
| 62 | - public function new(string $xref, string $gedcom, ?string $pending, Tree $tree): Submission; |
|
| 62 | + public function new(string $xref, string $gedcom, ?string $pending, Tree $tree) : Submission; |
|
| 63 | 63 | |
| 64 | 64 | } |
@@ -59,5 +59,5 @@ |
||
| 59 | 59 | * |
| 60 | 60 | * @return Header |
| 61 | 61 | */ |
| 62 | - public function new(string $xref, string $gedcom, ?string $pending, Tree $tree): Header; |
|
| 62 | + public function new(string $xref, string $gedcom, ?string $pending, Tree $tree) : Header; |
|
| 63 | 63 | } |
@@ -50,7 +50,7 @@ |
||
| 50 | 50 | * |
| 51 | 51 | * @return GedcomRecord |
| 52 | 52 | */ |
| 53 | - public function new(string $xref, string $gedcom, ?string $pending, Tree $tree): GedcomRecord; |
|
| 53 | + public function new(string $xref, string $gedcom, ?string $pending, Tree $tree) : GedcomRecord; |
|
| 54 | 54 | |
| 55 | 55 | /** |
| 56 | 56 | * Create a GedcomRecord object from a row in the database. |
@@ -59,5 +59,5 @@ |
||
| 59 | 59 | * |
| 60 | 60 | * @return Location |
| 61 | 61 | */ |
| 62 | - public function new(string $xref, string $gedcom, ?string $pending, Tree $tree): Location; |
|
| 62 | + public function new(string $xref, string $gedcom, ?string $pending, Tree $tree) : Location; |
|
| 63 | 63 | } |
@@ -89,7 +89,7 @@ |
||
| 89 | 89 | * |
| 90 | 90 | * @return Location |
| 91 | 91 | */ |
| 92 | - public function new(string $xref, string $gedcom, ?string $pending, Tree $tree): Location |
|
| 92 | + public function new(string $xref, string $gedcom, ?string $pending, Tree $tree) : Location |
|
| 93 | 93 | { |
| 94 | 94 | return new Location($xref, $gedcom, $pending, $tree); |
| 95 | 95 | } |
@@ -112,7 +112,7 @@ |
||
| 112 | 112 | '<div class="gedcom-data" dir="ltr">' . |
| 113 | 113 | preg_replace_callback( |
| 114 | 114 | '/@(' . Gedcom::REGEX_XREF . ')@/', |
| 115 | - static function (array $match) use ($tree): string { |
|
| 115 | + static function (array $match) use ($tree) : string { |
|
| 116 | 116 | $record = Registry::gedcomRecordFactory()->make($match[1], $tree); |
| 117 | 117 | |
| 118 | 118 | return $record ? '<a href="' . e($record->url()) . '">' . $match[0] . '</a>' : $match[0]; |
@@ -52,7 +52,7 @@ |
||
| 52 | 52 | */ |
| 53 | 53 | public function find(?int $user_id): ?User |
| 54 | 54 | { |
| 55 | - return Registry::cache()->array()->remember('user-' . $user_id, static function () use ($user_id): ?User { |
|
| 55 | + return Registry::cache()->array()->remember('user-' . $user_id, static function () use ($user_id) : ?User { |
|
| 56 | 56 | return DB::table('user') |
| 57 | 57 | ->where('user_id', '=', $user_id) |
| 58 | 58 | ->get() |
@@ -457,7 +457,7 @@ |
||
| 457 | 457 | public function addYears(int $years, string $qualifier = ''): Date |
| 458 | 458 | { |
| 459 | 459 | $tmp = clone $this; |
| 460 | - $tmp->date1->year += $years; |
|
| 460 | + $tmp->date1->year += $years; |
|
| 461 | 461 | $tmp->date1->month = 0; |
| 462 | 462 | $tmp->date1->day = 0; |
| 463 | 463 | $tmp->date1->setJdFromYmd(); |