@@ -307,7 +307,7 @@ discard block |
||
307 | 307 | self::$cacheDuration = self::$devMode |
308 | 308 | ? self::DEVMODE_CACHE_DURATION |
309 | 309 | : self::$settings->metaCacheDuration ?? null; |
310 | - self::$cacheDuration = self::$cacheDuration === null ? null : (int)self::$cacheDuration; |
|
310 | + self::$cacheDuration = self::$cacheDuration === null ? null : (int) self::$cacheDuration; |
|
311 | 311 | self::$environment = EnvironmentHelper::determineEnvironment(); |
312 | 312 | MetaValueHelper::cache(); |
313 | 313 | // Version helpers |
@@ -382,7 +382,7 @@ discard block |
||
382 | 382 | Event::on( |
383 | 383 | Plugins::class, |
384 | 384 | Plugins::EVENT_AFTER_INSTALL_PLUGIN, |
385 | - function (PluginEvent $event) { |
|
385 | + function(PluginEvent $event) { |
|
386 | 386 | if ($event->plugin === $this) { |
387 | 387 | // Invalidate our caches after we've been installed |
388 | 388 | $this->clearAllCaches(); |
@@ -403,7 +403,7 @@ discard block |
||
403 | 403 | Event::on( |
404 | 404 | ClearCaches::class, |
405 | 405 | ClearCaches::EVENT_REGISTER_CACHE_OPTIONS, |
406 | - function (RegisterCacheOptionsEvent $event) { |
|
406 | + function(RegisterCacheOptionsEvent $event) { |
|
407 | 407 | Craft::debug( |
408 | 408 | 'ClearCaches::EVENT_REGISTER_CACHE_OPTIONS', |
409 | 409 | __METHOD__ |
@@ -419,7 +419,7 @@ discard block |
||
419 | 419 | Event::on( |
420 | 420 | Plugins::class, |
421 | 421 | Plugins::EVENT_BEFORE_SAVE_PLUGIN_SETTINGS, |
422 | - function (PluginEvent $event) { |
|
422 | + function(PluginEvent $event) { |
|
423 | 423 | if ($event->plugin === $this && !Craft::$app->getDb()->getSupportsMb4()) { |
424 | 424 | // For all the emojis |
425 | 425 | $settingsModel = $this->getSettings(); |
@@ -472,7 +472,7 @@ discard block |
||
472 | 472 | Event::on( |
473 | 473 | Plugins::class, |
474 | 474 | Plugins::EVENT_AFTER_LOAD_PLUGINS, |
475 | - function () { |
|
475 | + function() { |
|
476 | 476 | // Delay registering SEO Elements to give other plugins a chance to load first |
477 | 477 | $this->seoElements->getAllSeoElementTypes(false); |
478 | 478 | // Delay installing GQL handlers to give other plugins a chance to register their own first |
@@ -493,7 +493,7 @@ discard block |
||
493 | 493 | Event::on( |
494 | 494 | Fields::class, |
495 | 495 | Fields::EVENT_REGISTER_FIELD_TYPES, |
496 | - function (RegisterComponentTypesEvent $event) { |
|
496 | + function(RegisterComponentTypesEvent $event) { |
|
497 | 497 | $event->types[] = SeoSettingsField::class; |
498 | 498 | $event->types[] = Seomatic_MetaField::class; |
499 | 499 | } |
@@ -502,7 +502,7 @@ discard block |
||
502 | 502 | Event::on( |
503 | 503 | Elements::class, |
504 | 504 | Elements::EVENT_AFTER_SAVE_ELEMENT, |
505 | - function (ElementEvent $event) { |
|
505 | + function(ElementEvent $event) { |
|
506 | 506 | Craft::debug( |
507 | 507 | 'Elements::EVENT_AFTER_SAVE_ELEMENT', |
508 | 508 | __METHOD__ |
@@ -522,7 +522,7 @@ discard block |
||
522 | 522 | Event::on( |
523 | 523 | Elements::class, |
524 | 524 | Elements::EVENT_AFTER_DELETE_ELEMENT, |
525 | - function (ElementEvent $event) { |
|
525 | + function(ElementEvent $event) { |
|
526 | 526 | Craft::debug( |
527 | 527 | 'Elements::EVENT_AFTER_DELETE_ELEMENT', |
528 | 528 | __METHOD__ |
@@ -541,19 +541,19 @@ discard block |
||
541 | 541 | Event::on( |
542 | 542 | Entry::class, |
543 | 543 | Entry::EVENT_REGISTER_PREVIEW_TARGETS, |
544 | - function (RegisterPreviewTargetsEvent $e) { |
|
544 | + function(RegisterPreviewTargetsEvent $e) { |
|
545 | 545 | /** @var Element $element */ |
546 | 546 | $element = $e->sender; |
547 | 547 | if ($element->uri !== null) { |
548 | 548 | $e->previewTargets[] = [ |
549 | - 'label' => ' |