Conditions | 5 |
Paths | 8 |
Total Lines | 20 |
Code Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Tests | 2 |
CRAP Score | 15.5468 |
Changes | 0 |
1 | <?php |
||
57 | public static function getCurrentSeasonRange($season = null) |
||
58 | { |
||
59 | if ($season === null) { |
||
60 | $season = self::getCurrentSeason(); |
||
61 | } |
||
62 | |||
63 | switch ($season) { |
||
64 | case self::WINTER: |
||
65 | return self::getWinterSeason(); |
||
66 | |||
67 | case self::SPRING: |
||
68 | 30 | return self::getSpringSeason(); |
|
69 | |||
70 | 30 | case self::SUMMER: |
|
71 | return self::getSummerSeason(); |
||
72 | |||
73 | default: |
||
74 | return self::getFallSeason(); |
||
75 | } |
||
76 | } |
||
77 | |||
98 |