@@ -1,4 +1,4 @@ |
||
1 | -<?php declare(strict_types=1); |
|
1 | +<?php declare(strict_types = 1); |
|
2 | 2 | |
3 | 3 | namespace Goose\Modules; |
4 | 4 |
@@ -1,4 +1,4 @@ |
||
1 | -<?php declare(strict_types=1); |
|
1 | +<?php declare(strict_types = 1); |
|
2 | 2 | |
3 | 3 | namespace Goose\Modules\Extractors; |
4 | 4 |
@@ -1,4 +1,4 @@ discard block |
||
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 |
||
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 |
||
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 |
@@ -1,4 +1,4 @@ |
||
1 | -<?php declare(strict_types=1); |
|
1 | +<?php declare(strict_types = 1); |
|
2 | 2 | |
3 | 3 | namespace Goose; |
4 | 4 |
@@ -1,4 +1,4 @@ |
||
1 | -<?php declare(strict_types=1); |
|
1 | +<?php declare(strict_types = 1); |
|
2 | 2 | |
3 | 3 | namespace Goose; |
4 | 4 |
@@ -1,4 +1,4 @@ |
||
1 | -<?php declare(strict_types=1); |
|
1 | +<?php declare(strict_types = 1); |
|
2 | 2 | |
3 | 3 | namespace Goose\Exceptions; |
4 | 4 |
@@ -1,4 +1,4 @@ |
||
1 | -<?php declare(strict_types=1); |
|
1 | +<?php declare(strict_types = 1); |
|
2 | 2 | |
3 | 3 | namespace Goose\Images; |
4 | 4 |
@@ -1,4 +1,4 @@ discard block |
||
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 |
||
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); |
@@ -1,4 +1,4 @@ discard block |
||
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 |
||
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); |