Conditions | 3 |
Paths | 2 |
Total Lines | 12 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 7 |
CRAP Score | 3 |
Changes | 0 |
1 | <?php |
||
87 | 4 | private function request($url, array $options) |
|
88 | { |
||
89 | 4 | if ($this->app_client) { |
|
90 | 4 | $options['headers'] = array_merge( |
|
91 | 4 | ['User-Agent' => $this->app_client], |
|
92 | 4 | isset($options['headers']) ? $options['headers'] : [] |
|
93 | ); |
||
94 | } |
||
95 | |||
96 | 4 | $response = $this->client->request('GET', $url, $options); |
|
97 | |||
98 | 4 | return $response->getBody()->getContents(); |
|
99 | } |
||
101 |