Fix Pint formatting
This commit is contained in:
@@ -6,9 +6,7 @@ use App\Services\PhoneFormatterService;
|
||||
|
||||
class RegistrationFormatterService
|
||||
{
|
||||
public function __construct(private PhoneFormatterService $phoneFormatter)
|
||||
{
|
||||
}
|
||||
public function __construct(private PhoneFormatterService $phoneFormatter) {}
|
||||
|
||||
public function format(array $payload): array
|
||||
{
|
||||
@@ -30,7 +28,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'));
|
||||
@@ -38,7 +36,7 @@ class RegistrationFormatterService
|
||||
$secondEmail = $this->formatEmail($g('second_email'));
|
||||
$secondCellphone = $this->phoneFormatter->formatPhoneNumber($g('second_cellphone'));
|
||||
|
||||
$secondProvided = !$noSecondInfo && (
|
||||
$secondProvided = ! $noSecondInfo && (
|
||||
$secondFirstname !== '' ||
|
||||
$secondLastname !== '' ||
|
||||
$secondGender !== '' ||
|
||||
@@ -64,7 +62,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