From 37854300a695bffe2a328f6968d522b3acd1800f Mon Sep 17 00:00:00 2001 From: naomai Date: Fri, 2 Aug 2024 15:57:27 +0200 Subject: [PATCH] fix random uppercase letter in variable names --- src/Selection.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Selection.php b/src/Selection.php index 7ec5226..cb1f275 100644 --- a/src/Selection.php +++ b/src/Selection.php @@ -150,7 +150,7 @@ public function move( $anchorDefs = explode(" ", $anchor); $anchorOffsetX = 0; - $AnchorOffsetY = 0; + $anchorOffsetY = 0; // horizontal if(in_array("center", $anchorDefs)) { @@ -160,13 +160,13 @@ public function move( } if(in_array("middle", $anchorDefs)) { - $AnchorOffsetY = ($layerDimensions['h'] - $this->sizeY) / 2; + $anchorOffsetY = ($layerDimensions['h'] - $this->sizeY) / 2; } else if(in_array("bottom", $anchorDefs)) { - $AnchorOffsetY = $layerDimensions['h'] - $this->sizeY; + $anchorOffsetY = $layerDimensions['h'] - $this->sizeY; } - $this->offsetX = $x + $AnchorOffsetX; - $this->offsetY = $y + $AnchorOffsetY; + $this->offsetX = $x + $anchorOffsetX; + $this->offsetY = $y + $anchorOffsetY; return $this; } public function moveOffset(int $ox, int $oy) : Selection {