Test Failed
Push — v5 ( ec28e0...e66c40 )
by Andrew
54:30 queued 27:51
created
src/seomatic-config/campaignmeta/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/campaignmeta/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/models/MetaTag.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
         $className = MetaTag::class;
80 80
         if ($tagType) {
81 81
             // Potentially load a sub-type of MetaTag
82
-            $tagClassName = 'nystudio107\\seomatic\\models\\metatag\\' . ucfirst($tagType) . 'Tag';
82
+            $tagClassName = 'nystudio107\\seomatic\\models\\metatag\\'.ucfirst($tagType).'Tag';
83 83
             /** @var $model MetaTag */
84 84
             if (class_exists($tagClassName)) {
85 85
                 $className = $tagClassName;
@@ -155,10 +155,10 @@  discard block
 block discarded – undo
155 155
                 if (Seomatic::$devMode) {
156 156
                     $error = Craft::t(
157 157
                         'seomatic',
158
-                        '{tagtype} tag `{key}` did not render because it is missing attributes. ' . print_r($data, true),
158
+                        '{tagtype} tag `{key}` did not render because it is missing attributes. '.print_r($data, true),
159 159
                         ['tagtype' => 'Meta', 'key' => $this->key]
160 160
                     );
161
-                    Craft::info('WARNING - ' . $error, __METHOD__);
161
+                    Craft::info('WARNING - '.$error, __METHOD__);
162 162
                 }
163 163
                 $shouldRender = false;
164 164
             }
@@ -182,7 +182,7 @@  discard block
 block discarded – undo
182 182
         foreach ($configs as $config) {
183 183
             if ($this->prepForRender($config)) {
184 184
                 ksort($config);
185
-                $html .= Html::tag('meta', '', $config) . $linebreak;
185
+                $html .= Html::tag('meta', '', $config).$linebreak;
186 186
             }
187 187
         }
188 188
 
Please login to merge, or discard this patch.
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.