Skip to content

Commit 8cc2489

Browse files
committed
Formatting
1 parent a7b748f commit 8cc2489

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

src/Tags/Events.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,14 +42,14 @@ public function calendar(): Collection
4242
$month = $this->params->get('month', now()->englishMonth);
4343
$year = $this->params->get('year', now()->year);
4444

45-
$from = parse_date($month.' '.$year)->startOfMonth()->startOfWeek();
46-
$to = parse_date($month.' '.$year)->endOfMonth()->endOfWeek();
45+
$from = parse_date($month . ' ' . $year)->startOfMonth()->startOfWeek();
46+
$to = parse_date($month . ' ' . $year)->endOfMonth()->endOfWeek();
4747

4848
$occurrences = $this
4949
->generator()
5050
->between(from: $from, to: $to)
5151
->groupBy($this->spanningDays())
52-
->map(fn (EntryCollection $occurrences, string $date) => $this->day(date: $date, occurrences: $occurrences));
52+
->map(fn(EntryCollection $occurrences, string $date) => $this->day(date: $date, occurrences: $occurrences));
5353

5454
$days = $this->output($this->makeEmptyDates(from: $from, to: $to)->merge($occurrences)->values());
5555

@@ -153,7 +153,7 @@ private function day(string $date, EntryCollection $occurrences): array
153153

154154
return [
155155
'date' => $date,
156-
'dates'=> $occurrences,
156+
'dates' => $occurrences,
157157
'occurrences' => $occurrences,
158158
];
159159
}
@@ -266,7 +266,7 @@ private function spanningDays(): Closure
266266
$occurrence->end->endOfDay()
267267
)->toArray();
268268

269-
return collect($spanningDays)->map(fn (CarbonImmutable $date) => $date->toDateString())->all();
269+
return collect($spanningDays)->map(fn(CarbonImmutable $date) => $date->toDateString())->all();
270270
};
271271
}
272272
}

0 commit comments

Comments
 (0)