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