Completed
Push — master ( 75be4d...81eaf3 )
by Andrew
01:49
created
src/Modules/Extractors/ContentExtractor.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
1
-<?php declare(strict_types=1);
1
+<?php declare(strict_types = 1);
2 2
 
3 3
 namespace Goose\Modules\Extractors;
4 4
 
Please login to merge, or discard this patch.
src/Modules/Extractors/AdditionalDataExtractor.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@  discard block
 block discarded – undo
1
-<?php declare(strict_types=1);
1
+<?php declare(strict_types = 1);
2 2
 
3 3
 namespace Goose\Modules\Extractors;
4 4
 
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
                     $srcHost = parse_url($src, PHP_URL_HOST);
87 87
                     $srcScheme = parse_url($src, PHP_URL_SCHEME);
88 88
 
89
-                    return $match || preg_match('@' . $domain . '$@i', $srcHost) && in_array($srcScheme, ['http', 'https']);
89
+                    return $match || preg_match('@'.$domain.'$@i', $srcHost) && in_array($srcScheme, ['http', 'https']);
90 90
                 });
91 91
 
92 92
                 if ($match) {
@@ -133,10 +133,10 @@  discard block
 block discarded – undo
133 133
         $stopWords = $this->config()->getStopWords()->getWordList();
134 134
 
135 135
         $text = $this->article()->getTitle();
136
-        $text .= ' ' . $this->article()->getMetaDescription();
136
+        $text .= ' '.$this->article()->getMetaDescription();
137 137
 
138 138
         if ($this->article()->getTopNode()) {
139
-            $text .= ' ' . $this->article()->getCleanedArticleText();
139
+            $text .= ' '.$this->article()->getCleanedArticleText();
140 140
         }
141 141
 
142 142
         // Decode and split words by white-space
Please login to merge, or discard this patch.
src/Crawler.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
1
-<?php declare(strict_types=1);
1
+<?php declare(strict_types = 1);
2 2
 
3 3
 namespace Goose;
4 4
 
Please login to merge, or discard this patch.
src/Exceptions/MalformedURLException.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
1
-<?php declare(strict_types=1);
1
+<?php declare(strict_types = 1);
2 2
 
3 3
 namespace Goose\Exceptions;
4 4
 
Please login to merge, or discard this patch.
src/Images/ImageUtils.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
1
-<?php declare(strict_types=1);
1
+<?php declare(strict_types = 1);
2 2
 
3 3
 namespace Goose\Images;
4 4
 
Please login to merge, or discard this patch.
src/Images/LocallyStoredImage.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@  discard block
 block discarded – undo
1
-<?php declare(strict_types=1);
1
+<?php declare(strict_types = 1);
2 2
 
3 3
 namespace Goose\Images;
4 4
 
@@ -14,7 +14,7 @@  discard block
 block discarded – undo
14 14
      */
15 15
     public function __construct($options = []) {
16 16
         foreach ($options as $key => $value) {
17
-            $method = 'set' . ucfirst($key);
17
+            $method = 'set'.ucfirst($key);
18 18
 
19 19
             if (method_exists($this, $method)) {
20 20
                 call_user_func([$this, $method], $value);
Please login to merge, or discard this patch.
src/Traits/NodeCommonTrait.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
1
-<?php declare(strict_types=1);
1
+<?php declare(strict_types = 1);
2 2
 
3 3
 namespace Goose\Traits;
4 4
 
Please login to merge, or discard this patch.
src/Utils/Helper.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@  discard block
 block discarded – undo
1
-<?php declare(strict_types=1);
1
+<?php declare(strict_types = 1);
2 2
 
3 3
 namespace Goose\Utils;
4 4
 
@@ -22,12 +22,12 @@  discard block
 block discarded – undo
22 22
         $parts = parse_url($urlToCrawl);
23 23
 
24 24
         if ($parts === false) {
25
-            throw new MalformedURLException($urlToCrawl . ' - is a malformed URL and cannot be processed');
25
+            throw new MalformedURLException($urlToCrawl.' - is a malformed URL and cannot be processed');
26 26
         }
27 27
 
28 28
         $prefix = isset($parts['query']) && $parts['query'] ? '&' : '?';
29 29
 
30
-        $finalUrl = str_replace('#!', $prefix . '_escaped_fragment_=', $urlToCrawl);
30
+        $finalUrl = str_replace('#!', $prefix.'_escaped_fragment_=', $urlToCrawl);
31 31
 
32 32
         return (object)[
33 33
             'url' => $urlToCrawl,
Please login to merge, or discard this patch.
src/Modules/AbstractModule.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
1
-<?php declare(strict_types=1);
1
+<?php declare(strict_types = 1);
2 2
 
3 3
 namespace Goose\Modules;
4 4
 
Please login to merge, or discard this patch.