| Conditions | 3 |
| Paths | 2 |
| Total Lines | 12 |
| Code Lines | 6 |
| Lines | 12 |
| Ratio | 100 % |
| Tests | 7 |
| CRAP Score | 3 |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 27 | 28 | View Code Duplication | public function __construct(array $config, Client $client) |
| 28 | { |
||
| 29 | |||
| 30 | 28 | $this->client = $client; |
|
| 31 | |||
| 32 | 28 | if ($this->checkConfig($config) && !empty($client)) { |
|
| 33 | 24 | $this->config = $config; |
|
| 34 | 18 | } else { |
|
| 35 | 4 | throw new ConfigException(trans('messenger::errors.config_not_valid')); |
|
| 36 | } |
||
| 37 | |||
| 38 | 18 | } |
|
| 39 | |||
| 88 | } |