| Conditions | 2 |
| Paths | 2 |
| Total Lines | 7 |
| Code Lines | 3 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 2 |
| CRAP Score | 2 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 15 | public function createClient(array $config = []): ClientInterface |
||
| 16 | { |
||
| 17 | if (! class_exists(Client::class)) { |
||
| 18 | throw new LogicException('To use the Guzzle6 adapter you need to install the "php-http/guzzle6-adapter" package.'); |
||
| 19 | 1 | } |
|
| 20 | |||
| 21 | 1 | return Client::createWithConfig($config); |
|
| 22 | } |
||
| 24 |