@@ -181,7 +181,7 @@ discard block |
||
181 | 181 | Event::on( |
182 | 182 | CraftVariable::class, |
183 | 183 | CraftVariable::EVENT_INIT, |
184 | - function (Event $event) { |
|
184 | + function(Event $event) { |
|
185 | 185 | /** @var CraftVariable $variable */ |
186 | 186 | $variable = $event->sender; |
187 | 187 | $variable->set('instantAnalytics', InstantAnalyticsVariable::class); |
@@ -198,7 +198,7 @@ discard block |
||
198 | 198 | Event::on( |
199 | 199 | Plugins::class, |
200 | 200 | Plugins::EVENT_AFTER_INSTALL_PLUGIN, |
201 | - function (PluginEvent $event) { |
|
201 | + function(PluginEvent $event) { |
|
202 | 202 | if ($event->plugin === $this) { |
203 | 203 | $request = Craft::$app->getRequest(); |
204 | 204 | if ($request->isCpRequest) { |
@@ -227,7 +227,7 @@ discard block |
||
227 | 227 | Event::on( |
228 | 228 | UrlManager::class, |
229 | 229 | UrlManager::EVENT_REGISTER_SITE_URL_RULES, |
230 | - function (RegisterUrlRulesEvent $event) { |
|
230 | + function(RegisterUrlRulesEvent $event) { |
|
231 | 231 | Craft::debug( |
232 | 232 | 'UrlManager::EVENT_REGISTER_SITE_URL_RULES', |
233 | 233 | __METHOD__ |
@@ -243,7 +243,7 @@ discard block |
||
243 | 243 | Event::on( |
244 | 244 | View::class, |
245 | 245 | View::EVENT_BEFORE_RENDER_PAGE_TEMPLATE, |
246 | - function (TemplateEvent $event) { |
|
246 | + function(TemplateEvent $event) { |
|
247 | 247 | self::$currentTemplate = $event->template; |
248 | 248 | } |
249 | 249 | ); |
@@ -251,7 +251,7 @@ discard block |
||
251 | 251 | Event::on( |
252 | 252 | View::class, |
253 | 253 | View::EVENT_AFTER_RENDER_PAGE_TEMPLATE, |
254 | - function (TemplateEvent $event) { |
|
254 | + function(TemplateEvent $event) { |
|
255 | 255 | $settings = InstantAnalytics::$plugin->getSettings(); |
256 | 256 | if ($settings->autoSendPageView) { |
257 | 257 | $this->sendPageView(); |