| Conditions | 3 |
| Paths | 3 |
| Total Lines | 16 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 76 | private function hasProperty(string $property): bool |
||
| 77 | { |
||
| 78 | $value = $this->config->getLanguageProperty($property, $this->language); |
||
| 79 | |||
| 80 | if (empty($value)) { |
||
| 81 | $language = $this->language ?: $this->config->getLanguageDefault(); |
||
| 82 | |||
| 83 | throw new Exception(sprintf( |
||
| 84 | 'The property "%s" is empty for language "%s".', |
||
| 85 | $property, |
||
| 86 | $language |
||
| 87 | )); |
||
| 88 | } |
||
| 89 | |||
| 90 | return true; |
||
| 91 | } |
||
| 92 | } |
||
| 93 |