| Conditions | 3 |
| Paths | 3 |
| Total Lines | 10 |
| Code Lines | 5 |
| 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 | if (! file_exists($config['service_account_credentials_json'])) { |
||
| 39 | throw InvalidConfiguration::credentialsJsonDoesNotExist($config['service_account_credentials_json']); |
||
| 40 | } |
||
| 41 | } |
||
| 42 | } |
||
| 43 |