| Conditions | 2 |
| Paths | 1 |
| Total Lines | 10 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 64 | 2 | public function get($path, array $options = []) |
|
| 65 | { |
||
| 66 | 2 | $options['headers'] = array_merge( |
|
| 67 | 2 | ['User-Agent' => $this->app_client], |
|
| 68 | 2 | isset($options['headers']) ? $options['headers'] : [] |
|
| 69 | 2 | ); |
|
| 70 | |||
| 71 | 2 | $response = $this->client->request('GET', $this->host.$this->prefix.$path, $options); |
|
| 72 | |||
| 73 | 2 | return $this->detector->detect($response); |
|
| 74 | } |
||
| 76 |