Skip to content

Commit

Permalink
Merge branch '1.x' into 2.x
Browse files Browse the repository at this point in the history
  • Loading branch information
timkelty committed May 17, 2024
2 parents 5008070 + 5c65efd commit 0f14373
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ImageTransformer.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,12 +76,12 @@ protected function getGravityValue(ImageTransform $imageTransform): ?array
$parts = explode('-', $imageTransform->position);

try {
$x = match ($parts[0] ?? null) {
$x = match ($parts[1] ?? null) {
'left' => 0,
'center' => 0.5,
'right' => 1,
};
$y = match ($parts[1] ?? null) {
$y = match ($parts[0] ?? null) {
'top' => 0,
'center' => 0.5,
'bottom' => 1,
Expand Down

0 comments on commit 0f14373

Please sign in to comment.