for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Firesphere\GraphQLJWT;
use SilverStripe\Forms\FieldList;
use SilverStripe\ORM\DataExtension;
/**
* Class MemberExtension
* Add a unique token to the Member for extra validation
*/
class MemberExtension extends DataExtension
{
private static $db = [
$db
This check marks private properties in classes that are never used. Those properties can be removed.
'JWTUniqueID' => 'Varchar(255)',
];
private static $indexes = [
$indexes
'JWTUniqueID' => 'unique'
public function updateCMSFields(FieldList $fields)
parent::updateCMSFields($fields);
$fields->removeByName(['JWTUniqueID']);
}
This check marks private properties in classes that are never used. Those properties can be removed.