| Conditions | 2 | 
| Paths | 2 | 
| Total Lines | 10 | 
| Code Lines | 5 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 0 | ||
| 1 | <?php  | 
            ||
| 15 | public function getColumnContent($gridField, $record, $columnName)  | 
            ||
| 16 |     { | 
            ||
| 17 | $data = new ArrayData(array(  | 
            ||
| 18 |             'Link' => Controller::join_links($gridField->Link('item'), $record->ID, 'edit') | 
            ||
| 19 | ));  | 
            ||
| 20 | |||
| 21 | $template = $record->canEdit() ? 'GridFieldEditButton' : 'GridFieldViewButton';  | 
            ||
| 22 | |||
| 23 | return $data->renderWith($template);  | 
            ||
| 24 | }  | 
            ||
| 25 | }  | 
            ||
| 26 | 
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.