fix gitlab tests

This commit is contained in:
root
2026-06-09 02:32:58 -04:00
parent 20a0b6c4e5
commit 6def9993da
1489 changed files with 10449 additions and 11356 deletions
@@ -6,7 +6,9 @@ use App\Services\PhoneFormatterService;
class RegistrationFormatterService
{
public function __construct(private PhoneFormatterService $phoneFormatter) {}
public function __construct(private PhoneFormatterService $phoneFormatter)
{
}
public function format(array $payload): array
{
@@ -28,7 +30,7 @@ class RegistrationFormatterService
'accept_school_policy' => (int) ($payload['accept_school_policy'] ?? 0),
];
$noSecondInfo = ! empty($payload['no_second_parent_info']);
$noSecondInfo = !empty($payload['no_second_parent_info']);
$secondFirstname = $this->formatName($g('second_firstname'));
$secondLastname = $this->formatName($g('second_lastname'));
@@ -36,7 +38,7 @@ class RegistrationFormatterService
$secondEmail = $this->formatEmail($g('second_email'));
$secondCellphone = $this->phoneFormatter->formatPhoneNumber($g('second_cellphone'));
$secondProvided = ! $noSecondInfo && (
$secondProvided = !$noSecondInfo && (
$secondFirstname !== '' ||
$secondLastname !== '' ||
$secondGender !== '' ||
@@ -62,7 +64,7 @@ class RegistrationFormatterService
return '';
}
return ucwords(strtolower($name), ' -');
return ucwords(strtolower($name), " -");
}
private function formatEmail(string $email): string