| Percentage | Lines | ||
|---|---|---|---|
| EverydayRule |
|
100 % | 27 |
| HourlyIntervalRuleTrait |
|
100 % | 44 |
| OnceDayRule |
|
100 % | 36 |
| RandSecondsRuleTrait |
|
100 % | 23 |
| SmartSleep |
|
100 % | 32 |
| HolidayRule |
|
100 % | 31 |
| OnceMonthRule |
|
100 % | 41 |
| OnceWeekRule |
|
100 % | 35 |
| SpecificDayRule |
|
100 % | 38 |
| WeekdayRule |
|
100 % | 31 |
| CRAP Score | Lines | ||
|---|---|---|---|
| SmartSleep::sleepForSeconds() | 3 | 11 | |
| HolidayRule::isMatched() | 3 | 8 | |
| SpecificDayRule::isMatched() | 3 | 8 | |
| WeekdayRule::isMatched() | 3 | 8 | |
| Schedule::matchedRule() | 3 | 10 | |
| EverydayRule::isMatched() | 2 | 4 | |
| Schedule::__construct() | 2 | 6 | |
| OnceDayRule::__construct() | 1 | 4 | |
| OnceDayRule::isMatched() | 1 | 6 | |
| OnceMonthRule::__construct() | 1 | 4 | |