| Conditions | 3 |
| Paths | 4 |
| Total Lines | 14 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 13 | protected function newRow($total, $index, $record, $attributes, $content) |
||
| 14 | { |
||
| 15 | if (!isset($attributes['class'])) { |
||
| 16 | $attributes['class'] = ''; |
||
| 17 | } |
||
| 18 | |||
| 19 | if ($record->IsSpam) { |
||
| 20 | $attributes['class'] .= ' spam'; |
||
| 21 | } |
||
| 22 | |||
| 23 | return HTML::createTag( |
||
| 24 | 'tr', |
||
| 25 | $attributes, |
||
| 26 | $content |
||
| 27 | ); |
||
| 30 |