| Conditions | 1 |
| Paths | 1 |
| Total Lines | 13 |
| Code Lines | 9 |
| Lines | 13 |
| Ratio | 100 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 40 | View Code Duplication | public function __construct(Url $url, $proto = 'HTTP/1.1', $timeout = 10) |
|
| 41 | { |
||
| 42 | parent::__construct($url); |
||
| 43 | |||
| 44 | $this->secure = $url->getScheme() == 'https'; |
||
| 45 | |||
| 46 | $this->setTimeout($timeout); |
||
| 47 | $this->setPath($url->getPath()); |
||
| 48 | $this->setProtocol($proto); |
||
| 49 | $this->setQueryString($url->getQueryString()); |
||
| 50 | $this->reset(); |
||
| 51 | $this->resetHeaders(); |
||
| 52 | } |
||
| 53 | |||
| 68 |