@@ -1,4 +1,4 @@ |
||
1 | -<?php declare(strict_types=1); |
|
1 | +<?php declare(strict_types = 1); |
|
2 | 2 | |
3 | 3 | namespace Compolomus\Compomage; |
4 | 4 |
@@ -1,4 +1,4 @@ |
||
1 | -<?php declare(strict_types=1); |
|
1 | +<?php declare(strict_types = 1); |
|
2 | 2 | |
3 | 3 | namespace Compolomus\Compomage\Interfaces; |
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 Compolomus\Compomage; |
4 | 4 | |
@@ -77,7 +77,7 @@ discard block |
||
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 |
@@ -1,4 +1,4 @@ discard block |
||
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 |
||
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 | } |
@@ -48,7 +48,7 @@ |
||
48 | 48 | */ |
49 | 49 | protected function getImageByURL(string $url): ?\Exception |
50 | 50 | { |
51 | - [, , $type] = getimagesize($url); |
|
51 | + [,, $type] = getimagesize($url); |
|
52 | 52 | if ($type) { |
53 | 53 | $upload = new \SplFileObject($url, 'rb'); |
54 | 54 | $image = ''; |