Skip to content

A self-hosted media server and file management system

chore: lint coding style (pint)

aminnausin4717683cb594
diff --git a/app/Http/Resources/Pulse/ScheduleResource.php b/app/Http/Resources/Pulse/ScheduleResource.php
index 311118d5..88cf4f15 100644
--- a/app/Http/Resources/Pulse/ScheduleResource.php
+++ b/app/Http/Resources/Pulse/ScheduleResource.php
@@ -30,7 +30,7 @@ class ScheduleResource extends PulseResource {
$timezone = new DateTimeZone(config('app.timezone')); // @phpstan-ignore-line
return collect($schedule->events())
- ->map(fn(Event $event): array => [
+ ->map(fn (Event $event): array => [
'command' => $this->getCommand($event),
'expression' => $this->getExpression($event),
'next_due' => $this->getNextDueDateForEvent($event, $timezone)
diff --git a/app/Traits/HasPeriod.php b/app/Traits/HasPeriod.php
index 2aca87c0..09e03b27 100644
--- a/app/Traits/HasPeriod.php
+++ b/app/Traits/HasPeriod.php
@@ -23,12 +23,12 @@ trait HasPeriod {
[$fullMatch, $value, $unit] = $matches;
$result = match ($unit) {
- 'hour', 'hours' => CarbonInterval::hours($value),
- 'day', 'days' => CarbonInterval::days($value),
- 'week', 'weeks' => CarbonInterval::weeks($value),
+ 'hour', 'hours' => CarbonInterval::hours($value),
+ 'day', 'days' => CarbonInterval::days($value),
+ 'week', 'weeks' => CarbonInterval::weeks($value),
'month', 'months' => CarbonInterval::months($value),
- 'year', 'years' => CarbonInterval::years($value),
- default => CarbonInterval::hours(1),
+ 'year', 'years' => CarbonInterval::years($value),
+ default => CarbonInterval::hours(1),
};
return $result;