Completed
Push — master ( c7a267...479701 )
by Andrew
03:34
created
src/Modules/Extractors/AdditionalDataExtractor.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
Please login to merge, or discard this patch.
src/Modules/Extractors/MetaExtractor.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@
 block discarded – undo
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'));
Please login to merge, or discard this patch.