Fix Laravel Pint formatting

This commit is contained in:
root
2026-06-09 00:03:03 -04:00
parent 8d4d610b82
commit b5fd4a4ca1
1414 changed files with 11317 additions and 10201 deletions
@@ -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