Conditions | 5 |
Paths | 8 |
Total Lines | 20 |
Code Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Tests | 6 |
CRAP Score | 6.6 |
Changes | 0 |
1 | <?php |
||
37 | 30 | public static function getCurrentSeasonRange($season = null) |
|
38 | { |
||
39 | 30 | if ($season === null) { |
|
40 | $season = self::getCurrentSeason(); |
||
41 | } |
||
42 | |||
43 | switch ($season) { |
||
44 | 30 | case self::WINTER: |
|
45 | return self::getWinterSeason(); |
||
46 | |||
47 | 30 | case self::SPRING: |
|
48 | return self::getSpringSeason(); |
||
49 | |||
50 | 30 | case self::SUMMER: |
|
51 | 30 | return self::getSummerSeason(); |
|
52 | |||
53 | default: |
||
54 | return self::getFallSeason(); |
||
55 | } |
||
56 | } |
||
57 | |||
78 |