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