code style fix componentg
CI / testsuite (mysql, 8.2, ) (push) Successful in 3m18s
CI / testsuite (mysql, 8.4, ) (push) Successful in 4m23s
CI / testsuite (pgsql, 8.2, ) (push) Successful in 3m13s
CI / testsuite (pgsql, 8.4, ) (push) Successful in 4m23s
CI / testsuite (sqlite, 8.2, ) (push) Successful in 3m2s
CI / testsuite (sqlite, 8.2, prefer-lowest) (push) Successful in 3m6s
CI / testsuite (sqlite, 8.4, ) (push) Successful in 4m21s
CI / Coding Standard & Static Analysis (push) Failing after 2m6s
CI / testsuite (mysql, 8.2, ) (push) Successful in 3m18s
CI / testsuite (mysql, 8.4, ) (push) Successful in 4m23s
CI / testsuite (pgsql, 8.2, ) (push) Successful in 3m13s
CI / testsuite (pgsql, 8.4, ) (push) Successful in 4m23s
CI / testsuite (sqlite, 8.2, ) (push) Successful in 3m2s
CI / testsuite (sqlite, 8.2, prefer-lowest) (push) Successful in 3m6s
CI / testsuite (sqlite, 8.4, ) (push) Successful in 4m21s
CI / Coding Standard & Static Analysis (push) Failing after 2m6s
This commit is contained in:
@@ -83,13 +83,13 @@ class ContactUsComponent extends Component {
|
||||
$this->setConfig($config);
|
||||
parent::initialize($config); // TODO: Change the autogenerated stub
|
||||
$this->table = TableRegistry::getTableLocator()->get($this->getConfig('model'));
|
||||
if (Configure::read('ContactUs.fields.turnstile') &&
|
||||
$this->getController()->components()->has('FormProtection') &&
|
||||
method_exists($this->getController()->components()->get('FormProtection'), 'unlockFields')
|
||||
) {
|
||||
$this->getController()->components()->get('FormProtection')
|
||||
->unlockFields('cf-turnstile-response');
|
||||
}
|
||||
if (Configure::read('ContactUs.fields.turnstile') &&
|
||||
$this->getController()->components()->has('FormProtection') &&
|
||||
method_exists($this->getController()->components()->get('FormProtection'), 'unlockFields')
|
||||
) {
|
||||
$this->getController()->components()->get('FormProtection')
|
||||
->unlockFields('cf-turnstile-response');
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user