Conditions | 4 |
Paths | 2 |
Total Lines | 8 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
15 | public function isWeekend(\DateTime $date) |
||
16 | { |
||
17 | if ($date instanceof \DateTime && ($date->format('N') == 6 || $date->format('N') == 7)) { |
||
1 ignored issue
–
show
|
|||
18 | return true; |
||
19 | } |
||
20 | |||
21 | return false; |
||
22 | } |
||
23 | } |
||
24 |