| Conditions | 3 |
| Paths | 3 |
| Total Lines | 13 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 3 |
| Changes | 0 | ||
| 1 | <?php |
||
| 57 | 1 | public function get($path, array $options = []) |
|
| 58 | { |
||
| 59 | 1 | if ($this->app_client) { |
|
| 60 | 1 | $options['headers'] = isset($options['headers']) ? $options['headers'] : []; |
|
| 61 | 1 | $options['headers']['User-Agent'] = $this->app_client; |
|
| 62 | } |
||
| 63 | |||
| 64 | 1 | $response = $this->client->request('GET', $this->host.$path, $options); |
|
| 65 | |||
| 66 | 1 | $content = $response->getBody()->getContents(); |
|
| 67 | |||
| 68 | 1 | return $this->repair->repair($content); |
|
| 69 | } |
||
| 70 | } |
||
| 71 |