Skip to content

Commit bed2131

Browse files
authored
Rename and snake case spansDay to spans_days (#147)
1 parent 1dcedc4 commit bed2131

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
@@ -175,7 +175,7 @@ private function output(callable $type): EntryCollection|LengthAwarePaginator
175175
return $occurrence
176176
->setSupplement('start', $start)
177177
->setSupplement('end', $end)
178-
->setSupplement('spansDay', ! $start->isSameDay($end));
178+
->setSupplement('spans_days', ! $start->isSameDay($end));
179179
});
180180
}
181181

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 "spansDay"', function () {
431+
it('sets "spans_days"', 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()->spansDay->toBeTrue();
457+
->first()->spans_days->toBeTrue();
458458
});

0 commit comments

Comments
 (0)