@@ -74,7 +74,7 @@ |
||
| 74 | 74 | } |
| 75 | 75 | |
| 76 | 76 | if (preg_match('/^(\d+) B\.C\.$/', $year, $match)) { |
| 77 | - return - (int) $match[1]; |
|
| 77 | + return -(int) $match[1]; |
|
| 78 | 78 | } |
| 79 | 79 | |
| 80 | 80 | return (int) $year; |
@@ -76,7 +76,7 @@ |
||
| 76 | 76 | { |
| 77 | 77 | $latest_version = $this->fetchLatestVersion(); |
| 78 | 78 | |
| 79 | - [, , $url] = explode('|', $latest_version . '||'); |
|
| 79 | + [,, $url] = explode('|', $latest_version . '||'); |
|
| 80 | 80 | |
| 81 | 81 | return $url; |
| 82 | 82 | } |
@@ -87,7 +87,7 @@ |
||
| 87 | 87 | public function getMenu(Tree $tree): ?Menu |
| 88 | 88 | { |
| 89 | 89 | $submenus = $this->module_service->findByComponent(ModuleListInterface::class, $tree, Auth::user()) |
| 90 | - ->map(static function (ModuleListInterface $module) use ($tree): ?Menu { |
|
| 90 | + ->map(static function (ModuleListInterface $module) use ($tree) : ?Menu { |
|
| 91 | 91 | return $module->listMenu($tree); |
| 92 | 92 | }) |
| 93 | 93 | ->filter() |
@@ -721,7 +721,7 @@ |
||
| 721 | 721 | public function findByName(string $module_name, bool $include_disabled = false): ?ModuleInterface |
| 722 | 722 | { |
| 723 | 723 | return $this->all($include_disabled) |
| 724 | - ->first(static function (ModuleInterface $module) use ($module_name): bool { |
|
| 724 | + ->first(static function (ModuleInterface $module) use ($module_name) : bool { |
|
| 725 | 725 | return $module->name() === $module_name; |
| 726 | 726 | }); |
| 727 | 727 | } |
@@ -2618,7 +2618,7 @@ |
||
| 2618 | 2618 | /** @var ModuleBlockInterface|null $module */ |
| 2619 | 2619 | $module = $this->module_service |
| 2620 | 2620 | ->findByComponent(ModuleBlockInterface::class, $this->tree, Auth::user()) |
| 2621 | - ->first(static function (ModuleInterface $module) use ($block): bool { |
|
| 2621 | + ->first(static function (ModuleInterface $module) use ($block) : bool { |
|
| 2622 | 2622 | return $module->name() === $block && $module->name() !== 'html'; |
| 2623 | 2623 | }); |
| 2624 | 2624 | |
@@ -211,7 +211,7 @@ |
||
| 211 | 211 | |
| 212 | 212 | // Father’s ancestors link to the father’s pedigree |
| 213 | 213 | // Mother’s ancestors link to the mother’s pedigree.. |
| 214 | - $links = $ancestors->map(function (?Individual $individual, $sosa) use ($ancestors, $style, $generations): string { |
|
| 214 | + $links = $ancestors->map(function (?Individual $individual, $sosa) use ($ancestors, $style, $generations) : string { |
|
| 215 | 215 | if ($individual instanceof Individual && $sosa >= 2 ** $generations / 2 && $individual->childFamilies()->isNotEmpty()) { |
| 216 | 216 | // The last row/column, and there are more generations. |
| 217 | 217 | if ($sosa >= 2 ** $generations * 3 / 4) { |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -return array ( |
|
| 3 | +return array( |
|
| 4 | 4 | '%H:%i:%s' => '%g:%i:%s %a', |
| 5 | 5 | '%j %F %Y' => '%F %j, %Y', |
| 6 | 6 | ); |
@@ -907,7 +907,7 @@ |
||
| 907 | 907 | private function filterActiveBlocks(Collection $blocks, Collection $active_blocks): Collection |
| 908 | 908 | { |
| 909 | 909 | return $blocks->map(static function (string $block_name) use ($active_blocks): ?ModuleBlockInterface { |
| 910 | - return $active_blocks->filter(static function (ModuleInterface $block) use ($block_name): bool { |
|
| 910 | + return $active_blocks->filter(static function (ModuleInterface $block) use ($block_name) : bool { |
|
| 911 | 911 | return $block->name() === $block_name; |
| 912 | 912 | })->first(); |
| 913 | 913 | })->filter(); |
@@ -96,7 +96,7 @@ |
||
| 96 | 96 | * |
| 97 | 97 | * @return GedcomRecord |
| 98 | 98 | */ |
| 99 | - public function new(string $xref, string $gedcom, ?string $pending, Tree $tree): GedcomRecord |
|
| 99 | + public function new(string $xref, string $gedcom, ?string $pending, Tree $tree) : GedcomRecord |
|
| 100 | 100 | { |
| 101 | 101 | return new GedcomRecord($xref, $gedcom, $pending, $tree); |
| 102 | 102 | } |