| Conditions | 5 |
| Paths | 5 |
| Total Lines | 17 |
| Code Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 64 | private function readyToRecordNextEntry($today) |
||
| 65 | { |
||
| 66 | switch ($this->duty->cycle) { |
||
| 67 | case 'daily': |
||
| 68 | $this->recordNextEntry(); |
||
|
1 ignored issue
–
show
|
|||
| 69 | break; |
||
| 70 | case 'weekly': |
||
| 71 | if (Carbon::today()->startOfWeek()->format('Y-m-d') == $today) { |
||
| 72 | $this->recordNextEntry(); |
||
|
1 ignored issue
–
show
|
|||
| 73 | } |
||
| 74 | break; |
||
| 75 | default: //monthly |
||
| 76 | if (Carbon::today()->startOfMonth()->format('Y-m-d') == $today) { |
||
| 77 | $this->recordNextEntry(); |
||
|
1 ignored issue
–
show
|
|||
| 78 | } |
||
| 79 | } |
||
| 80 | } |
||
| 81 | } |
||
| 82 |
This check marks calls to methods that do not seem to exist on an object.
This is most likely the result of a method being renamed without all references to it being renamed likewise.