| Conditions | 1 |
| Paths | 1 |
| Total Lines | 11 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 23 | public function indexActionPost() |
||
| 24 | { |
||
| 25 | $request = $this->di->get('request'); |
||
| 26 | $curl = $this->di->get('curl'); |
||
| 27 | |||
| 28 | $ipAddr = (new IpLocator($request->getPost('ip')))->locateIp(); |
||
| 29 | $type = $request->getPost('type'); |
||
| 30 | $coords = $request->getPost('coords'); |
||
| 31 | $result = (new Weather)->processRequest($ipAddr, $coords, $type, $curl); |
||
| 32 | |||
| 33 | return $this->indexAction($result); |
||
| 34 | } |
||
| 36 |