@@ -784,7 +784,7 @@ discard block  | 
                                                    ||
| 784 | 784 | $access_level = $access_level ?? Auth::accessLevel($this->tree);  | 
                                                        
| 785 | 785 | |
| 786 | 786 | // Convert BIRT into INDI:BIRT, etc.  | 
                                                        
| 787 | - $filter = array_map(fn (string $tag): string => $this->tag() . ':' . $tag, $filter);  | 
                                                        |
| 787 | + $filter = array_map(fn(string $tag): string => $this->tag() . ':' . $tag, $filter);  | 
                                                        |
| 788 | 788 | |
| 789 | 789 | $facts = new Collection();  | 
                                                        
| 790 | 790 |          if ($this->canShow($access_level)) { | 
                                                        
@@ -804,7 +804,7 @@ discard block  | 
                                                    ||
| 804 | 804 | |
| 805 | 805 | default:  | 
                                                        
| 806 | 806 | $subtags = Registry::elementFactory()->make($this->tag())->subtags();  | 
                                                        
| 807 | - $subtags = array_map(fn (string $tag): string => $this->tag() . ':' . $tag, array_keys($subtags));  | 
                                                        |
| 807 | + $subtags = array_map(fn(string $tag): string => $this->tag() . ':' . $tag, array_keys($subtags));  | 
                                                        |
| 808 | 808 | $subtags = array_combine(range(1, count($subtags)), $subtags);  | 
                                                        
| 809 | 809 | |
| 810 | 810 | $facts = $facts  | 
                                                        
@@ -130,9 +130,9 @@  | 
                                                    ||
| 130 | 130 | |
| 131 | 131 |          if ($one_line_only) { | 
                                                        
| 132 | 132 | return  | 
                                                        
| 133 | - '<div class="fact_NOTE">' .  | 
                                                        |
| 134 | -                 I18N::translate('<span class="label">%1$s:</span> <span class="field" dir="auto">%2$s</span>', $label, $html) . | 
                                                        |
| 135 | - '</div>';  | 
                                                        |
| 133 | + '<div class="fact_NOTE">' .  | 
                                                        |
| 134 | +                    I18N::translate('<span class="label">%1$s:</span> <span class="field" dir="auto">%2$s</span>', $label, $html) . | 
                                                        |
| 135 | + '</div>';  | 
                                                        |
| 136 | 136 | }  | 
                                                        
| 137 | 137 | |
| 138 | 138 | return  | 
                                                        
@@ -80,7 +80,7 @@ discard block  | 
                                                    ||
| 80 | 80 | */  | 
                                                        
| 81 | 81 | public function isBetween(int $minimum, int $maximum): self  | 
                                                        
| 82 | 82 |      { | 
                                                        
| 83 | -        $this->rules[] = static function (?int $value) use ($minimum, $maximum): ?int { | 
                                                        |
| 83 | +        $this->rules[] = static function (?int $value) use ($minimum, $maximum) : ?int { | 
                                                        |
| 84 | 84 |              if (is_int($value) && $value >= $minimum && $value <= $maximum) { | 
                                                        
| 85 | 85 | return $value;  | 
                                                        
| 86 | 86 | }  | 
                                                        
@@ -98,7 +98,7 @@ discard block  | 
                                                    ||
| 98 | 98 | */  | 
                                                        
| 99 | 99 | public function isInArray(array $values): self  | 
                                                        
| 100 | 100 |      { | 
                                                        
| 101 | - $this->rules[] = static fn (?string $value): ?string => is_string($value) && in_array($value, $values, true) ? $value : null;  | 
                                                        |
| 101 | + $this->rules[] = static fn(?string $value) : ?string => is_string($value) && in_array($value, $values, true) ? $value : null;  | 
                                                        |
| 102 | 102 | |
| 103 | 103 | return $this;  | 
                                                        
| 104 | 104 | }  | 
                                                        
@@ -109,7 +109,7 @@ discard block  | 
                                                    ||
| 109 | 109 | */  | 
                                                        
| 110 | 110 | public function isLocalUrl(string $base_url): self  | 
                                                        
| 111 | 111 |      { | 
                                                        
| 112 | -        $this->rules[] = static function (?string $value) use ($base_url): ?string { | 
                                                        |
| 112 | +        $this->rules[] = static function (?string $value) use ($base_url) : ?string { | 
                                                        |
| 113 | 113 |              if (is_string($value)) { | 
                                                        
| 114 | 114 | $value_info = parse_url($value);  | 
                                                        
| 115 | 115 | $base_url_info = parse_url($base_url);  | 
                                                        
@@ -166,7 +166,7 @@ discard block  | 
                                                    ||
| 166 | 166 | $value = null;  | 
                                                        
| 167 | 167 | }  | 
                                                        
| 168 | 168 | |
| 169 | - $callback = static fn (?array $value, Closure $rule): ?array => $rule($value);  | 
                                                        |
| 169 | + $callback = static fn(?array $value, Closure $rule) : ?array => $rule($value);  | 
                                                        |
| 170 | 170 | |
| 171 | 171 | return array_reduce($this->rules, $callback, $value);  | 
                                                        
| 172 | 172 | }  | 
                                                        
@@ -186,7 +186,7 @@ discard block  | 
                                                    ||
| 186 | 186 | $value = null;  | 
                                                        
| 187 | 187 | }  | 
                                                        
| 188 | 188 | |
| 189 | - $callback = static fn (?int $value, Closure $rule): ?int => $rule($value);  | 
                                                        |
| 189 | + $callback = static fn(?int $value, Closure $rule) : ?int => $rule($value);  | 
                                                        |
| 190 | 190 | |
| 191 | 191 | return array_reduce($this->rules, $callback, $value);  | 
                                                        
| 192 | 192 | }  | 
                                                        
@@ -204,7 +204,7 @@ discard block  | 
                                                    ||
| 204 | 204 | $value = null;  | 
                                                        
| 205 | 205 | }  | 
                                                        
| 206 | 206 | |
| 207 | - $callback = static fn (?string $value, Closure $rule): ?string => $rule($value);  | 
                                                        |
| 207 | + $callback = static fn(?string $value, Closure $rule) : ?string => $rule($value);  | 
                                                        |
| 208 | 208 | |
| 209 | 209 | return array_reduce($this->rules, $callback, $value);  | 
                                                        
| 210 | 210 | }  | 
                                                        
@@ -828,7 +828,7 @@  | 
                                                    ||
| 828 | 828 | public static function chr(int $code): string  | 
                                                        
| 829 | 829 |      { | 
                                                        
| 830 | 830 |          if ($code < 0 || $code > 0x1FFFFF) { | 
                                                        
| 831 | - throw new InvalidArgumentException((string)$code);  | 
                                                        |
| 831 | + throw new InvalidArgumentException((string) $code);  | 
                                                        |
| 832 | 832 | }  | 
                                                        
| 833 | 833 | |
| 834 | 834 |          if ($code <= 0x7F) { | 
                                                        
@@ -93,7 +93,7 @@  | 
                                                    ||
| 93 | 93 | /** @var Collection<int,GedcomRecord> $records */  | 
                                                        
| 94 | 94 |          $records = $rows->map(function (object $row) use ($tree): ?GedcomRecord { | 
                                                        
| 95 | 95 | return $this->data_fix_service->getRecordByType($row->xref, $tree, $row->type);  | 
                                                        
| 96 | -        })->filter(static function (?GedcomRecord $record) use ($module, $params): bool { | 
                                                        |
| 96 | +        })->filter(static function (?GedcomRecord $record) use ($module, $params) : bool { | 
                                                        |
| 97 | 97 | return $record instanceof GedcomRecord && !$record->isPendingDeletion() && $module->doesRecordNeedUpdate($record, $params);  | 
                                                        
| 98 | 98 | });  | 
                                                        
| 99 | 99 | |
@@ -45,7 +45,7 @@ discard block  | 
                                                    ||
| 45 | 45 | */  | 
                                                        
| 46 | 46 | public function make(int $timestamp, UserInterface $user = null): TimestampInterface  | 
                                                        
| 47 | 47 |      { | 
                                                        
| 48 | - $user ??= Auth::user();  | 
                                                        |
| 48 | + $user ??= Auth::user();  | 
                                                        |
| 49 | 49 |          $timezone = $user->getPreference(UserInterface::PREF_TIME_ZONE, Site::getPreference('TIMEZONE')); | 
                                                        
| 50 | 50 | $locale = I18N::locale()->code();  | 
                                                        
| 51 | 51 | |
@@ -61,7 +61,7 @@ discard block  | 
                                                    ||
| 61 | 61 | */  | 
                                                        
| 62 | 62 | public function fromString(?string $string, string $format = 'Y-m-d H:i:s', UserInterface $user = null): TimestampInterface  | 
                                                        
| 63 | 63 |      { | 
                                                        
| 64 | - $string ??= date($format);  | 
                                                        |
| 64 | + $string ??= date($format);  | 
                                                        |
| 65 | 65 | $timestamp = date_create_from_format($format, $string);  | 
                                                        
| 66 | 66 | |
| 67 | 67 |          if ($timestamp === false) { | 
                                                        
@@ -126,7 +126,7 @@  | 
                                                    ||
| 126 | 126 |              } else { | 
                                                        
| 127 | 127 | $match = [];  | 
                                                        
| 128 | 128 |                  if (preg_match('/NOW([+\-]\d+)/', $attrs['default'], $match) > 0) { | 
                                                        
| 129 | - $date = Registry::timestampFactory()->now()->addDays((int)$match[1]);  | 
                                                        |
| 129 | + $date = Registry::timestampFactory()->now()->addDays((int) $match[1]);  | 
                                                        |
| 130 | 130 |                      $this->input['default'] = strtoupper($date->format('d M Y')); | 
                                                        
| 131 | 131 |                  } else { | 
                                                        
| 132 | 132 | $this->input['default'] = $attrs['default'];  | 
                                                        
@@ -85,9 +85,9 @@  | 
                                                    ||
| 85 | 85 | $filesystem = new Filesystem(new LocalFilesystemAdapter(self::ROOT_DIR));  | 
                                                        
| 86 | 86 | |
| 87 | 87 |          $scripts = $filesystem->listContents('app', FilesystemReader::LIST_DEEP) | 
                                                        
| 88 | - ->filter(static fn (StorageAttributes $file): bool => $file->isFile())  | 
                                                        |
| 89 | - ->map(static fn (StorageAttributes $file): string => $file->path())  | 
                                                        |
| 90 | - ->filter(static fn (string $script): bool => !str_contains($script, 'Interface.php') && !str_contains($script, 'Abstract'));  | 
                                                        |
| 88 | + ->filter(static fn(StorageAttributes $file): bool => $file->isFile())  | 
                                                        |
| 89 | + ->map(static fn(StorageAttributes $file): string => $file->path())  | 
                                                        |
| 90 | + ->filter(static fn(string $script): bool => !str_contains($script, 'Interface.php') && !str_contains($script, 'Abstract'));  | 
                                                        |
| 91 | 91 | |
| 92 | 92 |          foreach ($scripts as $script) { | 
                                                        
| 93 | 93 | $class = strtr($script, ['app/' => '', '.php' => '', '/' => '\\']);  |