@@ -159,7 +159,7 @@ discard block |
||
159 | 159 | /** |
160 | 160 | * @inheritdoc |
161 | 161 | */ |
162 | - public function getContentColumnType(): array|string |
|
162 | + public function getContentColumnType(): array | string |
|
163 | 163 | { |
164 | 164 | return Schema::TYPE_TEXT; |
165 | 165 | } |
@@ -223,7 +223,7 @@ discard block |
||
223 | 223 | } |
224 | 224 | // Handle the mainEntityOfPage |
225 | 225 | $mainEntity = ''; |
226 | - if (in_array('mainEntityOfPage', (array)$this->generalEnabledFields, false) && |
|
226 | + if (in_array('mainEntityOfPage', (array) $this->generalEnabledFields, false) && |
|
227 | 227 | !empty($config['metaBundleSettings'])) { |
228 | 228 | $mainEntity = SchemaHelper::getSpecificEntityType($config['metaBundleSettings'], true); |
229 | 229 | } |
@@ -377,7 +377,7 @@ discard block |
||
377 | 377 | if ($element !== null && $element->uri !== null) { |
378 | 378 | $siteId = $element->siteId; |
379 | 379 | $uri = $element->uri; |
380 | - $cacheKey = self::CACHE_KEY . $uri . $siteId . $this->elementDisplayPreviewType; |
|
380 | + $cacheKey = self::CACHE_KEY.$uri.$siteId.$this->elementDisplayPreviewType; |
|
381 | 381 | $metaBundleSourceType = Seomatic::$plugin->seoElements->getMetaBundleTypeFromElement($element); |
382 | 382 | $seoElement = Seomatic::$plugin->seoElements->getSeoElementByMetaBundleType($metaBundleSourceType); |
383 | 383 | $metaBundleSourceType = SeoEntry::getMetaBundleType(); |
@@ -388,14 +388,14 @@ discard block |
||
388 | 388 | $dependency = new TagDependency([ |
389 | 389 | 'tags' => [ |
390 | 390 | MetaContainers::GLOBAL_METACONTAINER_CACHE_TAG, |
391 | - MetaContainers::METACONTAINER_CACHE_TAG . $metaBundleSourceId . $metaBundleSourceType . $siteId, |
|
392 | - MetaContainers::METACONTAINER_CACHE_TAG . $uri . $siteId, |
|
391 | + MetaContainers::METACONTAINER_CACHE_TAG.$metaBundleSourceId.$metaBundleSourceType.$siteId, |
|
392 | + MetaContainers::METACONTAINER_CACHE_TAG.$uri.$siteId, |
|
393 | 393 | ], |
394 | 394 | ]); |
395 | 395 | $cache = Craft::$app->getCache(); |
396 | 396 | $cacheDuration = null; |
397 | 397 | $html = $cache->getOrSet( |
398 | - self::CACHE_KEY . $cacheKey, |
|
398 | + self::CACHE_KEY.$cacheKey, |
|
399 | 399 | function() use ($uri, $siteId, $element) { |
400 | 400 | Seomatic::$plugin->metaContainers->previewMetaContainers($uri, $siteId, true, true, $element); |
401 | 401 | $variables = [ |
@@ -437,7 +437,7 @@ discard block |
||
437 | 437 | array &$variables, |
438 | 438 | ) { |
439 | 439 | $variables['textFieldSources'] = array_merge( |
440 | - ['entryGroup' => ['optgroup' => $groupName . ' Fields'], 'title' => 'Title'], |
|
440 | + ['entryGroup' => ['optgroup' => $groupName.' Fields'], 'title' => 'Title'], |
|
441 | 441 | FieldHelper::fieldsOfTypeFromElement( |
442 | 442 | $element, |
443 | 443 | FieldHelper::TEXT_FIELD_CLASS_KEY, |
@@ -445,7 +445,7 @@ discard block |
||
445 | 445 | ) |
446 | 446 | ); |
447 | 447 | $variables['assetFieldSources'] = array_merge( |
448 | - ['entryGroup' => ['optgroup' => $groupName . ' Fields']], |
|
448 | + ['entryGroup' => ['optgroup' => $groupName.' Fields']], |
|
449 | 449 | FieldHelper::fieldsOfTypeFromElement( |
450 | 450 | $element, |
451 | 451 | FieldHelper::ASSET_FIELD_CLASS_KEY, |
@@ -347,7 +347,7 @@ discard block |
||
347 | 347 | $lastSegment = end($segments); |
348 | 348 | $site = Craft::$app->getSites()->getSiteByHandle($lastSegment); |
349 | 349 | if ($site !== null) { |
350 | - $siteSuffix = '/' . $lastSegment; |
|
350 | + $siteSuffix = '/'.$lastSegment; |
|
351 | 351 | } |
352 | 352 | } |
353 | 353 | $currentUser = Craft::$app->getUser()->getIdentity(); |
@@ -355,31 +355,31 @@ discard block |
||
355 | 355 | if ($currentUser->can('seomatic:dashboard')) { |
356 | 356 | $subNavs['dashboard'] = [ |
357 | 357 | 'label' => Craft::t('seomatic', 'Dashboard'), |
358 | - 'url' => 'seomatic/dashboard' . $siteSuffix, |
|
358 | + 'url' => 'seomatic/dashboard'.$siteSuffix, |
|
359 | 359 | ]; |
360 | 360 | } |
361 | 361 | if ($currentUser->can('seomatic:global-meta')) { |
362 | 362 | $subNavs['global'] = [ |
363 | 363 | 'label' => Craft::t('seomatic', 'Global SEO'), |
364 | - 'url' => 'seomatic/global/general' . $siteSuffix, |
|
364 | + 'url' => 'seomatic/global/general'.$siteSuffix, |
|
365 | 365 | ]; |
366 | 366 | } |
367 | 367 | if ($currentUser->can('seomatic:content-meta')) { |
368 | 368 | $subNavs['content'] = [ |
369 | 369 | 'label' => Craft::t('seomatic', 'Content SEO'), |
370 | - 'url' => 'seomatic/content' . $siteSuffix, |
|
370 | + 'url' => 'seomatic/content'.$siteSuffix, |
|
371 | 371 | ]; |
372 | 372 | } |
373 | 373 | if ($currentUser->can('seomatic:site-settings')) { |
374 | 374 | $subNavs['site'] = [ |
375 | 375 | 'label' => Craft::t('seomatic', 'Site Settings'), |
376 | - 'url' => 'seomatic/site/identity' . $siteSuffix, |
|
376 | + 'url' => 'seomatic/site/identity'.$siteSuffix, |
|
377 | 377 | ]; |
378 | 378 | } |
379 | 379 | if ($currentUser->can('seomatic:tracking-scripts')) { |
380 | 380 | $subNavs['tracking'] = [ |
381 | 381 | 'label' => Craft::t('seomatic', 'Tracking Scripts'), |
382 | - 'url' => 'seomatic/tracking/gtag' . $siteSuffix, |
|
382 | + 'url' => 'seomatic/tracking/gtag'.$siteSuffix, |
|
383 | 383 | ]; |
384 | 384 | } |
385 | 385 | $editableSettings = true; |
@@ -573,14 +573,14 @@ discard block |
||
573 | 573 | $element = $e->sender; |
574 | 574 | if ($element->uri !== null) { |
575 | 575 | $e->previewTargets[] = [ |
576 | - 'label' => ' |