| Conditions | 3 |
| Paths | 3 |
| Total Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 32 | protected function guardAgainstInvalidConfiguration(array $config = null) |
||
| 33 | { |
||
| 34 | if (empty($config['calendar_id'])) { |
||
| 35 | throw InvalidConfiguration::calendarIdNotSpecified(); |
||
| 36 | } |
||
| 37 | |||
| 38 | $credentials = $config['service_account_credentials_json']; |
||
| 39 | |||
| 40 | if (!is_array($credentials) && !is_string($credentials)) { |
||
| 41 | throw InvalidConfiguration::credentialsTypeWrong($credentials) |
||
| 42 | } |
||
| 50 |