| Conditions | 1 |
| Paths | 1 |
| Total Lines | 10 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 29 | public function execute() |
||
| 30 | { |
||
| 31 | $ch = curl_init(); |
||
| 32 | curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); |
||
| 33 | curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); |
||
| 34 | curl_setopt($ch, CURLOPT_URL, $this->endpoint); |
||
| 35 | $result = curl_exec($ch); |
||
| 36 | curl_close($ch); |
||
| 37 | |||
| 38 | return json_decode($result, true); |
||
|
|
|||
| 39 | } |
||
| 41 |