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