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