@@ -1069,7 +1069,7 @@ |
||
1069 | 1069 | * @param Expression|string $column |
1070 | 1070 | * @param array<string> $search_terms |
1071 | 1071 | */ |
1072 | - private function whereSearch(Builder $query, Expression|string $column, array $search_terms): void |
|
1072 | + private function whereSearch(Builder $query, Expression | string $column, array $search_terms): void |
|
1073 | 1073 | { |
1074 | 1074 | foreach ($search_terms as $search_term) { |
1075 | 1075 | $query->where($column, DB::iLike(), '%' . addcslashes($search_term, '\\%_') . '%'); |
@@ -35,9 +35,9 @@ discard block |
||
35 | 35 | private readonly bool $unsigned = false, |
36 | 36 | private readonly bool $fixed = false, |
37 | 37 | private readonly bool $nullable = false, |
38 | - private readonly float|int|string|null $default = null, |
|
38 | + private readonly float | int | string | null $default = null, |
|
39 | 39 | private readonly bool $autoincrement = false, |
40 | - private readonly string|null $collation = null, |
|
40 | + private readonly string | null $collation = null, |
|
41 | 41 | ) { |
42 | 42 | parent::__construct( |
43 | 43 | name: $name, |
@@ -73,7 +73,7 @@ discard block |
||
73 | 73 | ); |
74 | 74 | } |
75 | 75 | |
76 | - public function default(float|int|string $default): self |
|
76 | + public function default(float | int | string $default): self |
|
77 | 77 | { |
78 | 78 | return new self( |
79 | 79 | name: $this->name, |
@@ -32,7 +32,7 @@ |
||
32 | 32 | /** |
33 | 33 | * @param array<int,string> $columns |
34 | 34 | */ |
35 | - public function __construct(private readonly array $columns, string|null $name = null) |
|
35 | + public function __construct(private readonly array $columns, string | null $name = null) |
|
36 | 36 | { |
37 | 37 | parent::__construct(name: $name, columns: $this->columns, isUnique: true); |
38 | 38 | } |
@@ -240,7 +240,7 @@ |
||
240 | 240 | /** |
241 | 241 | * Run the application. |
242 | 242 | */ |
243 | - public function run(string $php_sapi): int|ResponseInterface |
|
243 | + public function run(string $php_sapi): int | ResponseInterface |
|
244 | 244 | { |
245 | 245 | if ($php_sapi === 'cli') { |
246 | 246 | return $this->bootstrap()->cliRequest(); |
@@ -72,11 +72,11 @@ |
||
72 | 72 | $user->realName(), |
73 | 73 | $user->email(), |
74 | 74 | Auth::isAdmin(user: $user) ? 'Yes' : 'No', |
75 | - $user->getPreference(setting_name: UserInterface::PREF_IS_ACCOUNT_APPROVED) ? 'Yes' : 'No', |
|
76 | - $user->getPreference(setting_name: UserInterface::PREF_IS_EMAIL_VERIFIED) ? 'Yes' : 'No', |
|
77 | - $user->getPreference(setting_name: UserInterface::PREF_LANGUAGE), |
|
78 | - $user->getPreference(setting_name: UserInterface::PREF_TIME_ZONE), |
|
79 | - $user->getPreference(setting_name: UserInterface::PREF_CONTACT_METHOD), |
|
75 | + $user->getPreference(setting_name : UserInterface::PREF_IS_ACCOUNT_APPROVED) ? 'Yes' : 'No', |
|
76 | + $user->getPreference(setting_name : UserInterface::PREF_IS_EMAIL_VERIFIED) ? 'Yes' : 'No', |
|
77 | + $user->getPreference(setting_name : UserInterface::PREF_LANGUAGE), |
|
78 | + $user->getPreference(setting_name : UserInterface::PREF_TIME_ZONE), |
|
79 | + $user->getPreference(setting_name : UserInterface::PREF_CONTACT_METHOD), |
|
80 | 80 | $registered, |
81 | 81 | $last_login, |
82 | 82 | ]); |
@@ -88,7 +88,7 @@ discard block |
||
88 | 88 | $mime_type = Mime::DEFAULT_TYPE; |
89 | 89 | } |
90 | 90 | |
91 | - $filename = $download ? addcslashes(string: basename(path: $path), characters: '"') : ''; |
|
91 | + $filename = $download ? addcslashes(string : basename(path : $path), characters : '"') : ''; |
|
92 | 92 | |
93 | 93 | return $this->imageResponse(data: $filesystem->read(location: $path), mime_type: $mime_type, filename: $filename); |
94 | 94 | } catch (UnableToReadFile | FilesystemException $ex) { |
@@ -147,7 +147,7 @@ discard block |
||
147 | 147 | $image = $this->imageManager()->read(input: $filesystem->readStream($path)); |
148 | 148 | $watermark = $this->createWatermark(width: $image->width(), height: $image->height(), media_file: $media_file); |
149 | 149 | $image = $this->addWatermark(image: $image, watermark: $watermark); |
150 | - $filename = $download ? basename(path: $path) : ''; |
|
150 | + $filename = $download ? basename(path : $path) : ''; |
|
151 | 151 | $quality = $this->extractImageQuality(image: $image, default: static::GD_DEFAULT_IMAGE_QUALITY); |
152 | 152 | $data = $image->encodeByMediaType(type: $mime_type, quality: $quality)->toString(); |
153 | 153 |
@@ -3,19 +3,19 @@ |
||
3 | 3 | declare(strict_types=1); |
4 | 4 | |
5 | 5 | return array ( |
6 | - '%H:%i:%s' => '%g:%i:%s %a', |
|
7 | - '%j %F %Y' => '%F %j, %Y', |
|
8 | - 'Asunción, Paraguay' => 'Asuncion, Paraguay', |
|
9 | - 'Bogotá, Colombia' => 'Bogota, Colombia', |
|
10 | - 'Ciudad Juárez, Mexico' => 'Ciudad Juarez, Mexico', |
|
11 | - 'Colonia Juárez, Mexico' => 'Colonia Juarez, Mexico', |
|
12 | - 'Curaçao' => 'Curacao', |
|
13 | - 'Córdoba, Argentina' => 'Cordoba, Argentina', |
|
14 | - 'Côte d’Ivoire' => 'Cote d’Ivoire', |
|
15 | - 'Réunion' => 'Reunion', |
|
16 | - 'Saint Barthélemy' => 'Saint Barthelemy', |
|
17 | - 'San José, Costa Rica' => 'San Jose, Costa Rica', |
|
18 | - 'São Paulo, Brazil' => 'Sao Paulo, Brazil', |
|
19 | - 'Tuxtla Gutiérrez, Mexico' => 'Tuxtla Gutierrez, Mexico', |
|
20 | - 'Åland Islands' => 'Aland Islands', |
|
6 | + '%H:%i:%s' => '%g:%i:%s %a', |
|
7 | + '%j %F %Y' => '%F %j, %Y', |
|
8 | + 'Asunción, Paraguay' => 'Asuncion, Paraguay', |
|
9 | + 'Bogotá, Colombia' => 'Bogota, Colombia', |
|
10 | + 'Ciudad Juárez, Mexico' => 'Ciudad Juarez, Mexico', |
|
11 | + 'Colonia Juárez, Mexico' => 'Colonia Juarez, Mexico', |
|
12 | + 'Curaçao' => 'Curacao', |
|
13 | + 'Córdoba, Argentina' => 'Cordoba, Argentina', |
|
14 | + 'Côte d’Ivoire' => 'Cote d’Ivoire', |
|
15 | + 'Réunion' => 'Reunion', |
|
16 | + 'Saint Barthélemy' => 'Saint Barthelemy', |
|
17 | + 'San José, Costa Rica' => 'San Jose, Costa Rica', |
|
18 | + 'São Paulo, Brazil' => 'Sao Paulo, Brazil', |
|
19 | + 'Tuxtla Gutiérrez, Mexico' => 'Tuxtla Gutierrez, Mexico', |
|
20 | + 'Åland Islands' => 'Aland Islands', |
|
21 | 21 | ); |
@@ -2,7 +2,7 @@ |
||
2 | 2 | |
3 | 3 | declare(strict_types=1); |
4 | 4 | |
5 | -return array ( |
|
5 | +return array( |
|
6 | 6 | '%H:%i:%s' => '%g:%i:%s %a', |
7 | 7 | '%j %F %Y' => '%F %j, %Y', |
8 | 8 | 'Asunción, Paraguay' => 'Asuncion, Paraguay', |
@@ -74,7 +74,7 @@ discard block |
||
74 | 74 | * |
75 | 75 | * @return TValue|null |
76 | 76 | */ |
77 | - public function first(Closure|null $closure = null): mixed |
|
77 | + public function first(Closure | null $closure = null): mixed |
|
78 | 78 | { |
79 | 79 | foreach ($this->getArrayCopy() as $value) { |
80 | 80 | if ($closure === null || $closure($value)) { |
@@ -90,7 +90,7 @@ discard block |
||
90 | 90 | * |
91 | 91 | * @return TValue|null |
92 | 92 | */ |
93 | - public function last(Closure|null $closure = null): mixed |
|
93 | + public function last(Closure | null $closure = null): mixed |
|
94 | 94 | { |
95 | 95 | return $this->reverse()->first(closure: $closure); |
96 | 96 | } |
@@ -65,7 +65,7 @@ discard block |
||
65 | 65 | /** |
66 | 66 | * Find the father of an individual |
67 | 67 | */ |
68 | - public function father(Individual $individual): Individual|null |
|
68 | + public function father(Individual $individual): Individual | null |
|
69 | 69 | { |
70 | 70 | $family = $individual->childFamilies()->first(); |
71 | 71 | |
@@ -79,7 +79,7 @@ discard block |
||
79 | 79 | /** |
80 | 80 | * Find the mother of an individual |
81 | 81 | */ |
82 | - public function mother(Individual $individual): Individual|null |
|
82 | + public function mother(Individual $individual): Individual | null |
|
83 | 83 | { |
84 | 84 | $family = $individual->childFamilies()->first(); |
85 | 85 | |
@@ -93,7 +93,7 @@ discard block |
||
93 | 93 | /** |
94 | 94 | * Find the current spouse family of an individual |
95 | 95 | */ |
96 | - public function spouseFamily(Individual $individual): Family|null |
|
96 | + public function spouseFamily(Individual $individual): Family | null |
|
97 | 97 | { |
98 | 98 | return $individual->spouseFamilies() |
99 | 99 | // Exclude families that were created after this census date |