| Conditions | 2 |
| Paths | 2 |
| Total Lines | 14 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 6 |
| Changes | 0 | ||
| 1 | <?php |
||
| 37 | public function __construct(?HttpClient $client = null, array $config = []) |
||
| 38 | { |
||
| 39 | $this->httpClient = $client ?: GuzzleAdapter::createWithConfig( |
||
| 40 | array_replace_recursive( |
||
| 41 | [ |
||
| 42 | 'verify' => true, |
||
| 43 | 'headers' => [ |
||
| 44 | 'User-Agent' => 'PHPMOB-OMISE/' . OmiseApi::VERSION, |
||
| 45 | ], |
||
| 46 | ], |
||
| 47 | $config |
||
| 48 | ) |
||
| 49 | ); |
||
| 50 | } |
||
| 51 | |||
| 72 |