| @@ -270,7 +270,7 @@ discard block | ||
| 270 | 270 | self::$cacheDuration = self::$devMode | 
| 271 | 271 | ? self::DEVMODE_CACHE_DURATION | 
| 272 | 272 | : self::$settings->metaCacheDuration ?? null; | 
| 273 | - self::$cacheDuration = self::$cacheDuration === null ? null : (int)self::$cacheDuration; | |
| 273 | + self::$cacheDuration = self::$cacheDuration === null ? null : (int) self::$cacheDuration; | |
| 274 | 274 | self::$environment = EnvironmentHelper::determineEnvironment(); | 
| 275 | 275 | MetaValueHelper::cache(); | 
| 276 | 276 | // Version helpers | 
| @@ -345,7 +345,7 @@ discard block | ||
| 345 | 345 | Event::on( | 
| 346 | 346 | Plugins::class, | 
| 347 | 347 | Plugins::EVENT_AFTER_INSTALL_PLUGIN, | 
| 348 | -            function (PluginEvent $event) { | |
| 348 | +            function(PluginEvent $event) { | |
| 349 | 349 |                  if ($event->plugin === $this) { | 
| 350 | 350 | // Invalidate our caches after we've been installed | 
| 351 | 351 | $this->clearAllCaches(); | 
| @@ -366,7 +366,7 @@ discard block | ||
| 366 | 366 | Event::on( | 
| 367 | 367 | ClearCaches::class, | 
| 368 | 368 | ClearCaches::EVENT_REGISTER_CACHE_OPTIONS, | 
| 369 | -            function (RegisterCacheOptionsEvent $event) { | |
| 369 | +            function(RegisterCacheOptionsEvent $event) { | |
| 370 | 370 | Craft::debug( | 
| 371 | 371 | 'ClearCaches::EVENT_REGISTER_CACHE_OPTIONS', | 
| 372 | 372 | __METHOD__ | 
| @@ -382,7 +382,7 @@ discard block | ||
| 382 | 382 | Event::on( | 
| 383 | 383 | Plugins::class, | 
| 384 | 384 | Plugins::EVENT_BEFORE_SAVE_PLUGIN_SETTINGS, | 
| 385 | -            function (PluginEvent $event) { | |
| 385 | +            function(PluginEvent $event) { | |
| 386 | 386 |                  if ($event->plugin === $this && !Craft::$app->getDb()->getSupportsMb4()) { | 
| 387 | 387 | // For all the emojis | 
| 388 | 388 | $settingsModel = $this->getSettings(); | 
| @@ -437,7 +437,7 @@ discard block | ||
| 437 | 437 | Event::on( | 
| 438 | 438 | Plugins::class, | 
| 439 | 439 | Plugins::EVENT_AFTER_LOAD_PLUGINS, | 
| 440 | -                function () { | |
| 440 | +                function() { | |
| 441 | 441 | // Delay registering SEO Elements to give other plugins a chance to load first | 
| 442 | 442 | $this->seoElements->getAllSeoElementTypes(false); | 
| 443 | 443 | // Delay installing GQL handlers to give other plugins a chance to register their own first | 
| @@ -459,7 +459,7 @@ discard block | ||
| 459 | 459 | Event::on( | 
| 460 | 460 | Fields::class, | 
| 461 | 461 | Fields::EVENT_REGISTER_FIELD_TYPES, | 
| 462 | -            function (RegisterComponentTypesEvent $event) { | |
| 462 | +            function(RegisterComponentTypesEvent $event) { | |
| 463 | 463 | $event->types[] = SeoSettingsField::class; | 
| 464 | 464 | $event->types[] = Seomatic_MetaField::class; | 
| 465 | 465 | } | 
| @@ -468,7 +468,7 @@ discard block | ||
| 468 | 468 | Event::on( | 
| 469 | 469 | Elements::class, | 
| 470 | 470 | Elements::EVENT_AFTER_SAVE_ELEMENT, | 
| 471 | -            function (ElementEvent $event) { | |
| 471 | +            function(ElementEvent $event) { | |
| 472 | 472 | Craft::debug( | 
| 473 | 473 | 'Elements::EVENT_AFTER_SAVE_ELEMENT', | 
| 474 | 474 | __METHOD__ | 
| @@ -488,7 +488,7 @@ discard block | ||
| 488 | 488 | Event::on( | 
| 489 | 489 | Elements::class, | 
| 490 | 490 | Elements::EVENT_AFTER_DELETE_ELEMENT, | 
| 491 | -            function (ElementEvent $event) { | |
| 491 | +            function(ElementEvent $event) { | |
| 492 | 492 | Craft::debug( | 
| 493 | 493 | 'Elements::EVENT_AFTER_DELETE_ELEMENT', | 
| 494 | 494 | __METHOD__ | 
| @@ -507,19 +507,19 @@ discard block | ||
| 507 | 507 | Event::on( | 
| 508 | 508 | Entry::class, | 
| 509 | 509 | Entry::EVENT_REGISTER_PREVIEW_TARGETS, | 
| 510 | -                function (RegisterPreviewTargetsEvent $e) { | |
| 510 | +                function(RegisterPreviewTargetsEvent $e) { | |
| 511 | 511 | /** @var Element $element */ | 
| 512 | 512 | $element = $e->sender; | 
| 513 | 513 |                      if ($element->uri !== null) { | 
| 514 | 514 | $e->previewTargets[] = [ | 
| 515 | - 'label' => ' | |