Conditions | 2 |
Paths | 2 |
Total Lines | 9 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
23 | public function updateCMSFields(FieldList $fields) |
||
24 | { |
||
25 | parent::updateCMSFields($fields); |
||
26 | $fields->removeByName(['JWTUniqueID']); |
||
27 | if ($this->owner->JWTUniqueID) { |
||
28 | $fields->addFieldsToTab( |
||
29 | 'Root.Main', |
||
30 | [ |
||
31 | CheckboxField::create('reset', 'Reset the Token ID to disable this user\'s remote login') |
||
32 | ] |
||
45 |
This check marks private properties in classes that are never used. Those properties can be removed.