| Conditions | 4 |
| Paths | 4 |
| Total Lines | 11 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| 1 | <?php namespace Modules\Core\Internationalisation; |
||
| 57 | private static function saveTranslatedProperties($model, $data) |
||
| 58 | { |
||
| 59 | foreach ($data as $lang => $value) { |
||
| 60 | if (is_array($value)) { |
||
| 61 | foreach ($value as $key => $input) { |
||
| 62 | $model->translate($lang)->$key = $input; |
||
| 63 | } |
||
| 64 | } |
||
| 65 | } |
||
| 66 | $model->save(); |
||
| 67 | } |
||
| 68 | } |
||
| 69 |