Conditions | 3 |
Paths | 3 |
Total Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
13 | public function expand($values) { |
||
14 | $return = []; |
||
15 | foreach ($values as $value) { |
||
16 | // Use the column name 'value' by default if the value is not an array. |
||
17 | if (!is_array($value)) { |
||
18 | $value = ['value' => $value]; |
||
19 | } |
||
20 | $return[$this->language][] = $value; |
||
21 | } |
||
22 | return $return; |
||
23 | } |
||
24 | |||
26 |