@@ -97,14 +97,14 @@ discard block |
||
97 | 97 | } |
98 | 98 | }); |
99 | 99 | |
100 | - Event::on(UrlManager::class, UrlManager::EVENT_REGISTER_CP_URL_RULES, function (RegisterUrlRulesEvent $event) { |
|
100 | + Event::on(UrlManager::class, UrlManager::EVENT_REGISTER_CP_URL_RULES, function(RegisterUrlRulesEvent $event) { |
|
101 | 101 | $event->rules = array_merge($event->rules, [ |
102 | 102 | 'contact-form-extensions/submissions/<submissionId:\d+>' => 'contact-form-extensions/submissions/show-submission', |
103 | 103 | 'contact-form-extensions/submissions/<submissionId:\d+>/<siteHandle:{handle}>' => 'contact-form-extensions/submissions/show-submission', |
104 | 104 | ]); |
105 | 105 | }); |
106 | 106 | |
107 | - Event::on(Mailer::class, Mailer::EVENT_BEFORE_SEND, function (SendEvent $e) { |
|
107 | + Event::on(Mailer::class, Mailer::EVENT_BEFORE_SEND, function(SendEvent $e) { |
|
108 | 108 | if ($this->settings->recaptcha) { |
109 | 109 | $recaptcha = $this->contactFormExtensionsService->recaptcha; |
110 | 110 | $captchaResponse = Craft::$app->request->getParam('g-recaptcha-response'); |
@@ -139,7 +139,7 @@ discard block |
||
139 | 139 | } |
140 | 140 | }); |
141 | 141 | |
142 | - Event::on(Mailer::class, Mailer::EVENT_AFTER_SEND, function (SendEvent $e) { |
|
142 | + Event::on(Mailer::class, Mailer::EVENT_AFTER_SEND, function(SendEvent $e) { |
|
143 | 143 | if ($this->settings->enableConfirmationEmail) { |
144 | 144 | // First set the template mode to the Site templates |
145 | 145 | Craft::$app->view->setTemplateMode(View::TEMPLATE_MODE_SITE); |
@@ -168,7 +168,7 @@ discard block |
||
168 | 168 | Event::on( |
169 | 169 | CraftVariable::class, |
170 | 170 | CraftVariable::EVENT_INIT, |
171 | - function (Event $event) { |
|
171 | + function(Event $event) { |
|
172 | 172 | /** @var CraftVariable $variable */ |
173 | 173 | $variable = $event->sender; |
174 | 174 | $variable->set('contactFormExtensions', ContactFormExtensionsVariable::class); |