@@ -19,11 +19,11 @@ |
||
19 | 19 | */ |
20 | 20 | |
21 | 21 | return [ |
22 | - MetaJsonLdContainer::CONTAINER_TYPE . JsonLdService::GENERAL_HANDLE => [ |
|
22 | + MetaJsonLdContainer::CONTAINER_TYPE.JsonLdService::GENERAL_HANDLE => [ |
|
23 | 23 | 'name' => 'General', |
24 | 24 | 'description' => 'JsonLd Tags', |
25 | 25 | 'handle' => JsonLdService::GENERAL_HANDLE, |
26 | - 'class' => (string)MetaJsonLdContainer::class, |
|
26 | + 'class' => (string) MetaJsonLdContainer::class, |
|
27 | 27 | 'include' => true, |
28 | 28 | 'dependencies' => [ |
29 | 29 | ], |
@@ -19,11 +19,11 @@ |
||
19 | 19 | */ |
20 | 20 | |
21 | 21 | return [ |
22 | - MetaTitleContainer::CONTAINER_TYPE . TitleService::GENERAL_HANDLE => [ |
|
22 | + MetaTitleContainer::CONTAINER_TYPE.TitleService::GENERAL_HANDLE => [ |
|
23 | 23 | 'name' => 'General', |
24 | 24 | 'description' => 'Meta Title Tag', |
25 | 25 | 'handle' => TitleService::GENERAL_HANDLE, |
26 | - 'class' => (string)MetaTitleContainer::class, |
|
26 | + 'class' => (string) MetaTitleContainer::class, |
|
27 | 27 | 'include' => true, |
28 | 28 | 'dependencies' => [ |
29 | 29 | ], |
@@ -19,11 +19,11 @@ |
||
19 | 19 | */ |
20 | 20 | |
21 | 21 | return [ |
22 | - MetaJsonLdContainer::CONTAINER_TYPE . JsonLdService::GENERAL_HANDLE => [ |
|
22 | + MetaJsonLdContainer::CONTAINER_TYPE.JsonLdService::GENERAL_HANDLE => [ |
|
23 | 23 | 'name' => 'General', |
24 | 24 | 'description' => 'JsonLd Tags', |
25 | 25 | 'handle' => JsonLdService::GENERAL_HANDLE, |
26 | - 'class' => (string)MetaJsonLdContainer::class, |
|
26 | + 'class' => (string) MetaJsonLdContainer::class, |
|
27 | 27 | 'include' => true, |
28 | 28 | 'dependencies' => [ |
29 | 29 | ], |
@@ -19,11 +19,11 @@ |
||
19 | 19 | */ |
20 | 20 | |
21 | 21 | return [ |
22 | - MetaTitleContainer::CONTAINER_TYPE . TitleService::GENERAL_HANDLE => [ |
|
22 | + MetaTitleContainer::CONTAINER_TYPE.TitleService::GENERAL_HANDLE => [ |
|
23 | 23 | 'name' => 'General', |
24 | 24 | 'description' => 'Meta Title Tag', |
25 | 25 | 'handle' => TitleService::GENERAL_HANDLE, |
26 | - 'class' => (string)MetaTitleContainer::class, |
|
26 | + 'class' => (string) MetaTitleContainer::class, |
|
27 | 27 | 'include' => true, |
28 | 28 | 'dependencies' => [ |
29 | 29 | ], |
@@ -19,11 +19,11 @@ |
||
19 | 19 | */ |
20 | 20 | |
21 | 21 | return [ |
22 | - MetaJsonLdContainer::CONTAINER_TYPE . JsonLdService::GENERAL_HANDLE => [ |
|
22 | + MetaJsonLdContainer::CONTAINER_TYPE.JsonLdService::GENERAL_HANDLE => [ |
|
23 | 23 | 'name' => 'General', |
24 | 24 | 'description' => 'JsonLd Tags', |
25 | 25 | 'handle' => JsonLdService::GENERAL_HANDLE, |
26 | - 'class' => (string)MetaJsonLdContainer::class, |
|
26 | + 'class' => (string) MetaJsonLdContainer::class, |
|
27 | 27 | 'include' => true, |
28 | 28 | 'dependencies' => [ |
29 | 29 | ], |
@@ -19,11 +19,11 @@ |
||
19 | 19 | */ |
20 | 20 | |
21 | 21 | return [ |
22 | - MetaTitleContainer::CONTAINER_TYPE . TitleService::GENERAL_HANDLE => [ |
|
22 | + MetaTitleContainer::CONTAINER_TYPE.TitleService::GENERAL_HANDLE => [ |
|
23 | 23 | 'name' => 'General', |
24 | 24 | 'description' => 'Meta Title Tag', |
25 | 25 | 'handle' => TitleService::GENERAL_HANDLE, |
26 | - 'class' => (string)MetaTitleContainer::class, |
|
26 | + 'class' => (string) MetaTitleContainer::class, |
|
27 | 27 | 'include' => true, |
28 | 28 | 'dependencies' => [ |
29 | 29 | ], |
@@ -19,11 +19,11 @@ |
||
19 | 19 | */ |
20 | 20 | |
21 | 21 | return [ |
22 | - MetaJsonLdContainer::CONTAINER_TYPE . JsonLdService::GENERAL_HANDLE => [ |
|
22 | + MetaJsonLdContainer::CONTAINER_TYPE.JsonLdService::GENERAL_HANDLE => [ |
|
23 | 23 | 'name' => 'General', |
24 | 24 | 'description' => 'JsonLd Tags', |
25 | 25 | 'handle' => JsonLdService::GENERAL_HANDLE, |
26 | - 'class' => (string)MetaJsonLdContainer::class, |
|
26 | + 'class' => (string) MetaJsonLdContainer::class, |
|
27 | 27 | 'include' => true, |
28 | 28 | 'dependencies' => [ |
29 | 29 | ], |
@@ -269,7 +269,7 @@ discard block |
||
269 | 269 | self::$cacheDuration = self::$devMode |
270 | 270 | ? self::DEVMODE_CACHE_DURATION |
271 | 271 | : self::$settings->metaCacheDuration ?? null; |
272 | - self::$cacheDuration = self::$cacheDuration === null ? null : (int)self::$cacheDuration; |
|
272 | + self::$cacheDuration = self::$cacheDuration === null ? null : (int) self::$cacheDuration; |
|
273 | 273 | self::$environment = EnvironmentHelper::determineEnvironment(); |
274 | 274 | MetaValueHelper::cache(); |
275 | 275 | // Version helpers |
@@ -344,7 +344,7 @@ discard block |
||
344 | 344 | Event::on( |
345 | 345 | Plugins::class, |
346 | 346 | Plugins::EVENT_AFTER_INSTALL_PLUGIN, |
347 | - function (PluginEvent $event) { |
|
347 | + function(PluginEvent $event) { |
|
348 | 348 | if ($event->plugin === $this) { |
349 | 349 | // Invalidate our caches after we've been installed |
350 | 350 | $this->clearAllCaches(); |
@@ -365,7 +365,7 @@ discard block |
||
365 | 365 | Event::on( |
366 | 366 | ClearCaches::class, |
367 | 367 | ClearCaches::EVENT_REGISTER_CACHE_OPTIONS, |
368 | - function (RegisterCacheOptionsEvent $event) { |
|
368 | + function(RegisterCacheOptionsEvent $event) { |
|
369 | 369 | Craft::debug( |
370 | 370 | 'ClearCaches::EVENT_REGISTER_CACHE_OPTIONS', |
371 | 371 | __METHOD__ |
@@ -381,7 +381,7 @@ discard block |
||
381 | 381 | Event::on( |
382 | 382 | Plugins::class, |
383 | 383 | Plugins::EVENT_BEFORE_SAVE_PLUGIN_SETTINGS, |
384 | - function (PluginEvent $event) { |
|
384 | + function(PluginEvent $event) { |
|
385 | 385 | if ($event->plugin === $this && !Craft::$app->getDb()->getSupportsMb4()) { |
386 | 386 | // For all the emojis |
387 | 387 | $settingsModel = $this->getSettings(); |
@@ -434,7 +434,7 @@ discard block |
||
434 | 434 | Event::on( |
435 | 435 | Plugins::class, |
436 | 436 | Plugins::EVENT_AFTER_LOAD_PLUGINS, |
437 | - function () { |
|
437 | + function() { |
|
438 | 438 | // Delay registering SEO Elements to give other plugins a chance to load first |
439 | 439 | $this->seoElements->getAllSeoElementTypes(false); |
440 | 440 | // Delay installing GQL handlers to give other plugins a chance to register their own first |
@@ -455,7 +455,7 @@ discard block |
||
455 | 455 | Event::on( |
456 | 456 | Fields::class, |
457 | 457 | Fields::EVENT_REGISTER_FIELD_TYPES, |
458 | - function (RegisterComponentTypesEvent $event) { |
|
458 | + function(RegisterComponentTypesEvent $event) { |
|
459 | 459 | $event->types[] = SeoSettingsField::class; |
460 | 460 | $event->types[] = Seomatic_MetaField::class; |
461 | 461 | } |
@@ -464,7 +464,7 @@ discard block |
||
464 | 464 | Event::on( |
465 | 465 | Elements::class, |
466 | 466 | Elements::EVENT_AFTER_SAVE_ELEMENT, |
467 | - function (ElementEvent $event) { |
|
467 | + function(ElementEvent $event) { |
|
468 | 468 | Craft::debug( |
469 | 469 | 'Elements::EVENT_AFTER_SAVE_ELEMENT', |
470 | 470 | __METHOD__ |
@@ -484,7 +484,7 @@ discard block |
||
484 | 484 | Event::on( |
485 | 485 | Elements::class, |
486 | 486 | Elements::EVENT_AFTER_DELETE_ELEMENT, |
487 | - function (ElementEvent $event) { |
|
487 | + function(ElementEvent $event) { |
|
488 | 488 | Craft::debug( |
489 | 489 | 'Elements::EVENT_AFTER_DELETE_ELEMENT', |
490 | 490 | __METHOD__ |
@@ -503,19 +503,19 @@ discard block |
||
503 | 503 | Event::on( |
504 | 504 | Entry::class, |
505 | 505 | Entry::EVENT_REGISTER_PREVIEW_TARGETS, |
506 | - function (RegisterPreviewTargetsEvent $e) { |
|
506 | + function(RegisterPreviewTargetsEvent $e) { |
|
507 | 507 | /** @var Element $element */ |
508 | 508 | $element = $e->sender; |
509 | 509 | if ($element->uri !== null) { |
510 | 510 | $e->previewTargets[] = [ |
511 | - 'label' => ' |