@@ -84,7 +84,7 @@ discard block |
||
| 84 | 84 | $srcHost = parse_url($src, PHP_URL_HOST); |
| 85 | 85 | $srcScheme = parse_url($src, PHP_URL_SCHEME); |
| 86 | 86 | |
| 87 | - return $match || preg_match('@' . $domain . '$@i', $srcHost) && in_array($srcScheme, ['http', 'https']); |
|
| 87 | + return $match || preg_match('@'.$domain.'$@i', $srcHost) && in_array($srcScheme, ['http', 'https']); |
|
| 88 | 88 | }); |
| 89 | 89 | |
| 90 | 90 | if ($match) { |
@@ -126,10 +126,10 @@ discard block |
||
| 126 | 126 | $stopWords = $this->config()->getStopWords()->getCurrentStopWords(); |
| 127 | 127 | |
| 128 | 128 | $text = $this->article()->getTitle(); |
| 129 | - $text .= ' ' . $this->article()->getMetaDescription(); |
|
| 129 | + $text .= ' '.$this->article()->getMetaDescription(); |
|
| 130 | 130 | |
| 131 | 131 | if ($this->article()->getTopNode()) { |
| 132 | - $text .= ' ' . $this->article()->getCleanedArticleText(); |
|
| 132 | + $text .= ' '.$this->article()->getCleanedArticleText(); |
|
| 133 | 133 | } |
| 134 | 134 | |
| 135 | 135 | // Decode and split words by white-space |
@@ -60,7 +60,7 @@ |
||
| 60 | 60 | |
| 61 | 61 | // Additionally retrieve type values based on provided og:type (http://ogp.me/#types) |
| 62 | 62 | if (isset($results['type'])) { |
| 63 | - $nodes = $this->article()->getDoc()->find('meta[property^="' . $results['type'] .':"]'); |
|
| 63 | + $nodes = $this->article()->getDoc()->find('meta[property^="'.$results['type'].':"]'); |
|
| 64 | 64 | |
| 65 | 65 | foreach ($nodes as $node) { |
| 66 | 66 | $property = explode(':', $node->attr('property')); |