| Conditions | 2 |
| Paths | 2 |
| Total Lines | 13 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 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 | ] |
||
| 33 | ); |
||
| 34 | } |
||
| 35 | } |
||
| 36 | |||
| 45 |
This check marks private properties in classes that are never used. Those properties can be removed.