Skip to content

Commit

Permalink
fix random uppercase letter in variable names
Browse files Browse the repository at this point in the history
  • Loading branch information
naomai committed Aug 2, 2024
1 parent b5f28f9 commit 3785430
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/Selection.php
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ public function move(
$anchorDefs = explode(" ", $anchor);

$anchorOffsetX = 0;
$AnchorOffsetY = 0;
$anchorOffsetY = 0;

// horizontal
if(in_array("center", $anchorDefs)) {
Expand All @@ -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 {
Expand Down

0 comments on commit 3785430

Please sign in to comment.