| Conditions | 1 | 
| Paths | 1 | 
| Total Lines | 15 | 
| Code Lines | 11 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Tests | 12 | 
| CRAP Score | 1 | 
| Changes | 1 | ||
| Bugs | 0 | Features | 0 | 
| 1 | <?php | ||
| 31 | 1 | public function indexAction() : object | |
| 32 |     { | ||
| 33 | 1 | $host = null; | |
|  | |||
| 34 | 1 | $title = "Ip validator"; | |
| 35 | 1 |         $page = $this->di->get("page"); | |
| 36 | 1 |         $request = $this->di->get("request"); | |
| 37 | 1 | $this->object = new IpValidate(); | |
| 38 | |||
| 39 | 1 |         $this->openWeatherMapModel = $this->di->get("openWeatherMap"); | |
| 40 | 1 | $host = $this->object->getDomain($this->ipAddress); | |
| 41 | 1 | $data["host"] = $host; | |
| 42 | |||
| 43 | 1 |         $page->add("weather/index", $data); | |
| 44 | 1 | return $page->render([ | |
| 45 | 1 | "title" => $title, | |
| 46 | ]); | ||
| 49 |