@@ -76,7 +76,7 @@ discard block |
||
76 | 76 | { |
77 | 77 | if ($pageInfo !== null && $pageInfo->currentPage !== null) { |
78 | 78 | // Let the meta containers know that this page is paginated |
79 | - Seomatic::$plugin->metaContainers->paginationPage = (string)$pageInfo->currentPage; |
|
79 | + Seomatic::$plugin->metaContainers->paginationPage = (string) $pageInfo->currentPage; |
|
80 | 80 | // Set the current page |
81 | 81 | $url = $pageInfo->getPageUrl($pageInfo->currentPage); |
82 | 82 | if (!empty($url)) { |
@@ -358,7 +358,7 @@ discard block |
||
358 | 358 | if ($lastElement && $element) { |
359 | 359 | if ($lastElement->uri !== '__home__' && $element->uri) { |
360 | 360 | $path = $lastElement->uri; |
361 | - $segments = array_values(array_filter(explode('/', $path), function ($segment) { |
|
361 | + $segments = array_values(array_filter(explode('/', $path), function($segment) { |
|
362 | 362 | return $segment !== ''; |
363 | 363 | })); |
364 | 364 | } |
@@ -528,7 +528,7 @@ discard block |
||
528 | 528 | $element = $elements->getElementByUri($url, $site->id, false); |
529 | 529 | } |
530 | 530 | if ($element !== null) { |
531 | - if (isset($element->enabledForSite) && !(bool)$element->enabledForSite) { |
|
531 | + if (isset($element->enabledForSite) && !(bool) $element->enabledForSite) { |
|
532 | 532 | $includeUrl = false; |
533 | 533 | } |
534 | 534 | /** @var MetaBundle $metaBundle */ |