Passed
Push — develop ( 07ae59...e474a8 )
by Andrew
09:22
created
src/helpers/DynamicMeta.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -102,7 +102,7 @@  discard block
 block discarded – undo
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 first page of the paginated pages
107 107
             // see: https://github.com/nystudio107/craft-seomatic/issues/375#issuecomment-488369209
108 108
             $url = $pageInfo->getPageUrl($pageInfo->currentPage);
@@ -223,7 +223,7 @@  discard block
 block discarded – undo
223 223
         if (!empty(Seomatic::$settings->cspScriptSrcPolicies)) {
224 224
             $fixedCsps = Seomatic::$settings->cspScriptSrcPolicies;
225 225
             $iterator = new \RecursiveIteratorIterator(new \RecursiveArrayIterator($fixedCsps));
226
-            foreach($iterator as $value) {
226
+            foreach ($iterator as $value) {
227 227
                 $cspNonces[] = $value;
228 228
             }
229 229
         }
@@ -455,7 +455,7 @@  discard block
 block discarded – undo
455 455
         if ($lastElement && $element) {
456 456
             if ($lastElement->uri !== '__home__' && $element->uri) {
457 457
                 $path = $lastElement->uri;
458
-                $segments = array_values(array_filter(explode('/', $path), function ($segment) {
458
+                $segments = array_values(array_filter(explode('/', $path), function($segment) {
459 459
                     return $segment !== '';
460 460
                 }));
461 461
             }
@@ -626,7 +626,7 @@  discard block
 block discarded – undo
626 626
                     $element = $elements->getElementByUri($url, $site->id, false);
627 627
                 }
628 628
                 if ($element !== null) {
629
-                    if (isset($element->enabledForSite) && !(bool)$element->enabledForSite) {
629
+                    if (isset($element->enabledForSite) && !(bool) $element->enabledForSite) {
630 630
                         $includeUrl = false;
631 631
                     }
632 632
                     /** @var MetaBundle $metaBundle */
@@ -742,7 +742,7 @@  discard block
 block discarded – undo
742 742
                 if (isset($value[$day][$time])
743 743
                     && ($date = DateTimeHelper::toDateTime($value[$day][$time])) !== false
744 744
                 ) {
745
-                    $normalized[$day][$time] = (array)($date);
745
+                    $normalized[$day][$time] = (array) ($date);
746 746
                 } else {
747 747
                     $normalized[$day][$time] = null;
748 748
                 }
Please login to merge, or discard this patch.