@@ -60,7 +60,7 @@ discard block |
||
| 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 |
||
| 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', |