Skip to content

Commit

Permalink
Fix styling
Browse files Browse the repository at this point in the history
  • Loading branch information
patinthehat authored and github-actions[bot] committed Sep 14, 2024
1 parent bdb0922 commit acc31c5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Pdf.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
namespace Spatie\PdfToImage;

use Imagick;
use ImagickPixel;
use Spatie\PdfToImage\DTOs\PageSize;
use Spatie\PdfToImage\DTOs\PdfPage;
use Spatie\PdfToImage\Enums\LayerMethod;
Expand All @@ -12,7 +13,6 @@
use Spatie\PdfToImage\Exceptions\InvalidSize;
use Spatie\PdfToImage\Exceptions\PageDoesNotExist;
use Spatie\PdfToImage\Exceptions\PdfDoesNotExist;
use ImagickPixel;

class Pdf
{
Expand Down Expand Up @@ -152,7 +152,7 @@ public function selectPages(int ...$pages): static
public function pageCount(): int
{
if ($this->imagick === null) {
$this->imagick = new Imagick();
$this->imagick = new Imagick;
$this->imagick->pingImage($this->filename);
}

Expand All @@ -170,7 +170,7 @@ public function pageCount(): int
public function getSize(): PageSize
{
if ($this->imagick === null) {
$this->imagick = new Imagick();
$this->imagick = new Imagick;
$this->imagick->pingImage($this->filename);
}

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

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

Expand Down

0 comments on commit acc31c5

Please sign in to comment.