Conditions | 1 |
Paths | 1 |
Total Lines | 13 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
18 | public function doRequest() { |
||
19 | $url = 'https://www.mvg.de/.rest/betriebsaenderungen/api/interruptions'; |
||
20 | $client = new Client($url, array( |
||
21 | 'adapter' => 'Zend\Http\Client\Adapter\Curl', |
||
22 | 'curloptions' => array( |
||
23 | CURLOPT_FOLLOWLOCATION => TRUE, |
||
24 | CURLOPT_SSL_VERIFYPEER => FALSE |
||
25 | ) |
||
26 | ) |
||
27 | ); |
||
28 | $client->setMethod(\Zend\Http\Request::METHOD_GET); |
||
29 | return ZendJson::decode($client->send()->getBody()); |
||
30 | } |
||
31 | } |
||
36 |
This check looks
TODO
comments that have been left in the code.``TODO``s show that something is left unfinished and should be attended to.