Passed
Push — develop ( 7d3a90...95f914 )
by Andrew
07:53
created
src/fields/SeoSettings.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -254,7 +254,7 @@  discard block
 block discarded – undo
254 254
                 $value = StringHelper::encodeMb4($value);
255 255
             }
256 256
             if (\is_array($value)) {
257
-                array_walk_recursive($value, function (&$arrayValue, $arrayKey) {
257
+                array_walk_recursive($value, function(&$arrayValue, $arrayKey) {
258 258
                     if ($arrayValue !== null && \is_string($arrayValue)) {
259 259
                         $arrayValue = StringHelper::encodeMb4($arrayValue);
260 260
                     }
@@ -390,7 +390,7 @@  discard block
 block discarded – undo
390 390
         if ($element !== null && $element->uri !== null) {
391 391
             $siteId = $element->siteId;
392 392
             $uri = $element->uri;
393
-            $cacheKey = self::CACHE_KEY . $uri . $siteId . $this->elementDisplayPreviewType;
393
+            $cacheKey = self::CACHE_KEY.$uri.$siteId.$this->elementDisplayPreviewType;
394 394
             $metaBundleSourceType = Seomatic::$plugin->seoElements->getMetaBundleTypeFromElement($element);
395 395
             $seoElement = Seomatic::$plugin->seoElements->getSeoElementByMetaBundleType($metaBundleSourceType);
396 396
             $metaBundleSourceType = SeoEntry::getMetaBundleType();
@@ -401,15 +401,15 @@  discard block
 block discarded – undo
401 401
             $dependency = new TagDependency([
402 402
                 'tags' => [
403 403
                     MetaContainers::GLOBAL_METACONTAINER_CACHE_TAG,
404
-                    MetaContainers::METACONTAINER_CACHE_TAG . $metaBundleSourceId . $metaBundleSourceType . $siteId,
405
-                    MetaContainers::METACONTAINER_CACHE_TAG . $uri . $siteId,
404
+                    MetaContainers::METACONTAINER_CACHE_TAG.$metaBundleSourceId.$metaBundleSourceType.$siteId,
405
+                    MetaContainers::METACONTAINER_CACHE_TAG.$uri.$siteId,
406 406
                 ],
407 407
             ]);
408 408
             $cache = Craft::$app->getCache();
409 409
             $cacheDuration = null;
410 410
             $html = $cache->getOrSet(
411
-                self::CACHE_KEY . $cacheKey,
412
-                function () use ($uri, $siteId, $element) {
411
+                self::CACHE_KEY.$cacheKey,
412
+                function() use ($uri, $siteId, $element) {
413 413
                     Seomatic::$plugin->metaContainers->previewMetaContainers($uri, $siteId, true);
414 414
                     $variables = [
415 415
                         'previewTypes' => [
@@ -451,7 +451,7 @@  discard block
 block discarded – undo
451 451
     )
452 452
     {
453 453
         $variables['textFieldSources'] = array_merge(
454
-            ['entryGroup' => ['optgroup' => $groupName . ' Fields'], 'title' => 'Title'],
454
+            ['entryGroup' => ['optgroup' => $groupName.' Fields'], 'title' => 'Title'],
455 455
             FieldHelper::fieldsOfTypeFromElement(
456 456
                 $element,
457 457
                 FieldHelper::TEXT_FIELD_CLASS_KEY,
@@ -459,7 +459,7 @@  discard block
 block discarded – undo
459 459
             )
460 460
         );
461 461
         $variables['assetFieldSources'] = array_merge(
462
-            ['entryGroup' => ['optgroup' => $groupName . ' Fields']],
462
+            ['entryGroup' => ['optgroup' => $groupName.' Fields']],
463 463
             FieldHelper::fieldsOfTypeFromElement(
464 464
                 $element,
465 465
                 FieldHelper::ASSET_FIELD_CLASS_KEY,
Please login to merge, or discard this patch.
src/seomatic-config/globalmeta/TitleContainer.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -19,11 +19,11 @@
 block discarded – undo
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
         ],
Please login to merge, or discard this patch.
src/seomatic-config/globalmeta/JsonLdContainer.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -19,11 +19,11 @@
 block discarded – undo
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
         ],
Please login to merge, or discard this patch.
src/seomatic-config/globalmeta/LinkContainer.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -21,11 +21,11 @@
 block discarded – undo
21 21
  */
22 22
 
23 23
 return [
24
-    MetaLinkContainer::CONTAINER_TYPE . LinkService::GENERAL_HANDLE => [
24
+    MetaLinkContainer::CONTAINER_TYPE.LinkService::GENERAL_HANDLE => [
25 25
         'name' => 'General',
26 26
         'description' => 'Link Tags',
27 27
         'handle' => LinkService::GENERAL_HANDLE,
28
-        'class' => (string)MetaLinkContainer::class,
28
+        'class' => (string) MetaLinkContainer::class,
29 29
         'include' => true,
30 30
         'dependencies' => [
31 31
         ],
Please login to merge, or discard this patch.
src/seomatic-config/globalmeta/TagContainer.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -20,11 +20,11 @@  discard block
 block discarded – undo
20 20
  */
21 21
 
22 22
 return [
23
-    MetaTagContainer::CONTAINER_TYPE . TagService::GENERAL_HANDLE => [
23
+    MetaTagContainer::CONTAINER_TYPE.TagService::GENERAL_HANDLE => [
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
         ],
@@ -76,11 +76,11 @@  discard block
 block discarded – undo
76 76
             ],
77 77
         ],
78 78
     ],
79
-    MetaTagContainer::CONTAINER_TYPE . TagService::FACEBOOK_HANDLE => [
79
+    MetaTagContainer::CONTAINER_TYPE.TagService::FACEBOOK_HANDLE => [
80 80
         'name' => 'Facebook',
81 81
         'description' => 'Facebook OpenGraph Meta Tags',
82 82
         'handle' => TagService::FACEBOOK_HANDLE,
83
-        'class' => (string)MetaTagContainer::class,
83
+        'class' => (string) MetaTagContainer::class,
84 84
         'include' => true,
85 85
         'dependencies' => [
86 86
         ],
@@ -206,12 +206,12 @@  discard block
 block discarded – undo
206 206
             ],
207 207
         ],
208 208
     ],
209
-    MetaTagContainer::CONTAINER_TYPE . TagService::TWITTER_HANDLE => [
209
+    MetaTagContainer::CONTAINER_TYPE.TagService::TWITTER_HANDLE => [
210 210
         'name' => 'Twitter',
211 211
         'description' => 'Twitter Card Meta Tags',
212 212
         'handle' => TagService::TWITTER_HANDLE,
213 213
         'include' => true,
214
-        'class' => (string)MetaTagContainer::class,
214
+        'class' => (string) MetaTagContainer::class,
215 215
         'dependencies' => [
216 216
             Dependency::SITE_DEPENDENCY => ['twitterHandle'],
217 217
         ],
@@ -290,11 +290,11 @@  discard block
 block discarded – undo
290 290
             ],
291 291
         ],
292 292
     ],
293
-    MetaTagContainer::CONTAINER_TYPE . TagService::MISC_HANDLE => [
293
+    MetaTagContainer::CONTAINER_TYPE.TagService::MISC_HANDLE => [
294 294
         'name' => 'Miscellaneous',
295 295
         'description' => 'Miscellaneous Meta Tags',
296 296
         'handle' => TagService::MISC_HANDLE,
297
-        'class' => (string)MetaTagContainer::class,
297
+        'class' => (string) MetaTagContainer::class,
298 298
         'include' => true,
299 299
         'dependencies' => [
300 300
         ],
Please login to merge, or discard this patch.
src/seomatic-config/categorymeta/TitleContainer.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -19,11 +19,11 @@
 block discarded – undo
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
         ],
Please login to merge, or discard this patch.
src/seomatic-config/categorymeta/JsonLdContainer.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -19,11 +19,11 @@
 block discarded – undo
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
         ],
Please login to merge, or discard this patch.
src/seomatic-config/digitalproductmeta/TitleContainer.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -19,11 +19,11 @@
 block discarded – undo
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
         ],
Please login to merge, or discard this patch.
src/seomatic-config/digitalproductmeta/JsonLdContainer.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -19,11 +19,11 @@
 block discarded – undo
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
         ],
Please login to merge, or discard this patch.