summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrank de Jonge <info@frenky.net>2012-10-11 14:37:27 +0200
committerFrank de Jonge <info@frenky.net>2012-10-11 14:37:27 +0200
commit8aca9363933c375ac4d475bfb0b86466fb49da6e (patch)
tree75cd64b1b97604d996da050f7cd0dc8147e381af
parent327517c9479b80dc83808056c21e26745ad719aa (diff)
downloadImageWorkshop-8aca9363933c375ac4d475bfb0b86466fb49da6e.zip
ImageWorkshop-8aca9363933c375ac4d475bfb0b86466fb49da6e.tar.gz
ImageWorkshop-8aca9363933c375ac4d475bfb0b86466fb49da6e.tar.bz2
More self references conferted to static.
-rwxr-xr-xsrc/PHPImageWorkshop/ImageWorkshop.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/PHPImageWorkshop/ImageWorkshop.php b/src/PHPImageWorkshop/ImageWorkshop.php
index ce538c5..8addb6d 100755
--- a/src/PHPImageWorkshop/ImageWorkshop.php
+++ b/src/PHPImageWorkshop/ImageWorkshop.php
@@ -362,7 +362,7 @@ class ImageWorkshop
$layerTmpHeight = $totalHeightUnderLayer - $minLayerPositionY;
}
- $layerTmp = new self(array(
+ $layerTmp = new static(array(
"width" => $layerTmpWidth,
"height" => $layerTmpHeight,
));
@@ -378,7 +378,7 @@ class ImageWorkshop
} else {
- $layerTmp = new self(array(
+ $layerTmp = new static(array(
"imageVar" => $this->image,
));
@@ -784,7 +784,7 @@ class ImageWorkshop
if ($this->getWidth() != $newWidth || $this->getHeight() != $newHeight) {
- $layerTmp = new self(array(
+ $layerTmp = new static(array(
'width' => $newWidth,
'height' => $newHeight,
));
@@ -1026,13 +1026,13 @@ class ImageWorkshop
if (($width != $this->width || $positionX == 0) || ($height != $this->height || $positionY == 0)) {
- $layerTmp = new self(array(
+ $layerTmp = new static(array(
'width' => $width,
'height' => $height,
'backgroundColor' => $backgroundColor,
));
- $layerClone = new self(array(
+ $layerClone = new static(array(
'width' => $this->width,
'height' => $this->height,
));