@@ -150,7 +150,7 @@ discard block |
||
| 150 | 150 | $navItem = parent::getCpNavItem(); |
| 151 | 151 | $cache = Craft::$app->getCache(); |
| 152 | 152 | // See if there are any recommendations to add as a badge |
| 153 | - $recommendations = $cache->getOrSet(self::RECOMMENDATIONS_CACHE_KEY, function () { |
|
| 153 | + $recommendations = $cache->getOrSet(self::RECOMMENDATIONS_CACHE_KEY, function() { |
|
| 154 | 154 | $data = []; |
| 155 | 155 | $now = new \DateTime(); |
| 156 | 156 | $end = $now->format('Y-m-d'); |
@@ -264,7 +264,7 @@ discard block |
||
| 264 | 264 | Event::on( |
| 265 | 265 | Plugins::class, |
| 266 | 266 | Plugins::EVENT_AFTER_INSTALL_PLUGIN, |
| 267 | - function (PluginEvent $event) { |
|
| 267 | + function(PluginEvent $event) { |
|
| 268 | 268 | if ($event->plugin === $this) { |
| 269 | 269 | // Invalidate our caches after we've been installed |
| 270 | 270 | $this->clearAllCaches(); |
@@ -292,7 +292,7 @@ discard block |
||
| 292 | 292 | Event::on( |
| 293 | 293 | CraftVariable::class, |
| 294 | 294 | CraftVariable::EVENT_INIT, |
| 295 | - function (Event $event) { |
|
| 295 | + function(Event $event) { |
|
| 296 | 296 | /** @var CraftVariable $variable */ |
| 297 | 297 | $variable = $event->sender; |
| 298 | 298 | $variable->set('webperf', WebperfVariable::class); |
@@ -302,7 +302,7 @@ discard block |
||
| 302 | 302 | Event::on( |
| 303 | 303 | Plugins::class, |
| 304 | 304 | Plugins::EVENT_AFTER_LOAD_PLUGINS, |
| 305 | - function () { |
|
| 305 | + function() { |
|
| 306 | 306 | // Install these only after all other plugins have loaded |
| 307 | 307 | $request = Craft::$app->getRequest(); |
| 308 | 308 | // Only respond to non-console site requests |
@@ -326,7 +326,7 @@ discard block |
||
| 326 | 326 | Event::on( |
| 327 | 327 | UrlManager::class, |
| 328 | 328 | UrlManager::EVENT_REGISTER_SITE_URL_RULES, |
| 329 | - function (RegisterUrlRulesEvent $event) { |
|
| 329 | + function(RegisterUrlRulesEvent $event) { |
|
| 330 | 330 | Craft::debug( |
| 331 | 331 | 'UrlManager::EVENT_REGISTER_SITE_URL_RULES', |
| 332 | 332 | __METHOD__ |
@@ -349,7 +349,7 @@ discard block |
||
| 349 | 349 | Event::on( |
| 350 | 350 | UrlManager::class, |
| 351 | 351 | UrlManager::EVENT_REGISTER_CP_URL_RULES, |
| 352 | - function (RegisterUrlRulesEvent $event) { |
|
| 352 | + function(RegisterUrlRulesEvent $event) { |
|
| 353 | 353 | Craft::debug( |
| 354 | 354 | 'UrlManager::EVENT_REGISTER_CP_URL_RULES', |
| 355 | 355 | __METHOD__ |
@@ -365,7 +365,7 @@ discard block |
||
| 365 | 365 | Event::on( |
| 366 | 366 | Dashboard::class, |
| 367 | 367 | Dashboard::EVENT_REGISTER_WIDGET_TYPES, |
| 368 | - function (RegisterComponentTypesEvent $event) { |
|
| 368 | + function(RegisterComponentTypesEvent $event) { |
|
| 369 | 369 | $event->types[] = MetricsWidget::class; |
| 370 | 370 | } |
| 371 | 371 | ); |
@@ -373,7 +373,7 @@ discard block |
||
| 373 | 373 | Event::on( |
| 374 | 374 | UserPermissions::class, |
| 375 | 375 | UserPermissions::EVENT_REGISTER_PERMISSIONS, |
| 376 | - function (RegisterUserPermissionsEvent $event) { |
|
| 376 | + function(RegisterUserPermissionsEvent $event) { |
|
| 377 | 377 | Craft::debug( |
| 378 | 378 | 'UserPermissions::EVENT_REGISTER_PERMISSIONS', |
| 379 | 379 | __METHOD__ |
@@ -398,7 +398,7 @@ discard block |
||
| 398 | 398 | Event::on( |
| 399 | 399 | View::class, |
| 400 | 400 | View::EVENT_END_PAGE, |
| 401 | - function () { |
|
| 401 | + function() { |
|
| 402 | 402 | Craft::debug( |
| 403 | 403 | 'View::EVENT_END_PAGE', |
| 404 | 404 | __METHOD__ |
@@ -422,7 +422,7 @@ discard block |
||
| 422 | 422 | Event::on( |
| 423 | 423 | View::class, |
| 424 | 424 | View::EVENT_END_BODY, |
| 425 | - function () { |
|
| 425 | + function() { |
|
| 426 | 426 | Craft::debug( |
| 427 | 427 | 'View::EVENT_END_BODY', |
| 428 | 428 | __METHOD__ |
@@ -445,7 +445,7 @@ discard block |
||
| 445 | 445 | Event::on( |
| 446 | 446 | Application::class, |
| 447 | 447 | Application::EVENT_AFTER_REQUEST, |
| 448 | - function () { |
|
| 448 | + function() { |
|
| 449 | 449 | Craft::debug( |
| 450 | 450 | 'Application::EVENT_AFTER_REQUEST', |
| 451 | 451 | __METHOD__ |