Completed
Push — master ( 7c1730...75be4d )
by Andrew
05:57
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/Modules/Extractors/PublishDateExtractor.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\Modules\Extractors;
4 4
 
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
     private function getDateFromURL(): ?\DateTime {
52 52
         // Determine date based on URL
53 53
         if (preg_match('@(?:[\d]{4})(?<delimiter>[/-])(?:[\d]{2})\k<delimiter>(?:[\d]{2})@U', $this->article()->getFinalUrl(), $matches)) {
54
-            $dt = \DateTime::createFromFormat('Y' . $matches['delimiter'] . 'm' . $matches['delimiter'] . 'd', $matches[0]);
54
+            $dt = \DateTime::createFromFormat('Y'.$matches['delimiter'].'m'.$matches['delimiter'].'d', $matches[0]);
55 55
             $dt->setTime(0, 0, 0);
56 56
 
57 57
             if ($dt === false) {
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/Client.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/Images/Image.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
 
@@ -16,7 +16,7 @@  discard block
 block discarded – undo
16 16
      */
17 17
     public function __construct($options = []) {
18 18
         foreach ($options as $key => $value) {
19
-            $method = 'set' . ucfirst($key);
19
+            $method = 'set'.ucfirst($key);
20 20
 
21 21
             if (method_exists($this, $method)) {
22 22
                 call_user_func([$this, $method], $value);
Please login to merge, or discard this patch.