• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

tito10047 / php-calendar / 28423919883
84%
main: 84%

Build:
Build:
LAST BUILD BRANCH: v2.0.0-beta.1
DEFAULT BRANCH: main
Ran 30 Jun 2026 06:04AM UTC
Jobs 1
Files 20
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

30 Jun 2026 05:52AM UTC coverage: 83.159% (-0.002%) from 83.161%
28423919883

push

github

tito10047
feat: replace DayName week-start with WeekStart enum, clean modular arithmetic

Introduce WeekStart enum (Monday/Saturday/Sunday) to replace DayName as the
week-start parameter throughout the public API. CalendarType::getStartDate and
getEndDate are rewritten with pure modular arithmetic — no more PHP string
manipulation chains and no more bug where Monthly ignored $firstDay entirely.

WeekStart::lastDayIsoNumber() computes the last ISO weekday of a week using
(value + 5) % 7 + 1, which is exact and branch-free for all three cases.
DaysGeneratorInterface, Calendar, CalendarInterface, and CalendarConfig are
updated accordingly. Three new CalendarTypeTest cases cover Sunday and
Saturday starts.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

25 of 26 new or added lines in 2 files covered. (96.15%)

637 of 766 relevant lines covered (83.16%)

7.42 hits per line

Uncovered Changes

Lines Coverage ∆ File
1
50.0
src/Enum/WeekStart.php
Jobs
ID Job ID Ran Files Coverage
1 28423919883.1 30 Jun 2026 06:04AM UTC 20
83.16
GitHub Action Run
Source Files on build 28423919883
  • Tree
  • List 20
  • Changed 5
  • Source Changed 0
  • Coverage Changed 5
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • e06bccf3 on github
  • Prev Build on feature/v2-roadmap (#28422459339)
  • Next Build on feature/v2-roadmap (#28430519579)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc