| Conditions | 3 |
| Paths | 4 |
| Total Lines | 12 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 5 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php |
||
| 40 | public static function extract(array $content, Translations $translations) |
||
| 41 | { |
||
| 42 | self::fromArray($content['messages'], $translations); |
||
| 43 | |||
| 44 | if (!empty($content['domain'])) { |
||
| 45 | $translations->setDomain($content['domain']); |
||
| 46 | } |
||
| 47 | |||
| 48 | if (!empty($content['plural-forms'])) { |
||
| 49 | $translations->setHeader(Translations::HEADER_PLURAL, $content['plural-forms']); |
||
| 50 | } |
||
| 51 | } |
||
| 52 | } |
||
| 53 |