| Conditions | 4 |
| Paths | 3 |
| Total Lines | 18 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 36 | public function expand($values) { |
||
| 37 | |||
| 38 | $return = array(); |
||
| 39 | foreach ($values as $value) { |
||
| 40 | if (is_array($value) && isset($this->fieldInfo['columns']['value2'])) { |
||
| 41 | $return[$this->language][] = array( |
||
| 42 | 'value' => $this->formatDateValue($value[0]), |
||
| 43 | 'value2' => $this->formatDateValue($value[1]), |
||
| 44 | ); |
||
| 45 | } |
||
| 46 | else { |
||
| 47 | $return[$this->language][] = array( |
||
| 48 | 'value' => $this->formatDateValue($value), |
||
| 49 | ); |
||
| 50 | } |
||
| 51 | } |
||
| 52 | return $return; |
||
| 53 | } |
||
| 54 | |||
| 56 |