Conditions | 3 |
Paths | 4 |
Total Lines | 8 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 7 |
CRAP Score | 3 |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
34 | 1 | public function darkSkyMockAction() : Array |
|
35 | { |
||
36 | 1 | $darksky = new \Linder\Mock\DarkSkyMock(); |
|
37 | 1 | $url = $this->di->request->getCurrentUrl(); |
|
38 | 1 | $res = (strpos($url, "?exclude=currently,flags") || $this->di->request->getGet("type") == "past") ? |
|
39 | 1 | $darksky->getWeatherPast() : |
|
40 | 1 | $darksky->getWeatherComing(); |
|
41 | 1 | return $res; |
|
42 | } |
||
44 |