| Conditions | 1 |
| Paths | 1 |
| Total Lines | 16 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 10 |
| CRAP Score | 1 |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 45 | 2 | protected function curl_header($url) |
|
| 46 | { |
||
| 47 | 2 | $ch = curl_init(); |
|
| 48 | |||
| 49 | 2 | curl_setopt($ch, CURLOPT_URL, $url); |
|
| 50 | 2 | curl_setopt($ch, CURLOPT_HEADER, true); |
|
| 51 | 2 | curl_setopt($ch, CURLOPT_NOBODY, true); |
|
| 52 | 2 | curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); |
|
| 53 | 2 | curl_setopt($ch, CURLOPT_TIMEOUT, 10); |
|
| 54 | |||
| 55 | 2 | $info = curl_exec($ch); |
|
| 56 | |||
| 57 | 2 | curl_close($ch); |
|
| 58 | |||
| 59 | 2 | return $info; |
|
| 60 | } |
||
| 61 | } |
||
| 62 |