Passed
Push — master ( 5109c8...3e8122 )
by compolom
01:40
created
src/Image.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 Compolomus\Compomage;
4 4
 
Please login to merge, or discard this patch.
src/Interfaces/ImageInterface.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 Compolomus\Compomage\Interfaces;
4 4
 
Please login to merge, or discard this patch.
src/GD.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 Compolomus\Compomage;
4 4
 
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
     public function resize(int $width, int $height): ImageInterface
78 78
     {
79 79
         $newimage = $this->newImage($width, $height);
80
-        imagecopyresampled($newimage, $this->getImage(), 0, 0, 0, 0, $width, $height, $this->getWidth() , $this->getHeight());
80
+        imagecopyresampled($newimage, $this->getImage(), 0, 0, 0, 0, $width, $height, $this->getWidth(), $this->getHeight());
81 81
         $this->setImage($newimage);
82 82
         $this->setSizes();
83 83
 
Please login to merge, or discard this patch.
src/Imagick.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 Compolomus\Compomage;
4 4
 
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
         $image = new \Imagick;
27 27
         if ($image->readImageBlob($source)) {
28 28
             if ($image->getImageAlphaChannel() !== \Imagick::ALPHACHANNEL_ACTIVATE) {
29
-                $image->setImageAlphaChannel(\Imagick::ALPHACHANNEL_SET);  // 8
29
+                $image->setImageAlphaChannel(\Imagick::ALPHACHANNEL_SET); // 8
30 30
                 #$image->setImageAlphaChannel(\Imagick::ALPHACHANNEL_OPAQUE); // 6
31 31
             }
32 32
         }
Please login to merge, or discard this patch.
src/AbstractImage.php 1 patch
Spacing   +3 added lines, -5 removed lines patch added patch discarded remove patch
@@ -29,12 +29,10 @@  discard block
 block discarded – undo
29 29
         switch ($image) {
30 30
             // base64
31 31
             case (preg_match('#^[a-zA-Z0-9+/]+={0,2}$#',
32
-                $image) ? true : false) :
33
-                $this->getImageByBase64($image);
32
+                $image) ? true : false) : $this->getImageByBase64($image);
34 33
                 break;
35 34
             // URL
36
-            case (substr($image, 0, 4) == 'http' ? true : false) :
37
-                $this->getImageByURL($image);
35
+            case (substr($image, 0, 4) == 'http' ? true : false) : $this->getImageByURL($image);
38 36
                 break;
39 37
             // Local file
40 38
             default:
@@ -49,7 +47,7 @@  discard block
 block discarded – undo
49 47
      */
50 48
     protected function getImageByURL(string $url): ?\Exception
51 49
     {
52
-        list(, , $type) = getimagesize($url);
50
+        list(,, $type) = getimagesize($url);
53 51
         if ($type) {
54 52
             $upload = new \SplFileObject($url, 'rb');
55 53
             $image = '';
Please login to merge, or discard this patch.