| Conditions | 5 |
| Paths | 4 |
| Total Lines | 10 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 13 | public function getCellContent($entity) |
||
| 14 | { |
||
| 15 | $value = $this->getCellValue($entity); |
||
| 16 | if ($value instanceof DateTime) { |
||
| 17 | return $value->format($this->dateFormat); |
||
| 18 | } elseif (is_string($value) && !empty($this->dateFormat)) { |
||
| 19 | return date($this->dateFormat, strtotime($value)); |
||
| 20 | } |
||
| 21 | $value = (string)$value; |
||
| 22 | return empty($value) ? $this->emptyValue : $value; |
||
| 23 | } |
||
| 41 |