Conditions | 4 |
Paths | 4 |
Total Lines | 5 |
Code Lines | 3 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
20 | public function updateFormFields(FieldList $fields, $controller, $formName, $context) |
||
21 | { |
||
22 | $record = isset($context['Record']) ? $context['Record'] : null; |
||
23 | if ($record && $record->SalisfyID) { |
||
24 | $fields->insertAfter('LastEdited', ReadonlyField::create('SalisfyID', 'Salsify ID')); |
||
25 | } |
||
27 | } |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.