| Conditions | 3 |
| Paths | 3 |
| Total Lines | 12 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php namespace Modules\Translation\ValueObjects; |
||
| 21 | private function reArrangeTranslations(array $translationsRaw) |
||
| 22 | { |
||
| 23 | $translations = []; |
||
| 24 | |||
| 25 | foreach ($translationsRaw as $locale => $translationGroup) { |
||
| 26 | foreach ($translationGroup as $key => $translation) { |
||
| 27 | $translations[$key][$locale] = $translation; |
||
| 28 | } |
||
| 29 | } |
||
| 30 | |||
| 31 | return new Collection($translations); |
||
| 32 | } |
||
| 33 | |||
| 52 |