| Conditions | 2 |
| Paths | 2 |
| Total Lines | 9 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 6 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 28 | public static function get_unit_options() |
||
| 29 | { |
||
| 30 | $unit_options = midcom_baseclasses_components_configuration::get('org.openpsa.products', 'config')->get('unit_options'); |
||
| 31 | $l10n = midcom::get()->i18n->get_l10n('org.openpsa.products'); |
||
| 32 | $options = []; |
||
| 33 | foreach ($unit_options as $key => $name) { |
||
| 34 | $options[$key] = $l10n->get($name); |
||
| 35 | } |
||
| 36 | return $options; |
||
| 37 | } |
||
| 48 |