@@ -141,7 +141,7 @@ discard block |
||
141 | 141 | return self::pdo()->getAttribute(PDO::ATTR_DRIVER_NAME); |
142 | 142 | } |
143 | 143 | |
144 | - public static function exec(string $sql): int|false |
|
144 | + public static function exec(string $sql): int | false |
|
145 | 145 | { |
146 | 146 | return self::pdo()->exec($sql); |
147 | 147 | } |
@@ -227,7 +227,7 @@ discard block |
||
227 | 227 | /** |
228 | 228 | * @return Expression<string> |
229 | 229 | */ |
230 | - public static function binaryColumn(string $column, string|null $alias = null): Expression |
|
230 | + public static function binaryColumn(string $column, string | null $alias = null): Expression |
|
231 | 231 | { |
232 | 232 | if (self::driverName() === self::MYSQL) { |
233 | 233 | $sql = 'CAST(' . $column . ' AS binary)'; |
@@ -174,7 +174,7 @@ |
||
174 | 174 | ]); |
175 | 175 | } |
176 | 176 | |
177 | - public function record(GedcomRecord|null $record): string |
|
177 | + public function record(GedcomRecord | null $record): string |
|
178 | 178 | { |
179 | 179 | if ($record === null) { |
180 | 180 | return $this->missing(); |
@@ -846,7 +846,7 @@ discard block |
||
846 | 846 | * @param array<int|string> $z_axis |
847 | 847 | * @param array<array<int>> $ydata |
848 | 848 | */ |
849 | - private function fillYData(int|string $x, int|string $z, int $value, array $x_axis, array $z_axis, array &$ydata): void |
|
849 | + private function fillYData(int | string $x, int | string $z, int $value, array $x_axis, array $z_axis, array &$ydata): void |
|
850 | 850 | { |
851 | 851 | $x = $this->findAxisEntry($x, $x_axis); |
852 | 852 | $z = $this->findAxisEntry($z, $z_axis); |
@@ -862,7 +862,7 @@ discard block |
||
862 | 862 | * |
863 | 863 | * @param array<int|string > $axis |
864 | 864 | */ |
865 | - private function findAxisEntry(int|string $value, array $axis): int|string |
|
865 | + private function findAxisEntry(int | string $value, array $axis): int | string |
|
866 | 866 | { |
867 | 867 | if (is_numeric($value)) { |
868 | 868 | $value = (int) $value; |
@@ -513,7 +513,7 @@ discard block |
||
513 | 513 | public function commonGiven(string $threshold = '1', string $limit = '10'): string |
514 | 514 | { |
515 | 515 | return $this->data->commonGivenNames('ALL', (int) $threshold, (int) $limit) |
516 | - ->mapWithKeys(static fn (int $value, int|string $key): array => [ |
|
516 | + ->mapWithKeys(static fn (int $value, int | string $key): array => [ |
|
517 | 517 | $key => '<bdi>' . e($key) . '</bdi>', |
518 | 518 | ]) |
519 | 519 | ->implode(I18N::$list_separator); |
@@ -522,7 +522,7 @@ discard block |
||
522 | 522 | public function commonGivenFemale(string $threshold = '1', string $limit = '10'): string |
523 | 523 | { |
524 | 524 | return $this->data->commonGivenNames('F', (int) $threshold, (int) $limit) |
525 | - ->mapWithKeys(static fn (int $value, int|string $key): array => [ |
|
525 | + ->mapWithKeys(static fn (int $value, int | string $key): array => [ |
|
526 | 526 | $key => '<bdi>' . e($key) . '</bdi>', |
527 | 527 | ]) |
528 | 528 | ->implode(I18N::$list_separator); |
@@ -555,7 +555,7 @@ discard block |
||
555 | 555 | public function commonGivenFemaleTotals(string $threshold = '1', string $limit = '10'): string |
556 | 556 | { |
557 | 557 | return $this->data->commonGivenNames('F', (int) $threshold, (int) $limit) |
558 | - ->mapWithKeys(static fn (int $value, int|string $key): array => [ |
|
558 | + ->mapWithKeys(static fn (int $value, int | string $key): array => [ |
|
559 | 559 | $key => '<bdi>' . e($key) . '</bdi> (' . I18N::number($value) . ')', |
560 | 560 | ]) |
561 | 561 | ->implode(I18N::$list_separator); |
@@ -580,7 +580,7 @@ discard block |
||
580 | 580 | public function commonGivenMale(string $threshold = '1', string $limit = '10'): string |
581 | 581 | { |
582 | 582 | return $this->data->commonGivenNames('M', (int) $threshold, (int) $limit) |
583 | - ->mapWithKeys(static fn (int $value, int|string $key): array => [ |
|
583 | + ->mapWithKeys(static fn (int $value, int | string $key): array => [ |
|
584 | 584 | $key => '<bdi>' . e($key) . '</bdi>', |
585 | 585 | ]) |
586 | 586 | ->implode(I18N::$list_separator); |
@@ -613,7 +613,7 @@ discard block |
||
613 | 613 | public function commonGivenMaleTotals(string $threshold = '1', string $limit = '10'): string |
614 | 614 | { |
615 | 615 | return $this->data->commonGivenNames('M', (int) $threshold, (int) $limit) |
616 | - ->mapWithKeys(static fn (int $value, int|string $key): array => [ |
|
616 | + ->mapWithKeys(static fn (int $value, int | string $key): array => [ |
|
617 | 617 | $key => '<bdi>' . e($key) . '</bdi> (' . I18N::number($value) . ')', |
618 | 618 | ]) |
619 | 619 | ->implode(I18N::$list_separator); |
@@ -622,7 +622,7 @@ discard block |
||
622 | 622 | public function commonGivenOther(string $threshold = '1', string $limit = '10'): string |
623 | 623 | { |
624 | 624 | return $this->data->commonGivenNames('X', (int) $threshold, (int) $limit) |
625 | - ->mapWithKeys(static fn (int $value, int|string $key): array => [ |
|
625 | + ->mapWithKeys(static fn (int $value, int | string $key): array => [ |
|
626 | 626 | $key => '<bdi>' . e($key) . '</bdi>', |
627 | 627 | ]) |
628 | 628 | ->implode(I18N::$list_separator); |
@@ -655,7 +655,7 @@ discard block |
||
655 | 655 | public function commonGivenOtherTotals(string $threshold = '1', string $limit = '10'): string |
656 | 656 | { |
657 | 657 | return $this->data->commonGivenNames('X', (int) $threshold, (int) $limit) |
658 | - ->mapWithKeys(static fn (int $value, int|string $key): array => [ |
|
658 | + ->mapWithKeys(static fn (int $value, int | string $key): array => [ |
|
659 | 659 | $key => '<bdi>' . e($key) . '</bdi> (' . I18N::number($value) . ')', |
660 | 660 | ]) |
661 | 661 | ->implode(I18N::$list_separator); |
@@ -672,7 +672,7 @@ discard block |
||
672 | 672 | public function commonGivenTotals(string $threshold = '1', string $limit = '10'): string |
673 | 673 | { |
674 | 674 | return $this->data->commonGivenNames('ALL', (int) $threshold, (int) $limit) |
675 | - ->mapWithKeys(static fn (int $value, int|string $key): array => [ |
|
675 | + ->mapWithKeys(static fn (int $value, int | string $key): array => [ |
|
676 | 676 | $key => '<bdi>' . e($key) . '</bdi> (' . I18N::number($value) . ')', |
677 | 677 | ]) |
678 | 678 | ->implode(I18N::$list_separator); |
@@ -681,7 +681,7 @@ discard block |
||
681 | 681 | public function commonGivenUnknown(string $threshold = '1', string $limit = '10'): string |
682 | 682 | { |
683 | 683 | return $this->data->commonGivenNames('U', (int) $threshold, (int) $limit) |
684 | - ->mapWithKeys(static fn (int $value, int|string $key): array => [ |
|
684 | + ->mapWithKeys(static fn (int $value, int | string $key): array => [ |
|
685 | 685 | $key => '<bdi>' . e($key) . '</bdi>', |
686 | 686 | ]) |
687 | 687 | ->implode(I18N::$list_separator); |
@@ -714,7 +714,7 @@ discard block |
||
714 | 714 | public function commonGivenUnknownTotals(string $threshold = '1', string $limit = '10'): string |
715 | 715 | { |
716 | 716 | return $this->data->commonGivenNames('U', (int) $threshold, (int) $limit) |
717 | - ->mapWithKeys(static fn (int $value, int|string $key): array => [ |
|
717 | + ->mapWithKeys(static fn (int $value, int | string $key): array => [ |
|
718 | 718 | $key => '<bdi>' . e($key) . '</bdi> (' . I18N::number($value) . ')', |
719 | 719 | ]) |
720 | 720 | ->implode(I18N::$list_separator); |
@@ -1215,7 +1215,7 @@ discard block |
||
1215 | 1215 | return (string) $user->id(); |
1216 | 1216 | } |
1217 | 1217 | |
1218 | - public function latestUserLoggedin(string|null $yes = null, string|null $no = null): string |
|
1218 | + public function latestUserLoggedin(string | null $yes = null, string | null $no = null): string |
|
1219 | 1219 | { |
1220 | 1220 | if ($this->data->isUserLoggedIn($this->data->latestUserId())) { |
1221 | 1221 | return $yes ?? I18N::translate('Yes'); |
@@ -1231,9 +1231,9 @@ discard block |
||
1231 | 1231 | return e($user->userName()); |
1232 | 1232 | } |
1233 | 1233 | |
1234 | - public function latestUserRegDate(string|null $format = null): string |
|
1234 | + public function latestUserRegDate(string | null $format = null): string |
|
1235 | 1235 | { |
1236 | - $format ??= I18N::dateFormat(); |
|
1236 | + $format ??= I18N::dateFormat(); |
|
1237 | 1237 | $user = $this->user_service->find($this->data->latestUserId()) ?? Auth::user(); |
1238 | 1238 | $timestamp = (int) $user->getPreference(UserInterface::PREF_TIMESTAMP_REGISTERED); |
1239 | 1239 | |
@@ -1244,9 +1244,9 @@ discard block |
||
1244 | 1244 | return Registry::timestampFactory()->make($timestamp)->format(strtr($format, ['%' => ''])); |
1245 | 1245 | } |
1246 | 1246 | |
1247 | - public function latestUserRegTime(string|null $format = null): string |
|
1247 | + public function latestUserRegTime(string | null $format = null): string |
|
1248 | 1248 | { |
1249 | - $format ??= I18N::timeFormat(); |
|
1249 | + $format ??= I18N::timeFormat(); |
|
1250 | 1250 | $user = $this->user_service->find($this->data->latestUserId()) ?? Auth::user(); |
1251 | 1251 | $timestamp = (int) $user->getPreference(UserInterface::PREF_TIMESTAMP_REGISTERED); |
1252 | 1252 |
@@ -32,7 +32,7 @@ discard block |
||
32 | 32 | { |
33 | 33 | private ServerRequestInterface $request; |
34 | 34 | |
35 | - private object|null $row = null; |
|
35 | + private object | null $row = null; |
|
36 | 36 | |
37 | 37 | public function __construct(ServerRequestInterface $request) |
38 | 38 | { |
@@ -89,7 +89,7 @@ discard block |
||
89 | 89 | |
90 | 90 | // Only update session once a minute to reduce contention on the session table. |
91 | 91 | if (date('Y-m-d H:i:s', time() - 60) > $this->row->session_time) { |
92 | - $updates['session_time'] = date('Y-m-d H:i:s'); |
|
92 | + $updates['session_time'] = date('Y-m-d H:i:s'); |
|
93 | 93 | } |
94 | 94 | |
95 | 95 | if ($updates !== []) { |
@@ -125,7 +125,7 @@ discard block |
||
125 | 125 | */ |
126 | 126 | public function isBetween(int $minimum, int $maximum): self |
127 | 127 | { |
128 | - $this->rules[] = static function (int|null $value) use ($minimum, $maximum): int|null { |
|
128 | + $this->rules[] = static function (int | null $value) use ($minimum, $maximum): int | null { |
|
129 | 129 | if (is_int($value) && $value >= $minimum && $value <= $maximum) { |
130 | 130 | return $value; |
131 | 131 | } |
@@ -143,7 +143,7 @@ discard block |
||
143 | 143 | */ |
144 | 144 | public function isInArray(array $values): self |
145 | 145 | { |
146 | - $this->rules[] = static fn (int|string|null $value): int|string|null => in_array($value, $values, true) ? $value : null; |
|
146 | + $this->rules[] = static fn (int | string | null $value): int | string | null => in_array($value, $values, true) ? $value : null; |
|
147 | 147 | |
148 | 148 | return $this; |
149 | 149 | } |
@@ -163,7 +163,7 @@ discard block |
||
163 | 163 | */ |
164 | 164 | public function isNotEmpty(): self |
165 | 165 | { |
166 | - $this->rules[] = static fn (string|null $value): string|null => $value !== null && $value !== '' ? $value : null; |
|
166 | + $this->rules[] = static fn (string | null $value): string | null => $value !== null && $value !== '' ? $value : null; |
|
167 | 167 | |
168 | 168 | return $this; |
169 | 169 | } |
@@ -175,7 +175,7 @@ discard block |
||
175 | 175 | { |
176 | 176 | $base_url = $this->request->getAttribute('base_url', ''); |
177 | 177 | |
178 | - $this->rules[] = static function (string|null $value) use ($base_url): string|null { |
|
178 | + $this->rules[] = static function (string | null $value) use ($base_url): string | null { |
|
179 | 179 | if ($value !== null) { |
180 | 180 | $value_info = parse_url($value); |
181 | 181 | $base_url_info = parse_url($base_url); |
@@ -204,7 +204,7 @@ discard block |
||
204 | 204 | */ |
205 | 205 | public function isTag(): self |
206 | 206 | { |
207 | - $this->rules[] = static function (string|null $value): string|null { |
|
207 | + $this->rules[] = static function (string | null $value): string | null { |
|
208 | 208 | if ($value !== null && preg_match('/^' . Gedcom::REGEX_TAG . '$/', $value) === 1) { |
209 | 209 | return $value; |
210 | 210 | } |
@@ -247,7 +247,7 @@ discard block |
||
247 | 247 | * |
248 | 248 | * @return bool |
249 | 249 | */ |
250 | - public function boolean(string $parameter, bool|null $default = null): bool |
|
250 | + public function boolean(string $parameter, bool | null $default = null): bool |
|
251 | 251 | { |
252 | 252 | $value = $this->parameters[$parameter] ?? null; |
253 | 253 | |
@@ -279,7 +279,7 @@ discard block |
||
279 | 279 | throw new HttpBadRequestException(I18N::translate('The parameter “%s” is missing.', $parameter)); |
280 | 280 | } |
281 | 281 | |
282 | - $callback = static fn (array|null $value, Closure $rule): array|null => $rule($value); |
|
282 | + $callback = static fn (array | null $value, Closure $rule): array | null => $rule($value); |
|
283 | 283 | |
284 | 284 | return array_reduce($this->rules, $callback, $value) ?? []; |
285 | 285 | } |
@@ -290,7 +290,7 @@ discard block |
||
290 | 290 | * |
291 | 291 | * @return float |
292 | 292 | */ |
293 | - public function float(string $parameter, float|null $default = null): float |
|
293 | + public function float(string $parameter, float | null $default = null): float |
|
294 | 294 | { |
295 | 295 | $value = $this->parameters[$parameter] ?? null; |
296 | 296 | |
@@ -300,7 +300,7 @@ discard block |
||
300 | 300 | $value = null; |
301 | 301 | } |
302 | 302 | |
303 | - $callback = static fn (float|null $value, Closure $rule): float|null => $rule($value); |
|
303 | + $callback = static fn (float | null $value, Closure $rule): float | null => $rule($value); |
|
304 | 304 | |
305 | 305 | $value = array_reduce($this->rules, $callback, $value) ?? $default; |
306 | 306 | |
@@ -317,7 +317,7 @@ discard block |
||
317 | 317 | * |
318 | 318 | * @return int |
319 | 319 | */ |
320 | - public function integer(string $parameter, int|null $default = null): int |
|
320 | + public function integer(string $parameter, int | null $default = null): int |
|
321 | 321 | { |
322 | 322 | $value = $this->parameters[$parameter] ?? null; |
323 | 323 | |
@@ -333,7 +333,7 @@ discard block |
||
333 | 333 | $value = null; |
334 | 334 | } |
335 | 335 | |
336 | - $callback = static fn (int|null $value, Closure $rule): int|null => $rule($value); |
|
336 | + $callback = static fn (int | null $value, Closure $rule): int | null => $rule($value); |
|
337 | 337 | |
338 | 338 | $value = array_reduce($this->rules, $callback, $value) ?? $default; |
339 | 339 | |
@@ -366,7 +366,7 @@ discard block |
||
366 | 366 | * |
367 | 367 | * @return string |
368 | 368 | */ |
369 | - public function string(string $parameter, string|null $default = null): string |
|
369 | + public function string(string $parameter, string | null $default = null): string |
|
370 | 370 | { |
371 | 371 | $value = $this->parameters[$parameter] ?? null; |
372 | 372 | |
@@ -374,9 +374,9 @@ discard block |
||
374 | 374 | $value = null; |
375 | 375 | } |
376 | 376 | |
377 | - $callback = static fn (string|null $value, Closure $rule): string|null => $rule($value); |
|
377 | + $callback = static fn (string | null $value, Closure $rule): string | null => $rule($value); |
|
378 | 378 | |
379 | - $value = array_reduce($this->rules, $callback, $value) ?? $default; |
|
379 | + $value = array_reduce($this->rules, $callback, $value) ?? $default; |
|
380 | 380 | |
381 | 381 | if ($value === null) { |
382 | 382 | throw new HttpBadRequestException(I18N::translate('The parameter “%s” is missing.', $parameter)); |
@@ -401,7 +401,7 @@ discard block |
||
401 | 401 | throw new HttpBadRequestException(I18N::translate('The parameter “%s” is missing.', $parameter)); |
402 | 402 | } |
403 | 403 | |
404 | - public function treeOptional(string $parameter = 'tree'): Tree|null |
|
404 | + public function treeOptional(string $parameter = 'tree'): Tree | null |
|
405 | 405 | { |
406 | 406 | $value = $this->parameters[$parameter] ?? null; |
407 | 407 |
@@ -101,7 +101,7 @@ discard block |
||
101 | 101 | $rows = $query |
102 | 102 | ->groupBy(['n_givn']) |
103 | 103 | ->pluck(new Expression('COUNT(DISTINCT n_id)'), 'n_givn') |
104 | - ->map(static fn (int|string $count): int => (int) $count); |
|
104 | + ->map(static fn (int | string $count): int => (int) $count); |
|
105 | 105 | |
106 | 106 | |
107 | 107 | $given_names = []; |
@@ -784,7 +784,7 @@ discard block |
||
784 | 784 | * |
785 | 785 | * @return object{id:string,year:int,fact:string,type:string}|null |
786 | 786 | */ |
787 | - private function firstEvent(array $events, bool $ascending): object|null |
|
787 | + private function firstEvent(array $events, bool $ascending): object | null |
|
788 | 788 | { |
789 | 789 | if ($events === []) { |
790 | 790 | $events = [ |
@@ -803,7 +803,7 @@ discard block |
||
803 | 803 | ->orderBy('d_julianday1', $ascending ? 'ASC' : 'DESC') |
804 | 804 | ->limit(1) |
805 | 805 | ->get() |
806 | - ->map(static fn (object $row): object => (object) [ |
|
806 | + ->map(static fn (object $row) : object => (object) [ |
|
807 | 807 | 'id' => $row->id, |
808 | 808 | 'year' => (int) $row->year, |
809 | 809 | 'fact' => $row->fact, |
@@ -916,14 +916,14 @@ discard block |
||
916 | 916 | return $date->display(); |
917 | 917 | } |
918 | 918 | |
919 | - public function isUserLoggedIn(int|null $user_id): bool |
|
919 | + public function isUserLoggedIn(int | null $user_id): bool |
|
920 | 920 | { |
921 | 921 | return $user_id !== null && DB::table('session') |
922 | 922 | ->where('user_id', '=', $user_id) |
923 | 923 | ->exists(); |
924 | 924 | } |
925 | 925 | |
926 | - public function latestUserId(): int|null |
|
926 | + public function latestUserId(): int | null |
|
927 | 927 | { |
928 | 928 | $user_id = DB::table('user') |
929 | 929 | ->select(['user.user_id']) |
@@ -1135,7 +1135,7 @@ discard block |
||
1135 | 1135 | /** |
1136 | 1136 | * @return object{individual:Individual,days:int}|null |
1137 | 1137 | */ |
1138 | - public function longlifeQuery(string $sex): object|null |
|
1138 | + public function longlifeQuery(string $sex): object | null |
|
1139 | 1139 | { |
1140 | 1140 | return $this->birthAndDeathQuery($sex) |
1141 | 1141 | ->orderBy('days', 'desc') |
@@ -1,20 +1,20 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | 3 | return array ( |
4 | - ' but the details are unknown' => ' but the details are unknown', |
|
5 | - '%H:%i:%s' => '%g:%i:%s %a', |
|
6 | - '%j %F %Y' => '%F %j, %Y', |
|
7 | - 'Asunción, Paraguay' => 'Asuncion, Paraguay', |
|
8 | - 'Bogotá, Colombia' => 'Bogota, Colombia', |
|
9 | - 'Ciudad Juárez, Mexico' => 'Ciudad Juarez, Mexico', |
|
10 | - 'Colonia Juárez, Mexico' => 'Colonia Juarez, Mexico', |
|
11 | - 'Curaçao' => 'Curacao', |
|
12 | - 'Córdoba, Argentina' => 'Cordoba, Argentina', |
|
13 | - 'Côte d’Ivoire' => 'Cote d’Ivoire', |
|
14 | - 'Réunion' => 'Reunion', |
|
15 | - 'Saint Barthélemy' => 'Saint Barthelemy', |
|
16 | - 'San José, Costa Rica' => 'San Jose, Costa Rica', |
|
17 | - 'São Paulo, Brazil' => 'Sao Paulo, Brazil', |
|
18 | - 'Tuxtla Gutiérrez, Mexico' => 'Tuxtla Gutierrez, Mexico', |
|
19 | - 'Åland Islands' => 'Aland Islands', |
|
4 | + ' but the details are unknown' => ' but the details are unknown', |
|
5 | + '%H:%i:%s' => '%g:%i:%s %a', |
|
6 | + '%j %F %Y' => '%F %j, %Y', |
|
7 | + 'Asunción, Paraguay' => 'Asuncion, Paraguay', |
|
8 | + 'Bogotá, Colombia' => 'Bogota, Colombia', |
|
9 | + 'Ciudad Juárez, Mexico' => 'Ciudad Juarez, Mexico', |
|
10 | + 'Colonia Juárez, Mexico' => 'Colonia Juarez, Mexico', |
|
11 | + 'Curaçao' => 'Curacao', |
|
12 | + 'Córdoba, Argentina' => 'Cordoba, Argentina', |
|
13 | + 'Côte d’Ivoire' => 'Cote d’Ivoire', |
|
14 | + 'Réunion' => 'Reunion', |
|
15 | + 'Saint Barthélemy' => 'Saint Barthelemy', |
|
16 | + 'San José, Costa Rica' => 'San Jose, Costa Rica', |
|
17 | + 'São Paulo, Brazil' => 'Sao Paulo, Brazil', |
|
18 | + 'Tuxtla Gutiérrez, Mexico' => 'Tuxtla Gutierrez, Mexico', |
|
19 | + 'Åland Islands' => 'Aland Islands', |
|
20 | 20 | ); |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -return array ( |
|
3 | +return array( |
|
4 | 4 | ' but the details are unknown' => ' but the details are unknown', |
5 | 5 | '%H:%i:%s' => '%g:%i:%s %a', |
6 | 6 | '%j %F %Y' => '%F %j, %Y', |
@@ -81,10 +81,10 @@ |
||
81 | 81 | 'dbcert' => $this->stringOption(input: $input, name: 'dbcert'), |
82 | 82 | 'dbca' => $this->stringOption(input: $input, name: 'dbca'), |
83 | 83 | 'dbverify' => $this->boolOption(input: $input, name: 'dbverify') ? '1' : '0', |
84 | - 'tblpfx' => $this->stringOption(input: $input, name: 'tblpfx'), |
|
85 | - 'base_url' => rtrim(string: $this->stringOption(input: $input, name: 'base-url'), characters: '/'), |
|
86 | - 'rewrite_urls' => $this->boolOption(input: $input, name: 'rewrite-urls') ? '1' : '0', |
|
87 | - 'block_asn' => $this->stringOption(input: $input, name: 'block-asn'), |
|
84 | + 'tblpfx' => $this->stringOption(input : $input, name : 'tblpfx'), |
|
85 | + 'base_url' => rtrim(string : $this->stringOption(input : $input, name : 'base-url'), characters : '/'), |
|
86 | + 'rewrite_urls' => $this->boolOption(input : $input, name : 'rewrite-urls') ? '1' : '0', |
|
87 | + 'block_asn' => $this->stringOption(input : $input, name : 'block-asn'), |
|
88 | 88 | ]; |
89 | 89 | |
90 | 90 | foreach ($config as $key => $value) { |