fix gitlab tests
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user