Skip to content

Commit

Permalink
Merge pull request #9 from loco8878/loco8878-patch-1
Browse files Browse the repository at this point in the history
Loco8878 patch 1

Thank you, great job!
  • Loading branch information
crocodile2u authored Jan 27, 2022
2 parents 56f4f00 + ef5b42f commit 4f4eb51
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/OptionSet.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ public function withResizingType(string $rt): self
switch ($rt) {
case ResizingType::FIT:
case ResizingType::FILL:
case ResizingType::FILL_DOWN:
case ResizingType::FORCE:
case ResizingType::AUTO:
return $this->set(ProcessingOption::RESIZING_TYPE, $rt);
Expand Down Expand Up @@ -690,4 +691,4 @@ protected function firstValue(string $name, string $type)
settype($val, $type);
return $val;
}
}
}
1 change: 1 addition & 0 deletions src/ResizingType.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ class ResizingType
{
public const FIT = "fit",
FILL = "fill",
FILL_DOWN = "fill-down",
FORCE = "force",
AUTO = "auto";
}
1 change: 1 addition & 0 deletions test/OptionSetTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@ public function providerResizingType()
return [
[ResizingType::AUTO, false],
[ResizingType::FILL, false],
[ResizingType::FILL_DOWN, false],
[ResizingType::FIT, false],
[ResizingType::FORCE, false],
["invalid", true],
Expand Down

0 comments on commit 4f4eb51

Please sign in to comment.