Passed
Push — v3 ( 2d07e9...8d152e )
by Andrew
16:09 queued 08:23
created
src/helpers/DynamicMeta.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
     {
99 99
         if ($pageInfo !== null && $pageInfo->currentPage !== null) {
100 100
             // Let the meta containers know that this page is paginated
101
-            Seomatic::$plugin->metaContainers->paginationPage = (string)$pageInfo->currentPage;
101
+            Seomatic::$plugin->metaContainers->paginationPage = (string) $pageInfo->currentPage;
102 102
             // Set the current page
103 103
             $url = $pageInfo->getPageUrl($pageInfo->currentPage);
104 104
             $url = self::sanitizeUrl($url);
@@ -381,7 +381,7 @@  discard block
 block discarded – undo
381 381
         if ($lastElement && $element) {
382 382
             if ($lastElement->uri !== '__home__' && $element->uri) {
383 383
                 $path = $lastElement->uri;
384
-                $segments = array_values(array_filter(explode('/', $path), function ($segment) {
384
+                $segments = array_values(array_filter(explode('/', $path), function($segment) {
385 385
                     return $segment !== '';
386 386
                 }));
387 387
             }
@@ -551,7 +551,7 @@  discard block
 block discarded – undo
551 551
                     $element = $elements->getElementByUri($url, $site->id, false);
552 552
                 }
553 553
                 if ($element !== null) {
554
-                    if (isset($element->enabledForSite) && !(bool)$element->enabledForSite) {
554
+                    if (isset($element->enabledForSite) && !(bool) $element->enabledForSite) {
555 555
                         $includeUrl = false;
556 556
                     }
557 557
                     /** @var MetaBundle $metaBundle */
Please login to merge, or discard this patch.