@@ -177,7 +177,7 @@ discard block |
||
| 177 | 177 | Event::on( |
| 178 | 178 | Plugins::class, |
| 179 | 179 | Plugins::EVENT_AFTER_INSTALL_PLUGIN, |
| 180 | - function (PluginEvent $event) { |
|
| 180 | + function(PluginEvent $event) { |
|
| 181 | 181 | if ($event->plugin === $this) { |
| 182 | 182 | // Invalidate our caches after we've been installed |
| 183 | 183 | $this->clearAllCaches(); |
@@ -205,7 +205,7 @@ discard block |
||
| 205 | 205 | Event::on( |
| 206 | 206 | CraftVariable::class, |
| 207 | 207 | CraftVariable::EVENT_INIT, |
| 208 | - function (Event $event) { |
|
| 208 | + function(Event $event) { |
|
| 209 | 209 | /** @var CraftVariable $variable */ |
| 210 | 210 | $variable = $event->sender; |
| 211 | 211 | $variable->set('webperf', WebperfVariable::class); |
@@ -215,7 +215,7 @@ discard block |
||
| 215 | 215 | Event::on( |
| 216 | 216 | Plugins::class, |
| 217 | 217 | Plugins::EVENT_AFTER_LOAD_PLUGINS, |
| 218 | - function () { |
|
| 218 | + function() { |
|
| 219 | 219 | // Install these only after all other plugins have loaded |
| 220 | 220 | $request = Craft::$app->getRequest(); |
| 221 | 221 | // Only respond to non-console site requests |
@@ -239,7 +239,7 @@ discard block |
||
| 239 | 239 | Event::on( |
| 240 | 240 | UrlManager::class, |
| 241 | 241 | UrlManager::EVENT_REGISTER_SITE_URL_RULES, |
| 242 | - function (RegisterUrlRulesEvent $event) { |
|
| 242 | + function(RegisterUrlRulesEvent $event) { |
|
| 243 | 243 | Craft::debug( |
| 244 | 244 | 'UrlManager::EVENT_REGISTER_SITE_URL_RULES', |
| 245 | 245 | __METHOD__ |
@@ -262,7 +262,7 @@ discard block |
||
| 262 | 262 | Event::on( |
| 263 | 263 | UrlManager::class, |
| 264 | 264 | UrlManager::EVENT_REGISTER_CP_URL_RULES, |
| 265 | - function (RegisterUrlRulesEvent $event) { |
|
| 265 | + function(RegisterUrlRulesEvent $event) { |
|
| 266 | 266 | Craft::debug( |
| 267 | 267 | 'UrlManager::EVENT_REGISTER_CP_URL_RULES', |
| 268 | 268 | __METHOD__ |
@@ -278,7 +278,7 @@ discard block |
||
| 278 | 278 | Event::on( |
| 279 | 279 | Dashboard::class, |
| 280 | 280 | Dashboard::EVENT_REGISTER_WIDGET_TYPES, |
| 281 | - function (RegisterComponentTypesEvent $event) { |
|
| 281 | + function(RegisterComponentTypesEvent $event) { |
|
| 282 | 282 | $event->types[] = MetricsWidget::class; |
| 283 | 283 | } |
| 284 | 284 | ); |
@@ -286,7 +286,7 @@ discard block |
||
| 286 | 286 | Event::on( |
| 287 | 287 | UserPermissions::class, |
| 288 | 288 | UserPermissions::EVENT_REGISTER_PERMISSIONS, |
| 289 | - function (RegisterUserPermissionsEvent $event) { |
|
| 289 | + function(RegisterUserPermissionsEvent $event) { |
|
| 290 | 290 | Craft::debug( |
| 291 | 291 | 'UserPermissions::EVENT_REGISTER_PERMISSIONS', |
| 292 | 292 | __METHOD__ |
@@ -311,7 +311,7 @@ discard block |
||
| 311 | 311 | Event::on( |
| 312 | 312 | View::class, |
| 313 | 313 | View::EVENT_END_PAGE, |
| 314 | - function () { |
|
| 314 | + function() { |
|
| 315 | 315 | Craft::debug( |
| 316 | 316 | 'View::EVENT_END_PAGE', |
| 317 | 317 | __METHOD__ |
@@ -341,7 +341,7 @@ discard block |
||
| 341 | 341 | Event::on( |
| 342 | 342 | View::class, |
| 343 | 343 | View::EVENT_END_BODY, |
| 344 | - function () { |
|
| 344 | + function() { |
|
| 345 | 345 | Craft::debug( |
| 346 | 346 | 'View::EVENT_END_BODY', |
| 347 | 347 | __METHOD__ |
@@ -364,7 +364,7 @@ discard block |
||
| 364 | 364 | Event::on( |
| 365 | 365 | Craft::$app, |
| 366 | 366 | Craft::$app::EVENT_AFTER_REQUEST, |
| 367 | - function () { |
|
| 367 | + function() { |
|
| 368 | 368 | Craft::debug( |
| 369 | 369 | 'Craft::$app::EVENT_AFTER_REQUEST', |
| 370 | 370 | __METHOD__ |