Skip to content

Commit

Permalink
hotfix
Browse files Browse the repository at this point in the history
  • Loading branch information
sergix44 committed Dec 27, 2023
1 parent 4231dd1 commit f5ff98c
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion src/Alterations/EllipseShape.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ private function getShape(): Shape
{
$shape = new static::$shape();
if ($this->callback instanceof Closure) {
$this->callback->call($this, $shape);
call_user_func($this->callback, $shape);
}

return $shape;
Expand Down
4 changes: 2 additions & 2 deletions src/Alterations/LineShape.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public function applyWithGd(Image $image): null
{
$line = new Line();
if ($this->callback instanceof Closure) {
$this->callback->call($this, $line);
call_user_func($this->callback, $line);
}

$driver = $image->getDriver();
Expand All @@ -46,7 +46,7 @@ public function applyWithImagick(Image $image): null
{
$line = new Line();
if ($this->callback instanceof Closure) {
$this->callback->call($this, $line);
call_user_func($this->callback, $line);
}

$driver = $image->getDriver();
Expand Down
4 changes: 2 additions & 2 deletions src/Alterations/PolygonShape.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public function applyWithGd(Image $image): null

$polygon = new Polygon();
if ($this->callback instanceof Closure) {
$this->callback->call($this, $polygon);
call_user_func($this->callback, $polygon);
}

$driver = $image->getDriver();
Expand All @@ -84,7 +84,7 @@ public function applyWithImagick(Image $image): mixed
{
$polygon = new Polygon();
if ($this->callback instanceof Closure) {
$this->callback->call($this, $polygon);
call_user_func($this->callback, $polygon);
}

$driver = $image->getDriver();
Expand Down
4 changes: 2 additions & 2 deletions src/Alterations/RectangleShape.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public function applyWithGd(Image $image): null
{
$rectangle = new Rectangle();
if ($this->callback instanceof Closure) {
$this->callback->call($this, $rectangle);
call_user_func($this->callback, $rectangle);
}

$driver = $image->getDriver();
Expand All @@ -53,7 +53,7 @@ public function applyWithImagick(Image $image): null
{
$rectangle = new Rectangle();
if ($this->callback instanceof Closure) {
$this->callback->call($this, $rectangle);
call_user_func($this->callback, $rectangle);
}

$driver = $image->getDriver();
Expand Down
4 changes: 2 additions & 2 deletions src/Alterations/WriteText.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public function applyWithGd(Image $image): null
{
$text = new GdText($this->text);
if ($this->callback instanceof Closure) {
$this->callback->call($this, $text);
call_user_func($this->callback, $text);
}

$x = $this->x;
Expand All @@ -46,7 +46,7 @@ public function applyWithImagick(Image $image): null
{
$text = new ImagickText($this->text);
if ($this->callback instanceof Closure) {
$this->callback->call($this, $text);
call_user_func($this->callback, $text);
}

$x = $this->x;
Expand Down
4 changes: 2 additions & 2 deletions src/Alterations/WriteTextFit.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public function applyWithGd(Image $image): mixed
{
$text = new GdText($this->text);
if ($this->callback instanceof Closure) {
$this->callback->call($this, $text);
call_user_func($this->callback, $text);
}

$driver = $image->getDriver();
Expand Down Expand Up @@ -55,7 +55,7 @@ public function applyWithImagick(Image $image): mixed
{
$text = new ImagickText($this->text);
if ($this->callback instanceof Closure) {
$this->callback->call($this, $text);
call_user_func($this->callback, $text);
}

$driver = $image->getDriver();
Expand Down

0 comments on commit f5ff98c

Please sign in to comment.