Conditions | 1 |
Paths | 1 |
Total Lines | 11 |
Code Lines | 8 |
Lines | 11 |
Ratio | 100 % |
Tests | 0 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
32 | View Code Duplication | public function __construct(Url $url, $proto = 'HTTP/1.1', $timeout = 10) |
|
33 | { |
||
34 | parent::__construct($url); |
||
35 | |||
36 | $this->setTimeout($timeout); |
||
37 | $this->setPath($url->getPath()); |
||
38 | $this->setProtocol($proto); |
||
39 | $this->setQueryString($url->getQueryString()); |
||
40 | $this->reset(); |
||
41 | $this->resetHeaders(); |
||
42 | } |
||
43 | |||
53 | } |