Conditions | 1 |
Paths | 1 |
Total Lines | 13 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 2 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php namespace Arcanedev\Currencies\Http; |
||
24 | public function get($url) |
||
25 | { |
||
26 | $ch = curl_init(); |
||
27 | |||
28 | curl_setopt($ch, CURLOPT_URL, $url); |
||
29 | curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); |
||
30 | curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 10); |
||
31 | |||
32 | $data = curl_exec($ch); |
||
33 | curl_close($ch); |
||
34 | |||
35 | return $data; |
||
36 | } |
||
37 | } |
||
38 |