From 1446a80811ee7aa783cad67a2fd3cab3b976d9fa Mon Sep 17 00:00:00 2001 From: Brandon Shipley Date: Sun, 15 Nov 2026 00:49:44 -0800 Subject: [PATCH] code style fix componentg --- src/Controller/Component/ContactUsComponent.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/Controller/Component/ContactUsComponent.php b/src/Controller/Component/ContactUsComponent.php index 188619e..87fbcce 100644 --- a/src/Controller/Component/ContactUsComponent.php +++ b/src/Controller/Component/ContactUsComponent.php @@ -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'); + } } /**