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