@@ -156,7 +156,7 @@ discard block |
||
156 | 156 | Event::on( |
157 | 157 | Plugins::class, |
158 | 158 | Plugins::EVENT_AFTER_INSTALL_PLUGIN, |
159 | - function (PluginEvent $event) { |
|
159 | + function(PluginEvent $event) { |
|
160 | 160 | if ($event->plugin === $this) { |
161 | 161 | // Invalidate our caches after we've been installed |
162 | 162 | $this->clearAllCaches(); |
@@ -184,7 +184,7 @@ discard block |
||
184 | 184 | Event::on( |
185 | 185 | CraftVariable::class, |
186 | 186 | CraftVariable::EVENT_INIT, |
187 | - function (Event $event) { |
|
187 | + function(Event $event) { |
|
188 | 188 | /** @var CraftVariable $variable */ |
189 | 189 | $variable = $event->sender; |
190 | 190 | $variable->set('webperf', WebperfVariable::class); |
@@ -194,7 +194,7 @@ discard block |
||
194 | 194 | Event::on( |
195 | 195 | Plugins::class, |
196 | 196 | Plugins::EVENT_AFTER_LOAD_PLUGINS, |
197 | - function () { |
|
197 | + function() { |
|
198 | 198 | // Install these only after all other plugins have loaded |
199 | 199 | $request = Craft::$app->getRequest(); |
200 | 200 | // Only respond to non-console site requests |
@@ -218,7 +218,7 @@ discard block |
||
218 | 218 | Event::on( |
219 | 219 | UrlManager::class, |
220 | 220 | UrlManager::EVENT_REGISTER_SITE_URL_RULES, |
221 | - function (RegisterUrlRulesEvent $event) { |
|
221 | + function(RegisterUrlRulesEvent $event) { |
|
222 | 222 | Craft::debug( |
223 | 223 | 'UrlManager::EVENT_REGISTER_SITE_URL_RULES', |
224 | 224 | __METHOD__ |
@@ -241,7 +241,7 @@ discard block |
||
241 | 241 | Event::on( |
242 | 242 | UrlManager::class, |
243 | 243 | UrlManager::EVENT_REGISTER_CP_URL_RULES, |
244 | - function (RegisterUrlRulesEvent $event) { |
|
244 | + function(RegisterUrlRulesEvent $event) { |
|
245 | 245 | Craft::debug( |
246 | 246 | 'UrlManager::EVENT_REGISTER_CP_URL_RULES', |
247 | 247 | __METHOD__ |
@@ -257,7 +257,7 @@ discard block |
||
257 | 257 | Event::on( |
258 | 258 | Dashboard::class, |
259 | 259 | Dashboard::EVENT_REGISTER_WIDGET_TYPES, |
260 | - function (RegisterComponentTypesEvent $event) { |
|
260 | + function(RegisterComponentTypesEvent $event) { |
|
261 | 261 | $event->types[] = MetricsWidget::class; |
262 | 262 | } |
263 | 263 | ); |
@@ -265,7 +265,7 @@ discard block |
||
265 | 265 | Event::on( |
266 | 266 | UserPermissions::class, |
267 | 267 | UserPermissions::EVENT_REGISTER_PERMISSIONS, |
268 | - function (RegisterUserPermissionsEvent $event) { |
|
268 | + function(RegisterUserPermissionsEvent $event) { |
|
269 | 269 | Craft::debug( |
270 | 270 | 'UserPermissions::EVENT_REGISTER_PERMISSIONS', |
271 | 271 | __METHOD__ |
@@ -290,7 +290,7 @@ discard block |
||
290 | 290 | Event::on( |
291 | 291 | View::class, |
292 | 292 | View::EVENT_END_PAGE, |
293 | - function () { |
|
293 | + function() { |
|
294 | 294 | Craft::debug( |
295 | 295 | 'View::EVENT_END_PAGE', |
296 | 296 | __METHOD__ |
@@ -313,7 +313,7 @@ discard block |
||
313 | 313 | Event::on( |
314 | 314 | View::class, |
315 | 315 | View::EVENT_END_BODY, |
316 | - function () { |
|
316 | + function() { |
|
317 | 317 | Craft::debug( |
318 | 318 | 'View::EVENT_END_BODY', |
319 | 319 | __METHOD__ |