| Conditions | 5 |
| Paths | 6 |
| Total Lines | 10 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 31 | public function getCellContent($entity) |
||
| 32 | { |
||
| 33 | $obj = $this->getCellValue($entity); |
||
| 34 | if (is_object($obj)) { |
||
| 35 | $result = $obj->{'get' . ucfirst($this->labelAttribute)}(); |
||
| 36 | return $this->format === 'html' |
||
| 37 | ? $result |
||
| 38 | : htmlspecialchars($result); |
||
| 39 | } |
||
| 40 | return is_string($obj) ? (empty($obj) ? $this->emptyValue : $obj) : $this->emptyValue; |
||
| 41 | } |
||
| 59 |