@@ -391,7 +391,7 @@ discard block |
||
391 | 391 | Event::on( |
392 | 392 | Plugins::class, |
393 | 393 | Plugins::EVENT_AFTER_INSTALL_PLUGIN, |
394 | - function (PluginEvent $event) { |
|
394 | + function(PluginEvent $event) { |
|
395 | 395 | if ($event->plugin === $this) { |
396 | 396 | // Invalidate our caches after we've been installed |
397 | 397 | $this->clearAllCaches(); |
@@ -412,7 +412,7 @@ discard block |
||
412 | 412 | Event::on( |
413 | 413 | ClearCaches::class, |
414 | 414 | ClearCaches::EVENT_REGISTER_CACHE_OPTIONS, |
415 | - function (RegisterCacheOptionsEvent $event) { |
|
415 | + function(RegisterCacheOptionsEvent $event) { |
|
416 | 416 | Craft::debug( |
417 | 417 | 'ClearCaches::EVENT_REGISTER_CACHE_OPTIONS', |
418 | 418 | __METHOD__ |
@@ -428,7 +428,7 @@ discard block |
||
428 | 428 | Event::on( |
429 | 429 | Plugins::class, |
430 | 430 | Plugins::EVENT_BEFORE_SAVE_PLUGIN_SETTINGS, |
431 | - function (PluginEvent $event) { |
|
431 | + function(PluginEvent $event) { |
|
432 | 432 | if ($event->plugin === $this && !Craft::$app->getDb()->getSupportsMb4()) { |
433 | 433 | // For all the emojis |
434 | 434 | $settingsModel = $this->getSettings(); |
@@ -458,7 +458,7 @@ discard block |
||
458 | 458 | Event::on( |
459 | 459 | Plugins::class, |
460 | 460 | Plugins::EVENT_AFTER_LOAD_PLUGINS, |
461 | - function () { |
|
461 | + function() { |
|
462 | 462 | // Install these only after all other plugins have loaded |
463 | 463 | $request = Craft::$app->getRequest(); |
464 | 464 | // Allow the SeoElements to register their own event handlers |
@@ -477,7 +477,7 @@ discard block |
||
477 | 477 | Event::on( |
478 | 478 | Fields::class, |
479 | 479 | Fields::EVENT_REGISTER_FIELD_TYPES, |
480 | - function (RegisterComponentTypesEvent $event) { |
|
480 | + function(RegisterComponentTypesEvent $event) { |
|
481 | 481 | $event->types[] = SeoSettingsField::class; |
482 | 482 | $event->types[] = Seomatic_MetaField::class; |
483 | 483 | } |
@@ -486,7 +486,7 @@ discard block |
||
486 | 486 | Event::on( |
487 | 487 | TemplateCaches::class, |
488 | 488 | TemplateCaches::EVENT_AFTER_DELETE_CACHES, |
489 | - function (DeleteTemplateCachesEvent $event) { |
|
489 | + function(DeleteTemplateCachesEvent $event) { |
|
490 | 490 | self::$plugin->metaContainers->invalidateCaches(); |
491 | 491 | } |
492 | 492 | ); |
@@ -494,7 +494,7 @@ discard block |
||
494 | 494 | Event::on( |
495 | 495 | Elements::class, |
496 | 496 | Elements::EVENT_AFTER_SAVE_ELEMENT, |
497 | - function (ElementEvent $event) { |
|
497 | + function(ElementEvent $event) { |
|
498 | 498 | Craft::debug( |
499 | 499 | 'Elements::EVENT_AFTER_SAVE_ELEMENT', |
500 | 500 | __METHOD__ |
@@ -514,7 +514,7 @@ discard block |
||
514 | 514 | Event::on( |
515 | 515 | Elements::class, |
516 | 516 | Elements::EVENT_AFTER_DELETE_ELEMENT, |
517 | - function (ElementEvent $event) { |
|
517 | + function(ElementEvent $event) { |
|
518 | 518 | Craft::debug( |
519 | 519 | 'Elements::EVENT_AFTER_DELETE_ELEMENT', |
520 | 520 | __METHOD__ |
@@ -532,7 +532,7 @@ discard block |
||
532 | 532 | Event::on( |
533 | 533 | Entry::class, |
534 | 534 | Entry::EVENT_REGISTER_PREVIEW_TARGETS, |
535 | - function (RegisterPreviewTargetsEvent $e) { |
|
535 | + function(RegisterPreviewTargetsEvent $e) { |
|
536 | 536 | /** @var Element $element */ |
537 | 537 | $element = $e->sender; |
538 | 538 | $e->previewTargets[] = [ |
@@ -568,7 +568,7 @@ discard block |
||
568 | 568 | Event::on( |
569 | 569 | UrlManager::class, |
570 | 570 | UrlManager::EVENT_REGISTER_SITE_URL_RULES, |
571 | - function (RegisterUrlRulesEvent $event) { |
|
571 | + function(RegisterUrlRulesEvent $event) { |
|
572 | 572 | Craft::debug( |
573 | 573 | 'UrlManager::EVENT_REGISTER_SITE_URL_RULES', |
574 | 574 | __METHOD__ |
@@ -593,7 +593,7 @@ discard block |
||
593 | 593 | Event::on( |
594 | 594 | UrlManager::class, |
595 | 595 | UrlManager::EVENT_REGISTER_CP_URL_RULES, |
596 | - function (RegisterUrlRulesEvent $event) { |
|
596 | + function(RegisterUrlRulesEvent $event) { |
|
597 | 597 | Craft::debug( |
598 | 598 | 'UrlManager::EVENT_REGISTER_CP_URL_RULES', |
599 | 599 | __METHOD__ |
@@ -609,7 +609,7 @@ discard block |
||
609 | 609 | Event::on( |
610 | 610 | UserPermissions::class, |
611 | 611 | UserPermissions::EVENT_REGISTER_PERMISSIONS, |
612 | - function (RegisterUserPermissionsEvent $event) { |
|
612 | + function(RegisterUserPermissionsEvent $event) { |
|
613 | 613 | Craft::debug( |
614 | 614 | 'UserPermissions::EVENT_REGISTER_PERMISSIONS', |
615 | 615 | __METHOD__ |
@@ -631,7 +631,7 @@ discard block |
||
631 | 631 | Event::on( |
632 | 632 | View::class, |
633 | 633 | View::EVENT_BEGIN_BODY, |
634 | - function () { |
|
634 | + function() { |
|
635 | 635 | Craft::debug( |
636 | 636 | 'View::EVENT_BEGIN_BODY', |
637 | 637 | __METHOD__ |
@@ -646,7 +646,7 @@ discard block |
||
646 | 646 | Event::on( |
647 | 647 | View::class, |
648 | 648 | View::EVENT_END_BODY, |
649 | - function () { |
|
649 | + function() { |
|
650 | 650 | Craft::debug( |
651 | 651 | 'View::EVENT_END_BODY', |
652 | 652 | __METHOD__ |
@@ -661,7 +661,7 @@ discard block |
||
661 | 661 | Event::on( |
662 | 662 | View::class, |
663 | 663 | View::EVENT_END_PAGE, |
664 | - function () { |
|
664 | + function() { |
|
665 | 665 | Craft::debug( |
666 | 666 | 'View::EVENT_END_PAGE', |
667 | 667 | __METHOD__ |
@@ -684,7 +684,7 @@ discard block |
||
684 | 684 | // Don't cache Control Panel requests |
685 | 685 | self::$cacheDuration = 1; |
686 | 686 | // Prefix the Control Panel title |
687 | - self::$view->hook('cp.layouts.base', function (&$context) { |
|
687 | + self::$view->hook('cp.layouts.base', function(&$context) { |
|
688 | 688 | if (self::$devMode) { |
689 | 689 | $context['docTitle'] = self::$settings->devModeCpTitlePrefix.$context['docTitle']; |
690 | 690 | } else { |