| Conditions | 2 |
| Paths | 2 |
| Total Lines | 7 |
| Code Lines | 3 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 4 |
| CRAP Score | 2 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 37 | 33 | protected function getResponse($uri, array $headers = [], $method = 'GET') |
|
| 38 | { |
||
| 39 | 33 | if (!$this->httpClient) { |
|
| 40 | 33 | $this->httpClient = new HttpClient($this->getHostName(), $this->getCachingProxyPort()); |
|
| 41 | } |
||
| 42 | |||
| 43 | 33 | return $this->httpClient->getResponse($uri, $headers, $method); |
|
| 44 | } |
||
| 60 |