| Conditions | 3 |
| Paths | 3 |
| Total Lines | 10 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 43 | protected function guardAgainstInvalidConfiguration(array $config = null) |
||
| 44 | { |
||
| 45 | if (empty($config['calendar_id'])) { |
||
| 46 | throw InvalidConfiguration::calendarIdNotSpecified(); |
||
| 47 | } |
||
| 48 | |||
| 49 | if (! file_exists($config['service_account_credentials_json'])) { |
||
| 50 | throw InvalidConfiguration::credentialsJsonDoesNotExist($config['service_account_credentials_json']); |
||
| 51 | } |
||
| 52 | } |
||
| 53 | } |
||
| 54 |