@@ -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 | |
@@ -348,7 +348,7 @@ discard block |
||
348 | 348 | return false; |
349 | 349 | } |
350 | 350 | |
351 | - $regex = '@' . implode('|', $this->badFileNames) . '@i'; |
|
351 | + $regex = '@'.implode('|', $this->badFileNames).'@i'; |
|
352 | 352 | |
353 | 353 | if (preg_match($regex, $imgSrc)) { |
354 | 354 | return false; |
@@ -546,10 +546,10 @@ discard block |
||
546 | 546 | $knownImage = null; |
547 | 547 | |
548 | 548 | foreach ($knownImgDomNames as $knownName) { |
549 | - $known = $this->article()->getRawDoc()->find('#' . $knownName); |
|
549 | + $known = $this->article()->getRawDoc()->find('#'.$knownName); |
|
550 | 550 | |
551 | 551 | if (!$known->count()) { |
552 | - $known = $this->article()->getRawDoc()->find('.' . $knownName); |
|
552 | + $known = $this->article()->getRawDoc()->find('.'.$knownName); |
|
553 | 553 | } |
554 | 554 | |
555 | 555 | if ($known->count()) { |
@@ -604,7 +604,7 @@ discard block |
||
604 | 604 | $articleUrlParts = parse_url($this->article()->getFinalUrl()); |
605 | 605 | if (isset($imageUrlParts['path'], $articleUrlParts['path']) && $imageUrlParts['path'] && $imageUrlParts['path']{0} !== '/') { |
606 | 606 | $articleUrlDir = dirname($articleUrlParts['path']); |
607 | - $imageUrlParts['path'] = $articleUrlDir . '/' . $imageUrlParts['path']; |
|
607 | + $imageUrlParts['path'] = $articleUrlDir.'/'.$imageUrlParts['path']; |
|
608 | 608 | } |
609 | 609 | |
610 | 610 | foreach ($parts as $part) { |
@@ -626,7 +626,7 @@ discard block |
||
626 | 626 | */ |
627 | 627 | private function customSiteMapping(): array { |
628 | 628 | if (empty(self::$CUSTOM_SITE_MAPPING)) { |
629 | - $file = __DIR__ . '/../../../resources/images/known-image-css.txt'; |
|
629 | + $file = __DIR__.'/../../../resources/images/known-image-css.txt'; |
|
630 | 630 | |
631 | 631 | $lines = explode("\n", str_replace(["\r\n", "\r"], "\n", file_get_contents($file))); |
632 | 632 |
@@ -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; |
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); |