Conditions | 3 |
Paths | 3 |
Total Lines | 14 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
26 | public function decorate(Cell $cell) |
||
27 | { |
||
28 | if (empty($cell->getUnescapedValue())) { |
||
29 | if ($this->placeholder instanceof \Closure) { |
||
30 | $cell->setValue($this->placeholder->call($cell->getColumn()->getGrid(), $cell->getData())); |
||
31 | } else { |
||
32 | $cell->setValue($this->placeholder); |
||
33 | } |
||
34 | |||
35 | return false; |
||
36 | } |
||
37 | |||
38 | return true; |
||
39 | } |
||
40 | } |
||
41 |