Skip to content

Commit

Permalink
Refactor code
Browse files Browse the repository at this point in the history
  • Loading branch information
olivervogel committed Jan 4, 2025
1 parent 4c48f7a commit 3374d75
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Drivers/Gd/Cloner.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public static function cloneEmpty(
ColorInterface $background = new Color(255, 255, 255, 0)
): GdImage {
// define size
$size = $size ? $size : new Rectangle(imagesx($gd), imagesy($gd));
$size = $size ?: new Rectangle(imagesx($gd), imagesy($gd));

// create new gd image with same size or new given size
$clone = imagecreatetruecolor($size->width(), $size->height());
Expand Down

0 comments on commit 3374d75

Please sign in to comment.