@@ -165,7 +165,7 @@ |
||
165 | 165 | $headers = $topNode->find('h1, h2, h3, h4, h5, h6'); |
166 | 166 | |
167 | 167 | foreach ($headers as $header) { |
168 | - $header->replaceWith(new Text("\n\n" . $this->getTagCleanedText($header) . "\n\n")); |
|
168 | + $header->replaceWith(new Text("\n\n".$this->getTagCleanedText($header)."\n\n")); |
|
169 | 169 | } |
170 | 170 | } |
171 | 171 | } |
@@ -87,7 +87,7 @@ discard block |
||
87 | 87 | $srcHost = parse_url($src, PHP_URL_HOST); |
88 | 88 | $srcScheme = parse_url($src, PHP_URL_SCHEME); |
89 | 89 | |
90 | - return $match || preg_match('@' . $domain . '$@i', $srcHost) && in_array($srcScheme, ['http', 'https']); |
|
90 | + return $match || preg_match('@'.$domain.'$@i', $srcHost) && in_array($srcScheme, ['http', 'https']); |
|
91 | 91 | }); |
92 | 92 | |
93 | 93 | if ($match) { |
@@ -134,10 +134,10 @@ discard block |
||
134 | 134 | $stopWords = $this->config()->getStopWords()->getCurrentStopWords(); |
135 | 135 | |
136 | 136 | $text = $this->article()->getTitle(); |
137 | - $text .= ' ' . $this->article()->getMetaDescription(); |
|
137 | + $text .= ' '.$this->article()->getMetaDescription(); |
|
138 | 138 | |
139 | 139 | if ($this->article()->getTopNode()) { |
140 | - $text .= ' ' . $this->article()->getCleanedArticleText(); |
|
140 | + $text .= ' '.$this->article()->getCleanedArticleText(); |
|
141 | 141 | } |
142 | 142 | |
143 | 143 | // Decode and split words by white-space |