| Conditions | 3 |
| Paths | 3 |
| Total Lines | 14 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 18 | protected function validateConfig($config) |
||
| 19 | { |
||
| 20 | if (empty($config)) { |
||
| 21 | throw new MissingConfigException( |
||
| 22 | 'No config found' |
||
| 23 | ); |
||
| 24 | } |
||
| 25 | |||
| 26 | if (empty($config['type'])) { |
||
| 27 | throw new MissingConfigException( |
||
| 28 | 'No config key of "type" found in adaptor config array.' |
||
| 29 | ); |
||
| 30 | } |
||
| 31 | } |
||
| 32 | |||
| 42 | } |