@@ -102,7 +102,7 @@ discard block |
||
102 | 102 | { |
103 | 103 | if ($pageInfo !== null && $pageInfo->currentPage !== null) { |
104 | 104 | // Let the meta containers know that this page is paginated |
105 | - Seomatic::$plugin->metaContainers->paginationPage = (string)$pageInfo->currentPage; |
|
105 | + Seomatic::$plugin->metaContainers->paginationPage = (string) $pageInfo->currentPage; |
|
106 | 106 | // Set the the canonical URL to be the paginated URL |
107 | 107 | // see: https://github.com/nystudio107/craft-seomatic/issues/375#issuecomment-488369209 |
108 | 108 | $url = $pageInfo->getPageUrl($pageInfo->currentPage); |
@@ -226,7 +226,7 @@ discard block |
||
226 | 226 | if (!empty(Seomatic::$settings->cspScriptSrcPolicies)) { |
227 | 227 | $fixedCsps = Seomatic::$settings->cspScriptSrcPolicies; |
228 | 228 | $iterator = new \RecursiveIteratorIterator(new \RecursiveArrayIterator($fixedCsps)); |
229 | - foreach($iterator as $value) { |
|
229 | + foreach ($iterator as $value) { |
|
230 | 230 | $cspNonces[] = $value; |
231 | 231 | } |
232 | 232 | } |
@@ -458,7 +458,7 @@ discard block |
||
458 | 458 | if ($lastElement && $element) { |
459 | 459 | if ($lastElement->uri !== '__home__' && $element->uri) { |
460 | 460 | $path = $lastElement->uri; |
461 | - $segments = array_values(array_filter(explode('/', $path), function ($segment) { |
|
461 | + $segments = array_values(array_filter(explode('/', $path), function($segment) { |
|
462 | 462 | return $segment !== ''; |
463 | 463 | })); |
464 | 464 | } |
@@ -630,7 +630,7 @@ discard block |
||
630 | 630 | $element = $elements->getElementByUri($url, $site->id, false); |
631 | 631 | } |
632 | 632 | if ($element !== null) { |
633 | - if (isset($element->enabledForSite) && !(bool)$element->enabledForSite) { |
|
633 | + if (isset($element->enabledForSite) && !(bool) $element->enabledForSite) { |
|
634 | 634 | $includeUrl = false; |
635 | 635 | } |
636 | 636 | /** @var MetaBundle $metaBundle */ |
@@ -746,7 +746,7 @@ discard block |
||
746 | 746 | if (isset($value[$day][$time]) |
747 | 747 | && ($date = DateTimeHelper::toDateTime($value[$day][$time])) !== false |
748 | 748 | ) { |
749 | - $normalized[$day][$time] = (array)($date); |
|
749 | + $normalized[$day][$time] = (array) ($date); |
|
750 | 750 | } else { |
751 | 751 | $normalized[$day][$time] = null; |
752 | 752 | } |