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

This commit is contained in:
bs
2026-11-15 00:49:44 -08:00
parent 71f571f16b
commit 1446a80811
@@ -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');
}
}
/**