@@ -24,7 +24,7 @@ |
||
24 | 24 | 'name' => 'General', |
25 | 25 | 'description' => 'Link Tags', |
26 | 26 | 'handle' => LinkService::GENERAL_HANDLE, |
27 | - 'class' => (string)MetaLinkContainer::class, |
|
27 | + 'class' => (string) MetaLinkContainer::class, |
|
28 | 28 | 'include' => true, |
29 | 29 | 'dependencies' => [ |
30 | 30 | ], |
@@ -24,7 +24,7 @@ discard block |
||
24 | 24 | 'name' => 'General', |
25 | 25 | 'description' => 'General Meta Tags', |
26 | 26 | 'handle' => TagService::GENERAL_HANDLE, |
27 | - 'class' => (string)MetaTagContainer::class, |
|
27 | + 'class' => (string) MetaTagContainer::class, |
|
28 | 28 | 'include' => true, |
29 | 29 | 'dependencies' => [ |
30 | 30 | ], |
@@ -35,7 +35,7 @@ discard block |
||
35 | 35 | 'name' => 'Facebook', |
36 | 36 | 'description' => 'Facebook OpenGraph Meta Tags', |
37 | 37 | 'handle' => TagService::FACEBOOK_HANDLE, |
38 | - 'class' => (string)MetaTagContainer::class, |
|
38 | + 'class' => (string) MetaTagContainer::class, |
|
39 | 39 | 'include' => true, |
40 | 40 | 'dependencies' => [ |
41 | 41 | ], |
@@ -46,7 +46,7 @@ discard block |
||
46 | 46 | 'name' => 'Twitter', |
47 | 47 | 'description' => 'Twitter Card Meta Tags', |
48 | 48 | 'handle' => TagService::TWITTER_HANDLE, |
49 | - 'class' => (string)MetaTagContainer::class, |
|
49 | + 'class' => (string) MetaTagContainer::class, |
|
50 | 50 | 'include' => true, |
51 | 51 | 'dependencies' => [ |
52 | 52 | ], |
@@ -57,7 +57,7 @@ discard block |
||
57 | 57 | 'name' => 'Miscellaneous', |
58 | 58 | 'description' => 'Miscellaneous Meta Tags', |
59 | 59 | 'handle' => TagService::MISC_HANDLE, |
60 | - 'class' => (string)MetaTagContainer::class, |
|
60 | + 'class' => (string) MetaTagContainer::class, |
|
61 | 61 | 'include' => true, |
62 | 62 | 'dependencies' => [ |
63 | 63 | ], |
@@ -105,7 +105,7 @@ discard block |
||
105 | 105 | Event::on( |
106 | 106 | CampaignTypesService::class, |
107 | 107 | CampaignTypesService::EVENT_AFTER_SAVE_CAMPAIGN_TYPE, |
108 | - function (CampaignTypeEvent $event) { |
|
108 | + function(CampaignTypeEvent $event) { |
|
109 | 109 | Craft::debug( |
110 | 110 | 'CampaignTypesService::EVENT_AFTER_SAVE_CAMPAIGN_TYPE', |
111 | 111 | __METHOD__ |
@@ -116,7 +116,7 @@ discard block |
||
116 | 116 | Event::on( |
117 | 117 | CampaignTypesService::class, |
118 | 118 | CampaignTypesService::EVENT_AFTER_DELETE_CAMPAIGN_TYPE, |
119 | - function (CampaignTypeEvent $event) { |
|
119 | + function(CampaignTypeEvent $event) { |
|
120 | 120 | Craft::debug( |
121 | 121 | 'CampaignTypesService::EVENT_AFTER_DELETE_CAMPAIGN_TYPE', |
122 | 122 | __METHOD__ |
@@ -131,7 +131,7 @@ discard block |
||
131 | 131 | Event::on( |
132 | 132 | CampaignTypesService::class, |
133 | 133 | CampaignTypesService::EVENT_AFTER_SAVE_CAMPAIGN_TYPE, |
134 | - function (CampaignTypeEvent $event) { |
|
134 | + function(CampaignTypeEvent $event) { |
|
135 | 135 | Craft::debug( |
136 | 136 | 'CampaignTypesService::EVENT_AFTER_SAVE_CAMPAIGN_TYPE', |
137 | 137 | __METHOD__ |
@@ -154,7 +154,7 @@ discard block |
||
154 | 154 | Event::on( |
155 | 155 | CampaignTypesService::class, |
156 | 156 | CampaignTypesService::EVENT_AFTER_DELETE_CAMPAIGN_TYPE, |
157 | - function (CampaignTypeEvent $event) { |
|
157 | + function(CampaignTypeEvent $event) { |
|
158 | 158 | Craft::debug( |
159 | 159 | 'CampaignTypesService::EVENT_AFTER_DELETE_CAMPAIGN_TYPE', |
160 | 160 | __METHOD__ |
@@ -183,7 +183,7 @@ discard block |
||
183 | 183 | Event::on( |
184 | 184 | CampaignElement::class, |
185 | 185 | CampaignElement::EVENT_DEFINE_SIDEBAR_HTML, |
186 | - static function (DefineHtmlEvent $event) { |
|
186 | + static function(DefineHtmlEvent $event) { |
|
187 | 187 | Craft::debug( |
188 | 188 | 'CampaignElement::EVENT_DEFINE_SIDEBAR_HTML', |
189 | 189 | __METHOD__ |
@@ -385,7 +385,7 @@ discard block |
||
385 | 385 | ConfigHelper::getConfigFromFile(self::configFilePath()), |
386 | 386 | [ |
387 | 387 | 'sourceId' => $sourceModel->id, |
388 | - 'sourceName' => (string)$sourceModel->name, |
|
388 | + 'sourceName' => (string) $sourceModel->name, |
|
389 | 389 | 'sourceHandle' => $sourceModel->handle, |
390 | 390 | ] |
391 | 391 | ); |
@@ -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(); |
@@ -435,7 +435,7 @@ discard block |
||
435 | 435 | Event::on( |
436 | 436 | Plugins::class, |
437 | 437 | Plugins::EVENT_AFTER_LOAD_PLUGINS, |
438 | - function () { |
|
438 | + function() { |
|
439 | 439 | // Delay registering SEO Elements to give other plugins a chance to load first |
440 | 440 | $this->seoElements->getAllSeoElementTypes(false); |
441 | 441 | // Delay installing GQL handlers to give other plugins a chance to register their own first |
@@ -456,7 +456,7 @@ discard block |
||
456 | 456 | Event::on( |
457 | 457 | Fields::class, |
458 | 458 | Fields::EVENT_REGISTER_FIELD_TYPES, |
459 | - function (RegisterComponentTypesEvent $event) { |
|
459 | + function(RegisterComponentTypesEvent $event) { |
|
460 | 460 | $event->types[] = SeoSettingsField::class; |
461 | 461 | $event->types[] = Seomatic_MetaField::class; |
462 | 462 | } |
@@ -465,7 +465,7 @@ discard block |
||
465 | 465 | Event::on( |
466 | 466 | Elements::class, |
467 | 467 | Elements::EVENT_AFTER_SAVE_ELEMENT, |
468 | - function (ElementEvent $event) { |
|
468 | + function(ElementEvent $event) { |
|
469 | 469 | Craft::debug( |
470 | 470 | 'Elements::EVENT_AFTER_SAVE_ELEMENT', |
471 | 471 | __METHOD__ |
@@ -485,7 +485,7 @@ discard block |
||
485 | 485 | Event::on( |
486 | 486 | Elements::class, |
487 | 487 | Elements::EVENT_AFTER_DELETE_ELEMENT, |
488 | - function (ElementEvent $event) { |
|
488 | + function(ElementEvent $event) { |
|
489 | 489 | Craft::debug( |
490 | 490 | 'Elements::EVENT_AFTER_DELETE_ELEMENT', |
491 | 491 | __METHOD__ |
@@ -504,19 +504,19 @@ discard block |
||
504 | 504 | Event::on( |
505 | 505 | Entry::class, |
506 | 506 | Entry::EVENT_REGISTER_PREVIEW_TARGETS, |
507 | - function (RegisterPreviewTargetsEvent $e) { |
|
507 | + function(RegisterPreviewTargetsEvent $e) { |
|
508 | 508 | /** @var Element $element */ |
509 | 509 | $element = $e->sender; |
510 | 510 | if ($element->uri !== null) { |
511 | 511 | $e->previewTargets[] = [ |
512 | - 'label' => ' |