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
@@ -2,8 +2,8 @@
namespace App\Services\Frontend;
use App\Models\ContactUs;
use App\Models\Configuration;
use App\Models\ContactUs;
use App\Services\Email\EmailDispatchService;
use App\Services\System\GlobalConfigService;
use Illuminate\Support\Facades\Log;
@@ -13,8 +13,7 @@ class ContactSubmissionService
public function __construct(
private EmailDispatchService $emailService,
private GlobalConfigService $configService
) {
}
) {}
public function submit(array $payload): array
{
@@ -36,20 +35,20 @@ class ContactSubmissionService
'school_year' => $schoolYear ?: '2025-2026',
]);
} catch (\Throwable $e) {
Log::error('Contact submission save failed: ' . $e->getMessage());
Log::error('Contact submission save failed: '.$e->getMessage());
}
$recipient = Configuration::getConfig('administrator_email')
?: (string) config('mail.from.address', '')
?: 'alrahma.isgl@gmail.com';
$htmlMessage = nl2br('You have received a new message from ' . $email . ":\n\n" . $message);
$htmlMessage = nl2br('You have received a new message from '.$email.":\n\n".$message);
$emailSent = false;
if (!app()->runningUnitTests()) {
if (! app()->runningUnitTests()) {
$emailSent = $this->emailService->send($recipient, $subject, $htmlMessage, null, $email, $email);
if (!$emailSent) {
Log::error('Contact submission email failed for ' . $email);
if (! $emailSent) {
Log::error('Contact submission email failed for '.$email);
}
}