Passed
Push — master ( 3e55a1...ac8e9c )
by Tim
04:18
created
src/SiteTreeCanonicalExtension.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
             // add canonicalBase if relative URL
61 61
             if (isset($link)) {
62 62
                 $urlArray = parse_url($link);
63
-                if (!isset($urlArray['host']) && !isset($urlArray['scheme'])) {
63
+                if (!isset($urlArray[ 'host' ]) && !isset($urlArray[ 'scheme' ])) {
64 64
                     $link = $canonicalBase . $link;
65 65
                 }
66 66
             } else {
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
     public function MetaComponents(array &$tags)
76 76
     {
77 77
         if ($canonLink = $this->getorsetCanonicalURL()) {
78
-            $tags['canonical'] = [
78
+            $tags[ 'canonical' ] = [
79 79
                 'tag' => 'link',
80 80
                 'attributes' => [
81 81
                     'rel' => 'canonical',
Please login to merge, or discard this patch.