| Conditions | 4 |
| Paths | 4 |
| Total Lines | 14 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 8 |
| CRAP Score | 4 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 41 | 4 | protected function validateConfig() |
|
| 42 | { |
||
| 43 | 4 | if (!isset($this->options['account-name'])) { |
|
| 44 | 1 | throw new UnexpectedValueException("Missing 'account-name' as option"); |
|
| 45 | } |
||
| 46 | |||
| 47 | 3 | if (!isset($this->options['account-key'])) { |
|
| 48 | 1 | throw new UnexpectedValueException("Missing 'account-key' as option"); |
|
| 49 | } |
||
| 50 | |||
| 51 | 2 | if (!isset($this->options['container'])) { |
|
| 52 | 1 | throw new UnexpectedValueException("Missing 'container' as option"); |
|
| 53 | } |
||
| 54 | 1 | } |
|
| 55 | } |
||
| 56 |