for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace ContentBlocks;
/**
* @author Donatas Navidonskis <[email protected]>
* @since 2017
* @class MapsSiteConfig
*
*/
class MapsSiteConfig extends \DataExtension {
* @var array
* @config
private static $db = [
$db
This check marks private properties in classes that are never used. Those properties can be removed.
'GoogleMapsApiKey' => 'Varchar(255)',
];
public function updateCMSFields(FieldList $fields) {
$fields->addFieldToTab('Root.Main', \TextField::create(
'GoogleMapsApiKey',
_t('MapsSiteConfig.GOOGLE_MAPS_API_KEY', 'Google maps API key')
));
parent::updateCMSFields($fields);
}
This check marks private properties in classes that are never used. Those properties can be removed.