Fix Laravel Pint formatting

This commit is contained in:
root
2026-06-08 23:30:22 -04:00
parent 567dc24649
commit c792b8be05
1288 changed files with 10766 additions and 9669 deletions
@@ -13,8 +13,7 @@ class EventManagementService
public function __construct(
private EventChargeService $charges,
private InvoiceGenerationService $invoiceGeneration
) {
}
) {}
public function create(array $payload, ?UploadedFile $flyer, int $actorId): array
{
@@ -54,7 +53,7 @@ class EventManagementService
public function update(int $eventId, array $payload, ?UploadedFile $flyer): array
{
$event = Event::query()->find($eventId);
if (!$event) {
if (! $event) {
return ['ok' => false, 'message' => 'Event not found.'];
}
@@ -81,7 +80,7 @@ class EventManagementService
public function delete(int $eventId, int $actorId): array
{
$event = Event::query()->find($eventId);
if (!$event) {
if (! $event) {
return ['ok' => false, 'message' => 'Event not found.'];
}
@@ -99,7 +98,7 @@ class EventManagementService
private function storeFlyer(?UploadedFile $file): ?string
{
if (!$file || !$file->isValid()) {
if (! $file || ! $file->isValid()) {
return null;
}
@@ -120,13 +119,13 @@ class EventManagementService
}
$dir = public_path('uploads/event_flyers');
if (!File::exists($dir)) {
if (! File::exists($dir)) {
File::makeDirectory($dir, 0755, true);
}
$name = bin2hex(random_bytes(16)) . '.' . $allowed[$mime];
$name = bin2hex(random_bytes(16)).'.'.$allowed[$mime];
$file->move($dir, $name);
return 'event_flyers/' . $name;
return 'event_flyers/'.$name;
}
}