| Conditions | 1 |
| Paths | 1 |
| Total Lines | 8 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 17 | public static function execute(string $endpoint) { |
||
| 18 | $ch = curl_init(); |
||
| 19 | curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); |
||
|
|
|||
| 20 | curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); |
||
| 21 | curl_setopt($ch, CURLOPT_URL, $endpoint); |
||
| 22 | $result = curl_exec($ch); |
||
| 23 | curl_close($ch); |
||
| 24 | return json_decode($result, true); |
||
| 25 | } |
||
| 27 |