Skip to content

Commit acc31c5

Browse files
patinthehatgithub-actions[bot]
authored andcommitted
Fix styling
1 parent bdb0922 commit acc31c5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/Pdf.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
namespace Spatie\PdfToImage;
44

55
use Imagick;
6+
use ImagickPixel;
67
use Spatie\PdfToImage\DTOs\PageSize;
78
use Spatie\PdfToImage\DTOs\PdfPage;
89
use Spatie\PdfToImage\Enums\LayerMethod;
@@ -12,7 +13,6 @@
1213
use Spatie\PdfToImage\Exceptions\InvalidSize;
1314
use Spatie\PdfToImage\Exceptions\PageDoesNotExist;
1415
use Spatie\PdfToImage\Exceptions\PdfDoesNotExist;
15-
use ImagickPixel;
1616

1717
class Pdf
1818
{
@@ -152,7 +152,7 @@ public function selectPages(int ...$pages): static
152152
public function pageCount(): int
153153
{
154154
if ($this->imagick === null) {
155-
$this->imagick = new Imagick();
155+
$this->imagick = new Imagick;
156156
$this->imagick->pingImage($this->filename);
157157
}
158158

@@ -170,7 +170,7 @@ public function pageCount(): int
170170
public function getSize(): PageSize
171171
{
172172
if ($this->imagick === null) {
173-
$this->imagick = new Imagick();
173+
$this->imagick = new Imagick;
174174
$this->imagick->pingImage($this->filename);
175175
}
176176

@@ -233,7 +233,7 @@ public function getImageData(string $pathToImage, int $pageNumber): Imagick
233233
* Reinitialize imagick because the target resolution must be set
234234
* before reading the actual image.
235235
*/
236-
$this->imagick = new Imagick();
236+
$this->imagick = new Imagick;
237237

238238
$this->imagick->setResolution($this->resolution, $this->resolution);
239239

0 commit comments

Comments
 (0)