| Conditions | 3 | 
| Paths | 4 | 
| Total Lines | 16 | 
| Code Lines | 9 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 3 | ||
| Bugs | 0 | Features | 1 | 
| 1 | <?php | ||
| 8 | protected function newRow($total, $index, $record, $attributes, $content) | ||
| 9 |     { | ||
| 10 |         if (!isset($attributes['class'])) { | ||
| 11 | $attributes['class'] = ''; | ||
| 12 | } | ||
| 13 | |||
| 14 |         if ($record->IsSpam) { | ||
| 15 | $attributes['class'] .= ' spam'; | ||
| 16 | } | ||
| 17 | |||
| 18 | return FormField::create_tag( | ||
| 19 | 'tr', | ||
| 20 | $attributes, | ||
| 21 | $content | ||
| 22 | ); | ||
| 23 | } | ||
| 24 | } | ||
| 25 | 
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.