@@ -376,7 +376,7 @@ discard block |
||
| 376 | 376 | if ($element !== null && $element->uri !== null) { |
| 377 | 377 | $siteId = $element->siteId; |
| 378 | 378 | $uri = $element->uri; |
| 379 | - $cacheKey = self::CACHE_KEY . $uri . $siteId . $this->elementDisplayPreviewType; |
|
| 379 | + $cacheKey = self::CACHE_KEY.$uri.$siteId.$this->elementDisplayPreviewType; |
|
| 380 | 380 | $metaBundleSourceType = Seomatic::$plugin->seoElements->getMetaBundleTypeFromElement($element); |
| 381 | 381 | $seoElement = Seomatic::$plugin->seoElements->getSeoElementByMetaBundleType($metaBundleSourceType); |
| 382 | 382 | $metaBundleSourceType = SeoEntry::getMetaBundleType(); |
@@ -387,14 +387,14 @@ discard block |
||
| 387 | 387 | $dependency = new TagDependency([ |
| 388 | 388 | 'tags' => [ |
| 389 | 389 | MetaContainers::GLOBAL_METACONTAINER_CACHE_TAG, |
| 390 | - MetaContainers::METACONTAINER_CACHE_TAG . $metaBundleSourceId . $metaBundleSourceType . $siteId, |
|
| 391 | - MetaContainers::METACONTAINER_CACHE_TAG . $uri . $siteId, |
|
| 390 | + MetaContainers::METACONTAINER_CACHE_TAG.$metaBundleSourceId.$metaBundleSourceType.$siteId, |
|
| 391 | + MetaContainers::METACONTAINER_CACHE_TAG.$uri.$siteId, |
|
| 392 | 392 | ], |
| 393 | 393 | ]); |
| 394 | 394 | $cache = Craft::$app->getCache(); |
| 395 | 395 | $cacheDuration = null; |
| 396 | 396 | $html = $cache->getOrSet( |
| 397 | - self::CACHE_KEY . $cacheKey, |
|
| 397 | + self::CACHE_KEY.$cacheKey, |
|
| 398 | 398 | function() use ($uri, $siteId, $element) { |
| 399 | 399 | Seomatic::$plugin->metaContainers->previewMetaContainers($uri, $siteId, true, true, $element); |
| 400 | 400 | $variables = [ |
@@ -436,7 +436,7 @@ discard block |
||
| 436 | 436 | array &$variables |
| 437 | 437 | ) { |
| 438 | 438 | $variables['textFieldSources'] = array_merge( |
| 439 | - ['entryGroup' => ['optgroup' => $groupName . ' Fields'], 'title' => 'Title'], |
|
| 439 | + ['entryGroup' => ['optgroup' => $groupName.' Fields'], 'title' => 'Title'], |
|
| 440 | 440 | FieldHelper::fieldsOfTypeFromElement( |
| 441 | 441 | $element, |
| 442 | 442 | FieldHelper::TEXT_FIELD_CLASS_KEY, |
@@ -444,7 +444,7 @@ discard block |
||
| 444 | 444 | ) |
| 445 | 445 | ); |
| 446 | 446 | $variables['assetFieldSources'] = array_merge( |
| 447 | - ['entryGroup' => ['optgroup' => $groupName . ' Fields']], |
|
| 447 | + ['entryGroup' => ['optgroup' => $groupName.' Fields']], |
|
| 448 | 448 | FieldHelper::fieldsOfTypeFromElement( |
| 449 | 449 | $element, |
| 450 | 450 | FieldHelper::ASSET_FIELD_CLASS_KEY, |
@@ -276,7 +276,7 @@ discard block |
||
| 276 | 276 | self::$cacheDuration = self::$devMode |
| 277 | 277 | ? self::DEVMODE_CACHE_DURATION |
| 278 | 278 | : self::$settings->metaCacheDuration ?? null; |
| 279 | - self::$cacheDuration = self::$cacheDuration === null ? null : (int)self::$cacheDuration; |
|
| 279 | + self::$cacheDuration = self::$cacheDuration === null ? null : (int) self::$cacheDuration; |
|
| 280 | 280 | self::$environment = EnvironmentHelper::determineEnvironment(); |
| 281 | 281 | MetaValueHelper::cache(); |
| 282 | 282 | // Version helpers |
@@ -398,7 +398,7 @@ discard block |
||
| 398 | 398 | $lastSegment = end($segments); |
| 399 | 399 | $site = Craft::$app->getSites()->getSiteByHandle($lastSegment); |
| 400 | 400 | if ($site !== null) { |
| 401 | - $siteSuffix = '/' . $lastSegment; |
|
| 401 | + $siteSuffix = '/'.$lastSegment; |
|
| 402 | 402 | } |
| 403 | 403 | } |
| 404 | 404 | /** @var User $currentUser */ |
@@ -407,31 +407,31 @@ discard block |
||
| 407 | 407 | if ($currentUser->can('seomatic:dashboard')) { |
| 408 | 408 | $subNavs['dashboard'] = [ |
| 409 | 409 | 'label' => Craft::t('seomatic', 'Dashboard'), |
| 410 | - 'url' => 'seomatic/dashboard' . $siteSuffix, |
|
| 410 | + 'url' => 'seomatic/dashboard'.$siteSuffix, |
|
| 411 | 411 | ]; |
| 412 | 412 | } |
| 413 | 413 | if ($currentUser->can('seomatic:global-meta')) { |
| 414 | 414 | $subNavs['global'] = [ |
| 415 | 415 | 'label' => Craft::t('seomatic', 'Global SEO'), |
| 416 | - 'url' => 'seomatic/global/general' . $siteSuffix, |
|
| 416 | + 'url' => 'seomatic/global/general'.$siteSuffix, |
|
| 417 | 417 | ]; |
| 418 | 418 | } |
| 419 | 419 | if ($currentUser->can('seomatic:content-meta')) { |
| 420 | 420 | $subNavs['content'] = [ |
| 421 | 421 | 'label' => Craft::t('seomatic', 'Content SEO'), |
| 422 | - 'url' => 'seomatic/content' . $siteSuffix, |
|
| 422 | + 'url' => 'seomatic/content'.$siteSuffix, |
|
| 423 | 423 | ]; |
| 424 | 424 | } |
| 425 | 425 | if ($currentUser->can('seomatic:site-settings')) { |
| 426 | 426 | $subNavs['site'] = [ |
| 427 | 427 | 'label' => Craft::t('seomatic', 'Site Settings'), |
| 428 | - 'url' => 'seomatic/site/identity' . $siteSuffix, |
|
| 428 | + 'url' => 'seomatic/site/identity'.$siteSuffix, |
|
| 429 | 429 | ]; |
| 430 | 430 | } |
| 431 | 431 | if ($currentUser->can('seomatic:tracking-scripts')) { |
| 432 | 432 | $subNavs['tracking'] = [ |
| 433 | 433 | 'label' => Craft::t('seomatic', 'Tracking Scripts'), |
| 434 | - 'url' => 'seomatic/tracking/gtag' . $siteSuffix, |
|
| 434 | + 'url' => 'seomatic/tracking/gtag'.$siteSuffix, |
|
| 435 | 435 | ]; |
| 436 | 436 | } |
| 437 | 437 | $editableSettings = true; |
@@ -626,14 +626,14 @@ discard block |
||
| 626 | 626 | $element = $e->sender; |
| 627 | 627 | if ($element->uri !== null) { |
| 628 | 628 | $e->previewTargets[] = [ |
| 629 | - 'label' => ' |
|