Passed
Push — develop-v4 ( d0153d...1742ce )
by Andrew
31:41 queued 01:12
created
src/seoelements/SeoEvent.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
         BaseEvent::on(
87 87
             CalendarsService::class,
88 88
             CalendarsService::EVENT_AFTER_SAVE,
89
-            function (SaveModelEvent $event) {
89
+            function(SaveModelEvent $event) {
90 90
                 Craft::debug(
91 91
                     'CalendarsService::EVENT_AFTER_DELETE',
92 92
                     __METHOD__
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
         BaseEvent::on(
98 98
             CalendarsService::class,
99 99
             CalendarsService::EVENT_AFTER_DELETE,
100
-            function (DeleteModelEvent $event) {
100
+            function(DeleteModelEvent $event) {
101 101
                 Craft::debug(
102 102
                     'CalendarsService::EVENT_AFTER_DELETE',
103 103
                     __METHOD__
@@ -112,7 +112,7 @@  discard block
 block discarded – undo
112 112
             BaseEvent::on(
113 113
                 CalendarsService::class,
114 114
                 CalendarsService::EVENT_AFTER_SAVE,
115
-                function (SaveModelEvent $event) {
115
+                function(SaveModelEvent $event) {
116 116
                     Craft::debug(
117 117
                         'CalendarsService::EVENT_AFTER_SAVE',
118 118
                         __METHOD__
@@ -137,7 +137,7 @@  discard block
 block discarded – undo
137 137
             BaseEvent::on(
138 138
                 CalendarsService::class,
139 139
                 CalendarsService::EVENT_AFTER_DELETE,
140
-                function (DeleteModelEvent $event) {
140
+                function(DeleteModelEvent $event) {
141 141
                     Craft::debug(
142 142
                         'CalendarsService::EVENT_AFTER_DELETE',
143 143
                         __METHOD__
@@ -168,7 +168,7 @@  discard block
 block discarded – undo
168 168
         BaseEvent::on(
169 169
             Event::class,
170 170
             Event::EVENT_DEFINE_SIDEBAR_HTML,
171
-            static function (DefineHtmlEvent $event) {
171
+            static function(DefineHtmlEvent $event) {
172 172
                 Craft::debug(
173 173
                     'Entry::EVENT_DEFINE_SIDEBAR_HTML',
174 174
                     __METHOD__
@@ -243,8 +243,8 @@  discard block
 block discarded – undo
243 243
         $query = Event::find()
244 244
             ->setCalendar($metaBundle->sourceHandle)
245 245
             ->setLoadOccurrences(false)
246
-            ->siteId((int)$metaBundle->sourceSiteId)
247
-            ->limit((int)$metaBundle->metaSitemapVars->sitemapLimit);
246
+            ->siteId((int) $metaBundle->sourceSiteId)
247
+            ->limit((int) $metaBundle->metaSitemapVars->sitemapLimit);
248 248
 
249 249
         return $query;
250 250
     }
@@ -405,7 +405,7 @@  discard block
 block discarded – undo
405 405
             ConfigHelper::getConfigFromFile(self::configFilePath()),
406 406
             [
407 407
                 'sourceId' => $sourceModel->id,
408
-                'sourceName' => (string)$sourceModel->name,
408
+                'sourceName' => (string) $sourceModel->name,
409 409
                 'sourceHandle' => $sourceModel->handle,
410 410
             ]
411 411
         );
Please login to merge, or discard this patch.
src/services/ServicesTrait.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -63,8 +63,8 @@  discard block
 block discarded – undo
63 63
         // so we can't extract it from the passed in $config
64 64
         $majorVersion = '4';
65 65
         // Dev server container name & port are based on the major version of this plugin
66
-        $devPort = 3000 + (int)$majorVersion;
67
-        $versionName = 'v' . $majorVersion;
66
+        $devPort = 3000 + (int) $majorVersion;
67
+        $versionName = 'v'.$majorVersion;
68 68
         return [
69 69
             'components' => [
70 70
                 'frontendTemplates' => FrontendTemplatesService::class,
@@ -83,8 +83,8 @@  discard block
 block discarded – undo
83 83
                     'assetClass' => SeomaticAsset::class,
84 84
                     'checkDevServer' => true,
85 85
                     'class' => VitePluginService::class,
86
-                    'devServerInternal' => 'http://craft-seomatic-' . $versionName . '-buildchain-dev:' . $devPort,
87
-                    'devServerPublic' => 'http://localhost:' . $devPort,
86
+                    'devServerInternal' => 'http://craft-seomatic-'.$versionName.'-buildchain-dev:'.$devPort,
87
+                    'devServerPublic' => 'http://localhost:'.$devPort,
88 88
                     'errorEntry' => 'src/js/seomatic.js',
89 89
                     'useDevServer' => true,
90 90
                 ],
Please login to merge, or discard this patch.
src/helpers/Text.php 1 patch
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
         if (!empty($string)) {
73 73
             $string = HtmlPurifier::process($string, ['HTML.Allowed' => '']);
74 74
             $string = html_entity_decode($string, ENT_NOQUOTES, 'UTF-8');
75
-            $result = (string)Stringy::create($string)->truncate($length, $substring);
75
+            $result = (string) Stringy::create($string)->truncate($length, $substring);
76 76
         }
77 77
 
78 78
         return $result;
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
         if (!empty($string)) {
98 98
             $string = HtmlPurifier::process($string, ['HTML.Allowed' => '']);
99 99
             $string = html_entity_decode($string, ENT_NOQUOTES, 'UTF-8');
100
-            $result = (string)Stringy::create($string)->safeTruncate($length, $substring);
100
+            $result = (string) Stringy::create($string)->safeTruncate($length, $substring);
101 101
         }
102 102
 
103 103
         return $result;
@@ -131,9 +131,9 @@  discard block
 block discarded – undo
131 131
             $result = self::smartStripTags(Doxter::$plugin->getService()->parseMarkdown($field->getRaw()));
132 132
         } else {
133 133
             if (is_array($field)) {
134
-                $result = self::smartStripTags((string)$field[0]);
134
+                $result = self::smartStripTags((string) $field[0]);
135 135
             } else {
136
-                $result = self::smartStripTags((string)$field);
136
+                $result = self::smartStripTags((string) $field);
137 137
             }
138 138
         }
139 139
 
@@ -160,7 +160,7 @@  discard block
 block discarded – undo
160 160
             $tags = $tags->all();
161 161
         }
162 162
         foreach ($tags as $tag) {
163
-            $result .= $tag->title . ', ';
163
+            $result .= $tag->title.', ';
164 164
         }
165 165
         $result = rtrim($result, ', ');
166 166
 
@@ -202,7 +202,7 @@  discard block
 block discarded – undo
202 202
                     foreach ($fieldClasses as $fieldClassKey) {
203 203
                         if ($field instanceof $fieldClassKey) {
204 204
                             if ($field->handle === $fieldHandle || empty($fieldHandle)) {
205
-                                $result .= self::extractTextFromField($block[$field->handle]) . ' ';
205
+                                $result .= self::extractTextFromField($block[$field->handle]).' ';
206 206
                             }
207 207
                         }
208 208
                     }
@@ -248,7 +248,7 @@  discard block
 block discarded – undo
248 248
                     foreach ($fieldClasses as $fieldClassKey) {
249 249
                         if ($field instanceof $fieldClassKey) {
250 250
                             if ($field->handle === $fieldHandle || empty($fieldHandle)) {
251
-                                $result .= self::extractTextFromField($block[$field->handle]) . ' ';
251
+                                $result .= self::extractTextFromField($block[$field->handle]).' ';
252 252
                             }
253 253
                         }
254 254
                     }
@@ -294,7 +294,7 @@  discard block
 block discarded – undo
294 294
                     foreach ($fieldClasses as $fieldClassKey) {
295 295
                         if ($field instanceof $fieldClassKey) {
296 296
                             if ($field->handle === $fieldHandle || empty($fieldHandle)) {
297
-                                $result .= self::extractTextFromField($block[$field->handle]) . ' ';
297
+                                $result .= self::extractTextFromField($block[$field->handle]).' ';
298 298
                             }
299 299
                         }
300 300
                     }
@@ -339,7 +339,7 @@  discard block
 block discarded – undo
339 339
 
340 340
         $result = is_array($keywords)
341 341
             ? implode(', ', array_slice(array_keys($keywords), 0, $limit))
342
-            : (string)$keywords;
342
+            : (string) $keywords;
343 343
 
344 344
         return self::sanitizeUserInput($result);
345 345
     }
@@ -377,7 +377,7 @@  discard block
 block discarded – undo
377 377
 
378 378
         $result = is_array($sentences)
379 379
             ? implode(' ', $sentences)
380
-            : (string)$sentences;
380
+            : (string) $sentences;
381 381
 
382 382
         return self::sanitizeUserInput($result);
383 383
     }
@@ -397,7 +397,7 @@  discard block
 block discarded – undo
397 397
         $str = html_entity_decode($str, ENT_NOQUOTES, 'UTF-8');
398 398
         $str = rawurldecode($str);
399 399
         // Remove any linebreaks
400
-        $str = (string)preg_replace("/\r|\n/", "", $str);
400
+        $str = (string) preg_replace("/\r|\n/", "", $str);
401 401
         $str = HtmlPurifier::process($str, ['HTML.Allowed' => '']);
402 402
         $str = html_entity_decode($str, ENT_NOQUOTES, 'UTF-8');
403 403
         // Remove any embedded Twig code
@@ -477,7 +477,7 @@  discard block
 block discarded – undo
477 477
             $language = 'English';
478 478
         }
479 479
 
480
-        $className = 'PhpScience\\TextRank\\Tool\\StopWords\\' . ucfirst($language);
480
+        $className = 'PhpScience\\TextRank\\Tool\\StopWords\\'.ucfirst($language);
481 481
         if (class_exists($className)) {
482 482
             $stopWords = new $className;
483 483
         }
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
         'data' => [
216 216
             'twitter:card' => [
217 217
                 'charset' => '',
@@ -287,11 +287,11 @@  discard block
 block discarded – undo
287 287
             ],
288 288
         ],
289 289
     ],
290
-    MetaTagContainer::CONTAINER_TYPE . TagService::MISC_HANDLE => [
290
+    MetaTagContainer::CONTAINER_TYPE.TagService::MISC_HANDLE => [
291 291
         'name' => 'Miscellaneous',
292 292
         'description' => 'Miscellaneous Meta Tags',
293 293
         'handle' => TagService::MISC_HANDLE,
294
-        'class' => (string)MetaTagContainer::class,
294
+        'class' => (string) MetaTagContainer::class,
295 295
         'include' => true,
296 296
         'dependencies' => [
297 297
         ],
Please login to merge, or discard this patch.
src/helpers/Schema.php 1 patch
Spacing   +19 added lines, -19 removed lines patch added patch discarded remove patch
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
             // Go from most specific type to least specific type
95 95
             foreach (self::SCHEMA_TYPES as $schemaType) {
96 96
                 if (!empty($settings[$schemaType]) && ($settings[$schemaType] !== 'none')) {
97
-                    $result = $settings[$schemaType] . self::SCHEMA_PATH_DELIMITER . $result;
97
+                    $result = $settings[$schemaType].self::SCHEMA_PATH_DELIMITER.$result;
98 98
                 }
99 99
             }
100 100
         }
@@ -126,7 +126,7 @@  discard block
 block discarded – undo
126 126
                 if (isset($result['schemaTypeDescription'])) {
127 127
                     $description = $result['schemaTypeDescription'];
128 128
                     $description = preg_replace("`\[\[([A-z]*)\]\]`", '[$1](https://schema.org/$1)', $description);
129
-                    $description = Markdown::process((string)$description);
129
+                    $description = Markdown::process((string) $description);
130 130
                     $description = str_replace(['<p>', '</p>', '\n'], ['', '', ' '], $description);
131 131
                     $result['schemaTypeDescription'] = $description;
132 132
                 }
@@ -147,7 +147,7 @@  discard block
 block discarded – undo
147 147
     {
148 148
         $result = [];
149 149
         while ($schemaType) {
150
-            $className = 'nystudio107\\seomatic\\models\\jsonld\\' . $schemaType;
150
+            $className = 'nystudio107\\seomatic\\models\\jsonld\\'.$schemaType;
151 151
             if (class_exists($className)) {
152 152
                 try {
153 153
                     $classRef = new \ReflectionClass($className);
@@ -254,15 +254,15 @@  discard block
 block discarded – undo
254 254
         $dependency = new TagDependency([
255 255
             'tags' => [
256 256
                 self::GLOBAL_SCHEMA_CACHE_TAG,
257
-                self::SCHEMA_CACHE_TAG . 'schemaArray',
257
+                self::SCHEMA_CACHE_TAG.'schemaArray',
258 258
             ],
259 259
         ]);
260 260
         $cache = Craft::$app->getCache();
261 261
         $typesArray = $cache->getOrSet(
262
-            self::CACHE_KEY . 'schemaArray',
263
-            function () use ($path) {
262
+            self::CACHE_KEY.'schemaArray',
263
+            function() use ($path) {
264 264
                 Craft::info(
265
-                    'schemaArray cache miss' . $path,
265
+                    'schemaArray cache miss'.$path,
266 266
                     __METHOD__
267 267
                 );
268 268
                 $filePath = Craft::getAlias('@nystudio107/seomatic/resources/schema/tree.jsonld');
@@ -355,13 +355,13 @@  discard block
 block discarded – undo
355 355
         $dependency = new TagDependency([
356 356
             'tags' => [
357 357
                 self::GLOBAL_SCHEMA_CACHE_TAG,
358
-                self::SCHEMA_CACHE_TAG . 'schemaTree',
358
+                self::SCHEMA_CACHE_TAG.'schemaTree',
359 359
             ],
360 360
         ]);
361 361
         $cache = Craft::$app->getCache();
362 362
         $typesArray = $cache->getOrSet(
363
-            self::CACHE_KEY . 'schemaTree',
364
-            function () {
363
+            self::CACHE_KEY.'schemaTree',
364
+            function() {
365 365
                 Craft::info(
366 366
                     'schemaArray cache miss',
367 367
                     __METHOD__
@@ -396,11 +396,11 @@  discard block
 block discarded – undo
396 396
         foreach ($typesArray as $key => $value) {
397 397
             $indent = html_entity_decode(str_repeat('&nbsp;', $indentLevel));
398 398
             if (\is_array($value)) {
399
-                $result[$key] = $indent . $key;
399
+                $result[$key] = $indent.$key;
400 400
                 $value = self::flattenSchemaArray($value, $indentLevel + self::MENU_INDENT_STEP);
401 401
                 $result = array_merge($result, $value);
402 402
             } else {
403
-                $result[$key] = $indent . $value;
403
+                $result[$key] = $indent.$value;
404 404
             }
405 405
         }
406 406
 
@@ -494,7 +494,7 @@  discard block
 block discarded – undo
494 494
             $children = [];
495 495
             $name = $typesArray['name'];
496 496
             // Construct a path-based $id, excluding the top-level `Thing` schema
497
-            $id = $name === 'Thing' ? '' : $path . self::SCHEMA_PATH_DELIMITER . $name;
497
+            $id = $name === 'Thing' ? '' : $path.self::SCHEMA_PATH_DELIMITER.$name;
498 498
             $id = ltrim($id, self::SCHEMA_PATH_DELIMITER);
499 499
             // Make sure we have at most 3 specifiers in the schema path
500 500
             $parts = explode(self::SCHEMA_PATH_DELIMITER, $id);
@@ -521,12 +521,12 @@  discard block
 block discarded – undo
521 521
             $schemaPath = explode(self::SCHEMA_PATH_DELIMITER, $id);
522 522
             // Use only the specific (last) type for now, rather than the complete path of types
523 523
             $schemaPath = [end($schemaPath)];
524
-            if ((bool)array_intersect($schemaPath, array_keys($googleRichSnippetTypes))) {
525
-                $name .= ' (' . Craft::t('seomatic', 'Google rich result') . ')';
524
+            if ((bool) array_intersect($schemaPath, array_keys($googleRichSnippetTypes))) {
525
+                $name .= ' ('.Craft::t('seomatic', 'Google rich result').')';
526 526
             }
527 527
             // Mark it as pending, if applicable
528 528
             if (isset($typesArray['pending']) && $typesArray['pending']) {
529
-                $name .= ' (' . Craft::t('seomatic', 'pending') . ')';
529
+                $name .= ' ('.Craft::t('seomatic', 'pending').')';
530 530
             }
531 531
             $result['label'] = $name;
532 532
             $result['id'] = $id;
@@ -545,13 +545,13 @@  discard block
 block discarded – undo
545 545
         $dependency = new TagDependency([
546 546
             'tags' => [
547 547
                 self::GLOBAL_SCHEMA_CACHE_TAG,
548
-                self::SCHEMA_CACHE_TAG . 'googleRichSnippets',
548
+                self::SCHEMA_CACHE_TAG.'googleRichSnippets',
549 549
             ],
550 550
         ]);
551 551
         $cache = Craft::$app->getCache();
552 552
         return $cache->getOrSet(
553
-            self::CACHE_KEY . 'googleRichSnippets',
554
-            function () {
553
+            self::CACHE_KEY.'googleRichSnippets',
554
+            function() {
555 555
                 Craft::info(
556 556
                     'googleRichSnippets cache miss',
557 557
                     __METHOD__
Please login to merge, or discard this patch.
src/seomatic-config/globalmeta/ScriptContainer.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -20,11 +20,11 @@
 block discarded – undo
20 20
  */
21 21
 
22 22
 return [
23
-    MetaScriptContainer::CONTAINER_TYPE . ScriptService::GENERAL_HANDLE => [
23
+    MetaScriptContainer::CONTAINER_TYPE.ScriptService::GENERAL_HANDLE => [
24 24
         'name' => 'General',
25 25
         'description' => 'Script Tags',
26 26
         'handle' => ScriptService::GENERAL_HANDLE,
27
-        'class' => (string)MetaScriptContainer::class,
27
+        'class' => (string) MetaScriptContainer::class,
28 28
         'include' => true,
29 29
         'dependencies' => [
30 30
         ],
Please login to merge, or discard this patch.
src/seoelements/SeoProduct.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -106,7 +106,7 @@  discard block
 block discarded – undo
106 106
         Event::on(
107 107
             ProductTypes::class,
108 108
             ProductTypes::EVENT_AFTER_SAVE_PRODUCTTYPE,
109
-            function (ProductTypeEvent $event) {
109
+            function(ProductTypeEvent $event) {
110 110
                 Craft::debug(
111 111
                     'ProductTypes::EVENT_AFTER_SAVE_PRODUCTTYPE',
112 112
                     __METHOD__
@@ -121,7 +121,7 @@  discard block
 block discarded – undo
121 121
             Event::on(
122 122
                 ProductTypes::class,
123 123
                 ProductTypes::EVENT_AFTER_SAVE_PRODUCTTYPE,
124
-                static function (ProductTypeEvent $event) {
124
+                static function(ProductTypeEvent $event) {
125 125
                     Craft::debug(
126 126
                         'ProductTypes::EVENT_AFTER_SAVE_PRODUCTTYPE',
127 127
                         __METHOD__
@@ -184,7 +184,7 @@  discard block
 block discarded – undo
184 184
             // Commerce Product Types sidebar
185 185
             $commerce = CommercePlugin::getInstance();
186 186
             if ($commerce !== null) {
187
-                Seomatic::$view->hook('cp.commerce.product.edit.details', static function (&$context) {
187
+                Seomatic::$view->hook('cp.commerce.product.edit.details', static function(&$context) {
188 188
                     $html = '';
189 189
                     Seomatic::$view->registerAssetBundle(SeomaticAsset::class);
190 190
                     /** @var  $product Product */
@@ -211,7 +211,7 @@  discard block
 block discarded – undo
211 211
         Event::on(
212 212
             Product::class,
213 213
             Product::EVENT_DEFINE_SIDEBAR_HTML,
214
-            static function (DefineHtmlEvent $event) {
214
+            static function(DefineHtmlEvent $event) {
215 215
                 Craft::debug(
216 216
                     'Product::EVENT_DEFINE_SIDEBAR_HTML',
217 217
                     __METHOD__
@@ -420,7 +420,7 @@  discard block
 block discarded – undo
420 420
             ConfigHelper::getConfigFromFile(self::configFilePath()),
421 421
             [
422 422
                 'sourceId' => $sourceModel->id,
423
-                'sourceName' => (string)$sourceModel->name,
423
+                'sourceName' => (string) $sourceModel->name,
424 424
                 'sourceHandle' => $sourceModel->handle,
425 425
             ]
426 426
         );
Please login to merge, or discard this patch.
src/services/MetaContainers.php 1 patch
Spacing   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -160,7 +160,7 @@  discard block
 block discarded – undo
160 160
         // Get the page number of this request
161 161
         $request = Craft::$app->getRequest();
162 162
         if (!$request->isConsoleRequest) {
163
-            $this->paginationPage = (string)$request->pageNum;
163
+            $this->paginationPage = (string) $request->pageNum;
164 164
         }
165 165
     }
166 166
 
@@ -222,10 +222,10 @@  discard block
 block discarded – undo
222 222
         $dependency = $this->containerDependency;
223 223
         $uniqueKey = $dependency->tags[3] ?? self::GLOBALS_CACHE_KEY;
224 224
         list($this->metaGlobalVars, $this->metaSiteVars) = Craft::$app->getCache()->getOrSet(
225
-            self::GLOBALS_CACHE_KEY . $uniqueKey,
226
-            function () use ($uniqueKey) {
225
+            self::GLOBALS_CACHE_KEY.$uniqueKey,
226
+            function() use ($uniqueKey) {
227 227
                 Craft::info(
228
-                    self::GLOBALS_CACHE_KEY . ' cache miss: ' . $uniqueKey,
228
+                    self::GLOBALS_CACHE_KEY.' cache miss: '.$uniqueKey,
229 229
                     __METHOD__
230 230
                 );
231 231
 
@@ -346,7 +346,7 @@  discard block
 block discarded – undo
346 346
                     ?? 1;
347 347
             }
348 348
             // Handle pagination
349
-            $paginationPage = 'page' . $this->paginationPage;
349
+            $paginationPage = 'page'.$this->paginationPage;
350 350
             // Get the path for the current request
351 351
             $request = Craft::$app->getRequest();
352 352
             $requestPath = '/';
@@ -362,21 +362,21 @@  discard block
 block discarded – undo
362 362
                 }
363 363
             }
364 364
             // Get our cache key
365
-            $cacheKey = $uri . $siteId . $paginationPage . $requestPath . $this->getAllowedUrlParams();
365
+            $cacheKey = $uri.$siteId.$paginationPage.$requestPath.$this->getAllowedUrlParams();
366 366
             // For requests with a status code of >= 400, use one cache key
367 367
             if (!$request->isConsoleRequest) {
368 368
                 $response = Craft::$app->getResponse();
369 369
                 if ($response->statusCode >= 400) {
370
-                    $cacheKey = $siteId . self::INVALID_RESPONSE_CACHE_KEY . $response->statusCode;
370
+                    $cacheKey = $siteId.self::INVALID_RESPONSE_CACHE_KEY.$response->statusCode;
371 371
                 }
372 372
             }
373 373
             // Load the meta containers
374 374
             $dependency = new TagDependency([
375 375
                 'tags' => [
376 376
                     self::GLOBAL_METACONTAINER_CACHE_TAG,
377
-                    self::METACONTAINER_CACHE_TAG . $metaBundleSourceId . $metaBundleSourceType . $siteId,
378
-                    self::METACONTAINER_CACHE_TAG . $uri . $siteId,
379
-                    self::METACONTAINER_CACHE_TAG . $cacheKey,
377
+                    self::METACONTAINER_CACHE_TAG.$metaBundleSourceId.$metaBundleSourceType.$siteId,
378
+                    self::METACONTAINER_CACHE_TAG.$uri.$siteId,
379
+                    self::METACONTAINER_CACHE_TAG.$cacheKey,
380 380
                 ],
381 381
             ]);
382 382
             $this->containerDependency = $dependency;
@@ -392,10 +392,10 @@  discard block
 block discarded – undo
392 392
             } else {
393 393
                 $cache = Craft::$app->getCache();
394 394
                 list($this->metaGlobalVars, $this->metaSiteVars, $this->metaSitemapVars, $this->metaContainers) = $cache->getOrSet(
395
-                    self::CACHE_KEY . $cacheKey,
396
-                    function () use ($uri, $siteId) {
395
+                    self::CACHE_KEY.$cacheKey,
396
+                    function() use ($uri, $siteId) {
397 397
                         Craft::info(
398
-                            'Meta container cache miss: ' . $uri . '/' . $siteId,
398
+                            'Meta container cache miss: '.$uri.'/'.$siteId,
399 399
                             __METHOD__
400 400
                         );
401 401
                         $this->loadGlobalMetaContainers($siteId);
@@ -790,10 +790,10 @@  discard block
 block discarded – undo
790 790
         $cache = Craft::$app->getCache();
791 791
         TagDependency::invalidate(
792 792
             $cache,
793
-            self::METACONTAINER_CACHE_TAG . $metaBundleSourceId . $metaBundleSourceType . $siteId
793
+            self::METACONTAINER_CACHE_TAG.$metaBundleSourceId.$metaBundleSourceType.$siteId
794 794
         );
795 795
         Craft::info(
796
-            'Meta bundle cache cleared: ' . $metaBundleSourceId . ' / ' . $metaBundleSourceType . ' / ' . $siteId,
796
+            'Meta bundle cache cleared: '.$metaBundleSourceId.' / '.$metaBundleSourceType.' / '.$siteId,
797 797
             __METHOD__
798 798
         );
799 799
         // Trigger an event to let other plugins/modules know we've cleared our caches
@@ -820,9 +820,9 @@  discard block
 block discarded – undo
820 820
         if ($siteId === null) {
821 821
             $siteId = Craft::$app->getSites()->currentSite->id ?? 1;
822 822
         }
823
-        TagDependency::invalidate($cache, self::METACONTAINER_CACHE_TAG . $uri . $siteId);
823
+        TagDependency::invalidate($cache, self::METACONTAINER_CACHE_TAG.$uri.$siteId);
824 824
         Craft::info(
825
-            'Meta container cache cleared: ' . $uri . ' / ' . $siteId,
825
+            'Meta container cache cleared: '.$uri.' / '.$siteId,
826 826
             __METHOD__
827 827
         );
828 828
         // Trigger an event to let other plugins/modules know we've cleared our caches
@@ -939,7 +939,7 @@  discard block
 block discarded – undo
939 939
 
940 940
                     // Handle re-creating the `mainEntityOfPage` so that the model injected into the
941 941
                     // templates has the appropriate attributes
942
-                    $generalContainerKey = MetaJsonLdContainer::CONTAINER_TYPE . JsonLdService::GENERAL_HANDLE;
942
+                    $generalContainerKey = MetaJsonLdContainer::CONTAINER_TYPE.JsonLdService::GENERAL_HANDLE;
943 943
                     $generalContainer = $this->metaContainers[$generalContainerKey];
944 944
                     if (($generalContainer !== null) && !empty($generalContainer->data['mainEntityOfPage'])) {
945 945
                         /** @var MetaJsonLd $jsonLdModel */
Please login to merge, or discard this patch.
src/seoelements/SeoShopifyProduct.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -106,7 +106,7 @@  discard block
 block discarded – undo
106 106
         Event::on(
107 107
             Products::class,
108 108
             Products::EVENT_BEFORE_SYNCHRONIZE_PRODUCT,
109
-            function (ShopifyProductSyncEvent $event) {
109
+            function(ShopifyProductSyncEvent $event) {
110 110
                 Craft::debug(
111 111
                     'Products::EVENT_BEFORE_SYNCHRONIZE_PRODUCT',
112 112
                     __METHOD__
@@ -130,7 +130,7 @@  discard block
 block discarded – undo
130 130
         Event::on(
131 131
             Product::class,
132 132
             Product::EVENT_DEFINE_SIDEBAR_HTML,
133
-            static function (DefineHtmlEvent $event) {
133
+            static function(DefineHtmlEvent $event) {
134 134
                 Craft::debug(
135 135
                     'Product::EVENT_DEFINE_SIDEBAR_HTML',
136 136
                     __METHOD__
Please login to merge, or discard this patch.