Completed
Push — master ( 7c1730...75be4d )
by Andrew
05:57
created
src/Modules/Extractors/ImageExtractor.php 1 patch
Spacing   +6 added lines, -6 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
 
@@ -348,7 +348,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 
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/Configuration.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/Article.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.