| Conditions | 3 |
| Paths | 3 |
| Total Lines | 10 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 13 | public function loadTranslations(string $locale, string $group): array |
||
| 14 | { |
||
| 15 | foreach ($this->getConfiguredModelClass() as $model) { |
||
| 16 | $translation = $model::getTranslationsForGroup($locale, $group); |
||
| 17 | if (! empty($translation)) { |
||
| 18 | return $translation; |
||
| 19 | } |
||
| 20 | } |
||
| 21 | |||
| 22 | return []; |
||
| 23 | } |
||
| 35 |