Passed
Push — v3 ( 9af8ac...482808 )
by Andrew
20:05 queued 13s
created
src/models/MetaLink.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
         $className = MetaLink::class;
86 86
         if ($tagType) {
87 87
             // Potentially load a sub-type of MetaTag
88
-            $tagClassName = 'nystudio107\\seomatic\\models\\metalink\\' . ucfirst($tagType) . 'Link';
88
+            $tagClassName = 'nystudio107\\seomatic\\models\\metalink\\'.ucfirst($tagType).'Link';
89 89
             /** @var $model MetaLink */
90 90
             if (class_exists($tagClassName)) {
91 91
                 $className = $tagClassName;
@@ -182,7 +182,7 @@  discard block
 block discarded – undo
182 182
                         '{tagtype} tag `{key}` did not render because it is missing attributes.',
183 183
                         ['tagtype' => 'Link', 'key' => $this->key]
184 184
                     );
185
-                    Craft::info('WARNING - ' . $error, __METHOD__);
185
+                    Craft::info('WARNING - '.$error, __METHOD__);
186 186
                 }
187 187
                 $shouldRender = false;
188 188
             }
@@ -206,7 +206,7 @@  discard block
 block discarded – undo
206 206
         foreach ($configs as $config) {
207 207
             if ($this->prepForRender($config)) {
208 208
                 ksort($config);
209
-                $html .= Html::tag('link', '', $config) . $linebreak;
209
+                $html .= Html::tag('link', '', $config).$linebreak;
210 210
             }
211 211
         }
212 212
 
Please login to merge, or discard this patch.
src/debug/views/seomatic/render-copy-menu.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
13 13
 }
14 14
 $tooltip = implode(PHP_EOL, array_slice($codeExamples, 0, 4));
15 15
 $bundle = $this->getAssetManager()->getBundle(DebugAsset::class);
16
-$iconUrl = $bundle->baseUrl . "/img/copy-icon.svg";
16
+$iconUrl = $bundle->baseUrl."/img/copy-icon.svg";
17 17
 ?>
18 18
 <div class="seomatic-property-copy-wrapper" title="<?= $tooltip ?>">
19 19
     <?= Html::img($iconUrl) ?>
Please login to merge, or discard this patch.
ecs.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -5,7 +5,7 @@
 block discarded – undo
5 5
 
6 6
 return static function(ECSConfig $ecsConfig): void {
7 7
     $ecsConfig->paths([
8
-        __DIR__ . '/src',
8
+        __DIR__.'/src',
9 9
         __FILE__,
10 10
     ]);
11 11
     $ecsConfig->parallel();
Please login to merge, or discard this patch.
src/helpers/JsonLd.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -106,7 +106,7 @@
 block discarded – undo
106 106
         );
107 107
         // Rename keys as appropriate
108 108
         foreach (self::AT_PREFIXED_ATTRIBUTES as $key) {
109
-            $array = self::changeKey($array, $key, '@' . $key);
109
+            $array = self::changeKey($array, $key, '@'.$key);
110 110
         }
111 111
         if ($depth > 1) {
112 112
             foreach (self::IGNORE_ATTRIBUTES as $attribute) {
Please login to merge, or discard this patch.
src/helpers/DynamicMeta.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
     {
84 84
         if ($pageInfo !== null && $pageInfo->currentPage !== null) {
85 85
             // Let the meta containers know that this page is paginated
86
-            Seomatic::$plugin->metaContainers->paginationPage = (string)$pageInfo->currentPage;
86
+            Seomatic::$plugin->metaContainers->paginationPage = (string) $pageInfo->currentPage;
87 87
             // See if we should strip the query params
88 88
             $stripQueryParams = true;
89 89
             $pageTrigger = Craft::$app->getConfig()->getGeneral()->pageTrigger;
@@ -159,7 +159,7 @@  discard block
 block discarded – undo
159 159
                     if (is_array($content)) {
160 160
                         $headerValue = '';
161 161
                         foreach ($content as $contentVal) {
162
-                            $headerValue .= ($contentVal . ',');
162
+                            $headerValue .= ($contentVal.',');
163 163
                         }
164 164
                         $headerValue = rtrim($headerValue, ',');
165 165
                     } else {
@@ -178,11 +178,11 @@  discard block
 block discarded – undo
178 178
                     if (is_array($href)) {
179 179
                         $headerValue = '';
180 180
                         foreach ($href as $hrefVal) {
181
-                            $headerValue .= ('<' . $hrefVal . '>' . ',');
181
+                            $headerValue .= ('<'.$hrefVal.'>'.',');
182 182
                         }
183 183
                         $headerValue = rtrim($headerValue, ',');
184 184
                     } else {
185
-                        $headerValue = '<' . $href . '>';
185
+                        $headerValue = '<'.$href.'>';
186 186
                     }
187 187
                     $headerValue .= "; rel='canonical'";
188 188
                     $response->headers->add('Link', $headerValue);
@@ -198,7 +198,7 @@  discard block
 block discarded – undo
198 198
                     if (is_array($content)) {
199 199
                         $headerValue = '';
200 200
                         foreach ($content as $contentVal) {
201
-                            $headerValue .= ($contentVal . ',');
201
+                            $headerValue .= ($contentVal.',');
202 202
                         }
203 203
                         $headerValue = rtrim($headerValue, ',');
204 204
                     } else {
@@ -592,7 +592,7 @@  discard block
 block discarded – undo
592 592
                         }
593 593
                     }
594 594
                     // Never include the URL if the element isn't enabled for the site
595
-                    if (isset($element->enabledForSite) && !(bool)$element->enabledForSite) {
595
+                    if (isset($element->enabledForSite) && !(bool) $element->enabledForSite) {
596 596
                         $includeUrl = false;
597 597
                     }
598 598
                 } else {
@@ -801,7 +801,7 @@  discard block
 block discarded – undo
801 801
                 if (isset($value[$day][$time])
802 802
                     && ($date = DateTimeHelper::toDateTime($value[$day][$time])) !== false
803 803
                 ) {
804
-                    $normalized[$day][$time] = (array)($date);
804
+                    $normalized[$day][$time] = (array) ($date);
805 805
                 } else {
806 806
                     $normalized[$day][$time] = null;
807 807
                 }
Please login to merge, or discard this patch.
src/helpers/Container.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -80,24 +80,24 @@
 block discarded – undo
80 80
         $metaContainers = Seomatic::$plugin->metaContainers;
81 81
         // Get our cache key
82 82
         $asArrayKey = $asArray ? 'true' : 'false';
83
-        $cacheKey = $uri . $siteId . implode($containerKeys) . $asArrayKey . Seomatic::$environment;
83
+        $cacheKey = $uri.$siteId.implode($containerKeys).$asArrayKey.Seomatic::$environment;
84 84
         // Load the meta containers
85 85
         $dependency = new TagDependency([
86 86
             'tags' => [
87 87
                 $metaContainers::GLOBAL_METACONTAINER_CACHE_TAG,
88
-                $metaContainers::METACONTAINER_CACHE_TAG . $sourceId . $sourceBundleType . $siteId,
89
-                $metaContainers::METACONTAINER_CACHE_TAG . $uri . $siteId,
90
-                $metaContainers::METACONTAINER_CACHE_TAG . $cacheKey,
88
+                $metaContainers::METACONTAINER_CACHE_TAG.$sourceId.$sourceBundleType.$siteId,
89
+                $metaContainers::METACONTAINER_CACHE_TAG.$uri.$siteId,
90
+                $metaContainers::METACONTAINER_CACHE_TAG.$cacheKey,
91 91
             ],
92 92
         ]);
93 93
 
94 94
         $cache = Craft::$app->getCache();
95 95
         $result = $cache->getOrSet(
96
-            self::CACHE_KEY . $cacheKey,
96
+            self::CACHE_KEY.$cacheKey,
97 97
             function() use ($uri, $siteId, $containerKeys, $asArray) {
98 98
                 $result = [];
99 99
                 Craft::info(
100
-                    'Meta controller container cache miss: ' . $uri . '/' . $siteId,
100
+                    'Meta controller container cache miss: '.$uri.'/'.$siteId,
101 101
                     __METHOD__
102 102
                 );
103 103
                 // Load the meta containers and parse our globals
Please login to merge, or discard this patch.
src/fields/SeoSettings.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -378,7 +378,7 @@  discard block
 block discarded – undo
378 378
         if ($element !== null && $element->uri !== null) {
379 379
             $siteId = $element->siteId;
380 380
             $uri = $element->uri;
381
-            $cacheKey = self::CACHE_KEY . $uri . $siteId . $this->elementDisplayPreviewType;
381
+            $cacheKey = self::CACHE_KEY.$uri.$siteId.$this->elementDisplayPreviewType;
382 382
             $metaBundleSourceType = Seomatic::$plugin->seoElements->getMetaBundleTypeFromElement($element);
383 383
             $seoElement = Seomatic::$plugin->seoElements->getSeoElementByMetaBundleType($metaBundleSourceType);
384 384
             $metaBundleSourceType = SeoEntry::getMetaBundleType();
@@ -389,14 +389,14 @@  discard block
 block discarded – undo
389 389
             $dependency = new TagDependency([
390 390
                 'tags' => [
391 391
                     MetaContainers::GLOBAL_METACONTAINER_CACHE_TAG,
392
-                    MetaContainers::METACONTAINER_CACHE_TAG . $metaBundleSourceId . $metaBundleSourceType . $siteId,
393
-                    MetaContainers::METACONTAINER_CACHE_TAG . $uri . $siteId,
392
+                    MetaContainers::METACONTAINER_CACHE_TAG.$metaBundleSourceId.$metaBundleSourceType.$siteId,
393
+                    MetaContainers::METACONTAINER_CACHE_TAG.$uri.$siteId,
394 394
                 ],
395 395
             ]);
396 396
             $cache = Craft::$app->getCache();
397 397
             $cacheDuration = null;
398 398
             $html = $cache->getOrSet(
399
-                self::CACHE_KEY . $cacheKey,
399
+                self::CACHE_KEY.$cacheKey,
400 400
                 function() use ($uri, $siteId, $element) {
401 401
                     Seomatic::$plugin->metaContainers->previewMetaContainers($uri, $siteId, true);
402 402
                     $variables = [
@@ -438,7 +438,7 @@  discard block
 block discarded – undo
438 438
         array   &$variables
439 439
     ) {
440 440
         $variables['textFieldSources'] = array_merge(
441
-            ['entryGroup' => ['optgroup' => $groupName . ' Fields'], 'title' => 'Title'],
441
+            ['entryGroup' => ['optgroup' => $groupName.' Fields'], 'title' => 'Title'],
442 442
             FieldHelper::fieldsOfTypeFromElement(
443 443
                 $element,
444 444
                 FieldHelper::TEXT_FIELD_CLASS_KEY,
@@ -446,7 +446,7 @@  discard block
 block discarded – undo
446 446
             )
447 447
         );
448 448
         $variables['assetFieldSources'] = array_merge(
449
-            ['entryGroup' => ['optgroup' => $groupName . ' Fields']],
449
+            ['entryGroup' => ['optgroup' => $groupName.' Fields']],
450 450
             FieldHelper::fieldsOfTypeFromElement(
451 451
                 $element,
452 452
                 FieldHelper::ASSET_FIELD_CLASS_KEY,
Please login to merge, or discard this patch.
src/Node/Expression/EmptyCoalesceExpression.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -64,11 +64,11 @@
 block discarded – undo
64 64
     {
65 65
         //$this->getNode('expr1')->setAttribute('always_defined', true);
66 66
         $compiler
67
-            ->raw('((' . self::class . '::empty(')
67
+            ->raw('(('.self::class.'::empty(')
68 68
             ->subcompile($this->getNode('left'))
69 69
             ->raw(') ? null : ')
70 70
             ->subcompile($this->getNode('left'))
71
-            ->raw(') ?? (' . self::class . '::empty(')
71
+            ->raw(') ?? ('.self::class.'::empty(')
72 72
             ->subcompile($this->getNode('right'))
73 73
             ->raw(') ? null : ')
74 74
             ->subcompile($this->getNode('right'))
Please login to merge, or discard this patch.
src/validators/EmbeddedModelValidator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@
 block discarded – undo
44 44
                         $model->addError(
45 45
                             $attribute,
46 46
                             Craft::t('seomatic', 'Object failed to validate')
47
-                            . '-' . $attributeError . ' - ' . $valueError
47
+                            . '-'.$attributeError.' - '.$valueError
48 48
                         );
49 49
                     }
50 50
                 }
Please login to merge, or discard this patch.