Skip to content

Commit 458ac27

Browse files
committed
Rename spans_days to spanning
1 parent 54f3bc7 commit 458ac27

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/Events.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ private function output(callable $type): EntryCollection|LengthAwarePaginator
174174
return $occurrence
175175
->setSupplement('start', $start)
176176
->setSupplement('end', $end)
177-
->setSupplement('spans_days', ! $start->isSameDay($end));
177+
->setSupplement('spanning', ! $start->isSameDay($end));
178178
});
179179
}
180180

tests/Tags/EventsTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -428,7 +428,7 @@
428428
->first()->start->timezone->getName()->toBe('America/Vancouver');
429429
});
430430

431-
it('sets "spans_days"', function () {
431+
it('sets "spanning"', function () {
432432
Carbon::setTestNow(now()->setTimeFromTimeString('10:00'));
433433

434434
Entry::make()
@@ -454,5 +454,5 @@
454454
$occurrences = $this->tag->between();
455455

456456
expect($occurrences)->toHaveCount(1)
457-
->first()->spans_days->toBeTrue();
457+
->first()->spanning->toBeTrue();
458458
});

0 commit comments

Comments
 (0)