Fix Laravel Pint formatting
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user