|
@@ -83,7 +83,7 @@ discard block |
|
|
block discarded – undo |
|
83
|
83
|
|
|
84
|
84
|
// Additionally retrieve type values based on provided og:type (http://ogp.me/#types) |
|
85
|
85
|
if (isset($results['type'])) { |
|
86
|
|
- $nodes = $this->article()->getDoc()->find('meta[property^="' . $results['type'] .':"]'); |
|
|
86
|
+ $nodes = $this->article()->getDoc()->find('meta[property^="'.$results['type'].':"]'); |
|
87
|
87
|
|
|
88
|
88
|
foreach ($nodes as $node) { |
|
89
|
89
|
$property = explode(':', $node->attr('property')); |
|
@@ -334,7 +334,7 @@ discard block |
|
|
block discarded – undo |
|
334
|
334
|
$srcHost = parse_url($src, PHP_URL_HOST); |
|
335
|
335
|
$srcScheme = parse_url($src, PHP_URL_SCHEME); |
|
336
|
336
|
|
|
337
|
|
- return $match || preg_match('@' . $domain . '$@i', $srcHost) && in_array($srcScheme, ['http', 'https']); |
|
|
337
|
+ return $match || preg_match('@'.$domain.'$@i', $srcHost) && in_array($srcScheme, ['http', 'https']); |
|
338
|
338
|
}); |
|
339
|
339
|
|
|
340
|
340
|
if ($match) { |
|
@@ -376,10 +376,10 @@ discard block |
|
|
block discarded – undo |
|
376
|
376
|
$stopWords = $this->config()->getStopWords()->getCurrentStopWords(); |
|
377
|
377
|
|
|
378
|
378
|
$text = $this->article()->getTitle(); |
|
379
|
|
- $text .= ' ' . $this->article()->getMetaDescription(); |
|
|
379
|
+ $text .= ' '.$this->article()->getMetaDescription(); |
|
380
|
380
|
|
|
381
|
381
|
if ($this->article()->getTopNode()) { |
|
382
|
|
- $text .= ' ' . $this->article()->getCleanedArticleText(); |
|
|
382
|
+ $text .= ' '.$this->article()->getCleanedArticleText(); |
|
383
|
383
|
} |
|
384
|
384
|
|
|
385
|
385
|
// Decode and split words by white-space |