Conditions | 2 |
Paths | 2 |
Total Lines | 10 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Tests | 4 |
CRAP Score | 2.032 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
16 | 1 | public function createClient(array $config = []) |
|
17 | { |
||
18 | 1 | if (!class_exists('Http\Adapter\Guzzle6\Client')) { |
|
19 | throw new \LogicException('To use the Guzzle6 adapter you need to install the "php-http/guzzle6-adapter" package.'); |
||
20 | } |
||
21 | |||
22 | 1 | $client = new Client($config); |
|
23 | |||
24 | 1 | return new Adapter($client); |
|
25 | } |
||
26 | } |
||
27 |