Conditions | 2 |
Paths | 2 |
Total Lines | 11 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
67 | public function getEditForm($id = null, $fields = null) |
||
68 | { |
||
69 | $form = parent::getEditForm($id, $fields); |
||
70 | $class = $this->sanitiseClassName($this->modelClass); |
||
71 | if ($class == 'Location') { |
||
72 | $gridField = $form->Fields()->fieldByName($class); |
||
73 | $config = $gridField->getConfig(); |
||
74 | $config->removeComponentsByType('GridFieldDeleteAction'); |
||
75 | } |
||
76 | return $form; |
||
77 | } |
||
78 | } |
||
79 |
This check marks private properties in classes that are never used. Those properties can be removed.