Passed
Push — v3 ( eec076...2ce940 )
by Andrew
12:18 queued 13s
created
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/Schema.php 1 patch
Spacing   +16 added lines, -16 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',
262
+            self::CACHE_KEY.'schemaArray',
263 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,12 +355,12 @@  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',
363
+            self::CACHE_KEY.'schemaTree',
364 364
             function() {
365 365
                 Craft::info(
366 366
                     'schemaTree cache miss',
@@ -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,12 +545,12 @@  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',
553
+            self::CACHE_KEY.'googleRichSnippets',
554 554
             function() {
555 555
                 Craft::info(
556 556
                     'googleRichSnippets cache miss',
Please login to merge, or discard this patch.
src/helpers/Field.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -129,7 +129,7 @@  discard block
 block discarded – undo
129 129
         $foundFields = [];
130 130
         if (!empty(self::FIELD_CLASSES[$fieldClassKey])) {
131 131
             // Cache me if you can
132
-            $memoKey = $fieldClassKey . $layout->id . ($keysOnly ? 'keys' : 'nokeys');
132
+            $memoKey = $fieldClassKey.$layout->id.($keysOnly ? 'keys' : 'nokeys');
133 133
             if (!empty(self::$fieldsOfTypeFromLayoutCache[$memoKey])) {
134 134
                 return self::$fieldsOfTypeFromLayoutCache[$memoKey];
135 135
             }
@@ -246,7 +246,7 @@  discard block
 block discarded – undo
246 246
                 $prefix = $global->handle;
247 247
                 $fields = array_combine(
248 248
                     array_map(function($key) use ($prefix) {
249
-                        return $prefix . '.' . $key;
249
+                        return $prefix.'.'.$key;
250 250
                     }, array_keys($fields)),
251 251
                     $fields
252 252
                 );
@@ -320,7 +320,7 @@  discard block
 block discarded – undo
320 320
         }
321 321
         if ($matrixBlockTypeModel) {
322 322
             // Cache me if you can
323
-            $memoKey = $fieldType . $matrixBlock->id . ($keysOnly ? 'keys' : 'nokeys');
323
+            $memoKey = $fieldType.$matrixBlock->id.($keysOnly ? 'keys' : 'nokeys');
324 324
             if (!empty(self::$matrixFieldsOfTypeCache[$memoKey])) {
325 325
                 return self::$matrixFieldsOfTypeCache[$memoKey];
326 326
             }
@@ -363,7 +363,7 @@  discard block
 block discarded – undo
363 363
         }
364 364
         if ($neoBlockTypeModel) {
365 365
             // Cache me if you can
366
-            $memoKey = $fieldType . $neoBlock->id . ($keysOnly ? 'keys' : 'nokeys');
366
+            $memoKey = $fieldType.$neoBlock->id.($keysOnly ? 'keys' : 'nokeys');
367 367
             if (!empty(self::$neoFieldsOfTypeCache[$memoKey])) {
368 368
                 return self::$neoFieldsOfTypeCache[$memoKey];
369 369
             }
@@ -405,7 +405,7 @@  discard block
 block discarded – undo
405 405
         }
406 406
         if ($superTableBlockTypeModel) {
407 407
             // Cache me if you can
408
-            $memoKey = $fieldType . $superTableBlock->id . ($keysOnly ? 'keys' : 'nokeys');
408
+            $memoKey = $fieldType.$superTableBlock->id.($keysOnly ? 'keys' : 'nokeys');
409 409
             if (!empty(self::$superTableFieldsOfTypeCache[$memoKey])) {
410 410
                 return self::$superTableFieldsOfTypeCache[$memoKey];
411 411
             }
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/Localization.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@
 block discarded – undo
35 35
     {
36 36
         $language = str_replace('-', '_', $language);
37 37
         if (strlen($language) === 2) {
38
-            $language = strtolower($language) . '_' . strtoupper($language);
38
+            $language = strtolower($language).'_'.strtoupper($language);
39 39
         }
40 40
 
41 41
         return $language;
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
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
         if (!empty($string)) {
77 77
             $string = HtmlPurifier::process($string, ['HTML.Allowed' => '']);
78 78
             $string = html_entity_decode($string, ENT_NOQUOTES, 'UTF-8');
79
-            $result = (string)Stringy::create($string)->truncate($length, $substring);
79
+            $result = (string) Stringy::create($string)->truncate($length, $substring);
80 80
         }
81 81
 
82 82
         return $result;
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
         if (!empty($string)) {
102 102
             $string = HtmlPurifier::process($string, ['HTML.Allowed' => '']);
103 103
             $string = html_entity_decode($string, ENT_NOQUOTES, 'UTF-8');
104
-            $result = (string)Stringy::create($string)->safeTruncate($length, $substring);
104
+            $result = (string) Stringy::create($string)->safeTruncate($length, $substring);
105 105
         }
106 106
 
107 107
         return $result;
@@ -135,9 +135,9 @@  discard block
 block discarded – undo
135 135
             $result = self::smartStripTags(Doxter::$plugin->getService()->parseMarkdown($field->getRaw()));
136 136
         } else {
137 137
             if (\is_array($field)) {
138
-                $result = self::smartStripTags((string)$field[0]);
138
+                $result = self::smartStripTags((string) $field[0]);
139 139
             } else {
140
-                $result = self::smartStripTags((string)$field);
140
+                $result = self::smartStripTags((string) $field);
141 141
             }
142 142
         }
143 143
 
@@ -164,7 +164,7 @@  discard block
 block discarded – undo
164 164
             $tags = $tags->all();
165 165
         }
166 166
         foreach ($tags as $tag) {
167
-            $result .= $tag->title . ', ';
167
+            $result .= $tag->title.', ';
168 168
         }
169 169
         $result = rtrim($result, ', ');
170 170
 
@@ -206,7 +206,7 @@  discard block
 block discarded – undo
206 206
                     foreach ($fieldClasses as $fieldClassKey) {
207 207
                         if ($field instanceof $fieldClassKey) {
208 208
                             if ($field->handle === $fieldHandle || empty($fieldHandle)) {
209
-                                $result .= self::extractTextFromField($block[$field->handle]) . ' ';
209
+                                $result .= self::extractTextFromField($block[$field->handle]).' ';
210 210
                             }
211 211
                         }
212 212
                     }
@@ -252,7 +252,7 @@  discard block
 block discarded – undo
252 252
                     foreach ($fieldClasses as $fieldClassKey) {
253 253
                         if ($field instanceof $fieldClassKey) {
254 254
                             if ($field->handle === $fieldHandle || empty($fieldHandle)) {
255
-                                $result .= self::extractTextFromField($block[$field->handle]) . ' ';
255
+                                $result .= self::extractTextFromField($block[$field->handle]).' ';
256 256
                             }
257 257
                         }
258 258
                     }
@@ -298,7 +298,7 @@  discard block
 block discarded – undo
298 298
                     foreach ($fieldClasses as $fieldClassKey) {
299 299
                         if ($field instanceof $fieldClassKey) {
300 300
                             if ($field->handle === $fieldHandle || empty($fieldHandle)) {
301
-                                $result .= self::extractTextFromField($block[$field->handle]) . ' ';
301
+                                $result .= self::extractTextFromField($block[$field->handle]).' ';
302 302
                             }
303 303
                         }
304 304
                     }
@@ -343,7 +343,7 @@  discard block
 block discarded – undo
343 343
 
344 344
         $result = \is_array($keywords)
345 345
             ? implode(', ', \array_slice(array_keys($keywords), 0, $limit))
346
-            : (string)$keywords;
346
+            : (string) $keywords;
347 347
 
348 348
         return self::sanitizeUserInput($result);
349 349
     }
@@ -381,7 +381,7 @@  discard block
 block discarded – undo
381 381
 
382 382
         $result = \is_array($sentences)
383 383
             ? implode(' ', $sentences)
384
-            : (string)$sentences;
384
+            : (string) $sentences;
385 385
 
386 386
         return self::sanitizeUserInput($result);
387 387
     }
@@ -401,7 +401,7 @@  discard block
 block discarded – undo
401 401
         $str = html_entity_decode($str, ENT_NOQUOTES, 'UTF-8');
402 402
         $str = rawurldecode($str);
403 403
         // Remove any linebreaks
404
-        $str = (string)preg_replace("/\r|\n/", "", $str);
404
+        $str = (string) preg_replace("/\r|\n/", "", $str);
405 405
         $str = HtmlPurifier::process($str, ['HTML.Allowed' => '']);
406 406
         $str = html_entity_decode($str, ENT_NOQUOTES, 'UTF-8');
407 407
         // Remove any embedded Twig code
@@ -481,7 +481,7 @@  discard block
 block discarded – undo
481 481
             $language = 'English';
482 482
         }
483 483
 
484
-        $className = 'PhpScience\\TextRank\\Tool\\StopWords\\' . ucfirst($language);
484
+        $className = 'PhpScience\\TextRank\\Tool\\StopWords\\'.ucfirst($language);
485 485
         if (class_exists($className)) {
486 486
             $stopWords = new $className();
487 487
         }
Please login to merge, or discard this patch.
src/helpers/Sitemap.php 1 patch
Spacing   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -104,7 +104,7 @@  discard block
 block discarded – undo
104 104
 
105 105
         // Output some info if this is a console app
106 106
         if ($job && Craft::$app instanceof ConsoleApplication) {
107
-            echo $job->description . PHP_EOL;
107
+            echo $job->description.PHP_EOL;
108 108
         }
109 109
 
110 110
         $lines = [];
@@ -164,8 +164,8 @@  discard block
 block discarded – undo
164 164
             while ($currentElement < $totalElements) {
165 165
                 $elements = $paginator->getPageResults();
166 166
                 if (Craft::$app instanceof ConsoleApplication) {
167
-                    echo 'Query ' . $paginator->getCurrentPage() . '/' . $paginator->getTotalPages()
168
-                        . ' - elements: ' . $paginator->getTotalResults()
167
+                    echo 'Query '.$paginator->getCurrentPage().'/'.$paginator->getTotalPages()
168
+                        . ' - elements: '.$paginator->getTotalResults()
169 169
                         . PHP_EOL;
170 170
                 }
171 171
                 /** @var ElementInterface $element */
@@ -177,7 +177,7 @@  discard block
 block discarded – undo
177 177
                     }
178 178
                     // Output some info if this is a console app
179 179
                     if (Craft::$app instanceof ConsoleApplication) {
180
-                        echo "Processing element {$currentElement}/{$totalElements} - {$element->title}" . PHP_EOL;
180
+                        echo "Processing element {$currentElement}/{$totalElements} - {$element->title}".PHP_EOL;
181 181
                     }
182 182
 
183 183
                     $metaBundle->metaSitemapVars->setAttributes($stashedSitemapAttrs, false);
@@ -225,7 +225,7 @@  discard block
 block discarded – undo
225 225
                             }
226 226
                             $canonicalUrl = UrlHelper::absoluteUrlWithProtocol($canonicalUrl);
227 227
                             if ($url !== $canonicalUrl) {
228
-                                Craft::info("Excluding URL: {$url} from the sitemap because it does not match the Canonical URL: {$canonicalUrl} - " . $metaBundle->metaGlobalVars->canonicalUrl . " - " . $element->uri);
228
+                                Craft::info("Excluding URL: {$url} from the sitemap because it does not match the Canonical URL: {$canonicalUrl} - ".$metaBundle->metaGlobalVars->canonicalUrl." - ".$element->uri);
229 229
                                 continue;
230 230
                             }
231 231
                         }
@@ -286,12 +286,12 @@  discard block
 block discarded – undo
286 286
                                                 if ($primarySiteId === $altSourceSiteId && Seomatic::$settings->addXDefaultHrefLang) {
287 287
                                                     $lines[] = '<xhtml:link rel="alternate"'
288 288
                                                         . ' hreflang="x-default"'
289
-                                                        . ' href="' . Html::encode($altUrl) . '"'
289
+                                                        . ' href="'.Html::encode($altUrl).'"'
290 290
                                                         . ' />';
291 291
                                                 }
292 292
                                                 $lines[] = '<xhtml:link rel="alternate"'
293
-                                                    . ' hreflang="' . $altSiteSettings['language'] . '"'
294
-                                                    . ' href="' . Html::encode($altUrl) . '"'
293
+                                                    . ' hreflang="'.$altSiteSettings['language'].'"'
294
+                                                    . ' href="'.Html::encode($altUrl).'"'
295 295
                                                     . ' />';
296 296
                                             }
297 297
                                         }
@@ -391,11 +391,11 @@  discard block
 block discarded – undo
391 391
         }
392 392
 
393 393
         $cache = Craft::$app->getCache();
394
-        $cacheKey = SitemapTemplate::CACHE_KEY . $groupId . $type . $handle . $siteId;
394
+        $cacheKey = SitemapTemplate::CACHE_KEY.$groupId.$type.$handle.$siteId;
395 395
         $dependency = new TagDependency([
396 396
             'tags' => [
397 397
                 SitemapTemplate::GLOBAL_SITEMAP_CACHE_TAG,
398
-                SitemapTemplate::SITEMAP_CACHE_TAG . $handle . $siteId,
398
+                SitemapTemplate::SITEMAP_CACHE_TAG.$handle.$siteId,
399 399
             ],
400 400
         ]);
401 401
         $lines = implode('', $lines);
@@ -408,10 +408,10 @@  discard block
 block discarded – undo
408 408
         $result = $cache->set($cacheKey, $lines, $cacheDuration, $dependency);
409 409
         // Remove the queue job id from the cache too
410 410
         $cache->delete($queueJobCacheKey);
411
-        Craft::debug('Sitemap cache result: ' . print_r($result, true) . ' for cache key: ' . $cacheKey, __METHOD__);
411
+        Craft::debug('Sitemap cache result: '.print_r($result, true).' for cache key: '.$cacheKey, __METHOD__);
412 412
         // Output some info if this is a console app
413 413
         if (Craft::$app instanceof ConsoleApplication) {
414
-            echo 'Sitemap cache result: ' . print_r($result, true) . ' for cache key: ' . $cacheKey . PHP_EOL;
414
+            echo 'Sitemap cache result: '.print_r($result, true).' for cache key: '.$cacheKey.PHP_EOL;
415 415
         }
416 416
         // If the FastCGI Cache Bust plugin is installed, clear its caches too
417 417
         $plugin = Craft::$app->getPlugins()->getPlugin('fastcgi-cache-bust');
@@ -524,7 +524,7 @@  discard block
 block discarded – undo
524 524
      */
525 525
     protected static function assetSitemapItem(Asset $asset, MetaBundle $metaBundle, array &$lines)
526 526
     {
527
-        if ((bool)$asset->enabledForSite && $asset->getUrl() !== null) {
527
+        if ((bool) $asset->enabledForSite && $asset->getUrl() !== null) {
528 528
             switch ($asset->kind) {
529 529
                 case 'image':
530 530
                     $lines[] = '<image:image>';
@@ -536,9 +536,9 @@  discard block
 block discarded – undo
536 536
                         $fieldName = $row['field'] ?? '';
537 537
                         $propName = $row['property'] ?? '';
538 538
                         if (!empty($asset[$fieldName]) && !empty($propName)) {
539
-                            $lines[] = '<image:' . $propName . '>';
539
+                            $lines[] = '<image:'.$propName.'>';
540 540
                             $lines[] = Html::encode($asset[$fieldName]);
541
-                            $lines[] = '</image:' . $propName . '>';
541
+                            $lines[] = '</image:'.$propName.'>';
542 542
                         }
543 543
                     }
544 544
                     $lines[] = '</image:image>';
@@ -554,9 +554,9 @@  discard block
 block discarded – undo
554 554
                         $fieldName = $row['field'] ?? '';
555 555
                         $propName = $row['property'] ?? '';
556 556
                         if (!empty($asset[$fieldName]) && !empty($propName)) {
557
-                            $lines[] = '<video:' . $propName . '>';
557
+                            $lines[] = '<video:'.$propName.'>';
558 558
                             $lines[] = Html::encode($asset[$fieldName]);
559
-                            $lines[] = '</video:' . $propName . '>';
559
+                            $lines[] = '</video:'.$propName.'>';
560 560
                         }
561 561
                     }
562 562
                     $lines[] = '</video:video>';
@@ -572,7 +572,7 @@  discard block
 block discarded – undo
572 572
      */
573 573
     protected static function assetFilesSitemapLink(Asset $asset, MetaBundle $metaBundle, array &$lines)
574 574
     {
575
-        if ((bool)$asset->enabledForSite && $asset->getUrl() !== null) {
575
+        if ((bool) $asset->enabledForSite && $asset->getUrl() !== null) {
576 576
             if (\in_array($asset->kind, SitemapTemplate::FILE_TYPES, false)) {
577 577
                 $dateUpdated = $asset->dateUpdated ?? $asset->dateCreated ?? new \DateTime();
578 578
                 $lines[] = '<url>';
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.