| Conditions | 5 |
| Paths | 6 |
| Total Lines | 18 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 30 |
| Changes | 3 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 39 | protected function validateConfig() |
||
| 40 | { |
||
| 41 | if (!isset($this->options['access_token'])) { |
||
| 42 | throw new UnexpectedValueException("Missing 'access_token' as option"); |
||
| 43 | } |
||
| 44 | |||
| 45 | if (!isset($this->options['client_identifier'])) { |
||
| 46 | throw new UnexpectedValueException("Missing 'client_identifier' as option"); |
||
| 47 | } |
||
| 48 | |||
| 49 | if (!isset($this->options['user_locale'])) { |
||
| 50 | $this->options['user_locale'] = null; |
||
| 51 | } |
||
| 52 | |||
| 53 | if (!isset($this->options['prefix'])) { |
||
| 54 | $this->options['prefix'] = null; |
||
| 55 | } |
||
| 56 | } |
||
| 57 | } |
||
| 58 |