| Conditions | 2 |
| Paths | 2 |
| Total Lines | 8 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 3 |
| CRAP Score | 2.0625 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 37 | 1 | public function createClient(array $config = []) |
|
| 38 | { |
||
| 39 | 1 | if (!class_exists('Http\Client\Curl\Client')) { |
|
| 40 | throw new \LogicException('To use the Curl client you need to install the "php-http/curl-client" package.'); |
||
| 41 | } |
||
| 42 | |||
| 43 | 1 | return new Client($this->messageFactory, $this->streamFactory, $config); |
|
| 44 | } |
||
| 45 | } |
||
| 46 |