Skip to content

Commit

Permalink
Merge branch hotfix/v2.1.27
Browse files Browse the repository at this point in the history
  • Loading branch information
roadiz-ci committed Jul 12, 2023
1 parent d267ee5 commit 50843dc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
1 change: 0 additions & 1 deletion src/ArrayDocumentFinder.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
namespace RZ\Roadiz\Documents;

use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Common\Collections\Collection;
use RZ\Roadiz\Documents\Models\DocumentInterface;

/**
Expand Down
6 changes: 2 additions & 4 deletions src/OptionsResolver/UrlOptionsResolver.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@ class UrlOptionsResolver extends OptionsResolver
{
public function __construct()
{
$this->setDefaults(
[
$this->setDefaults([
'crop' => null,
'fit' => null,
'align' => null,
Expand All @@ -31,8 +30,7 @@ public function __construct()
'contrast' => 0,
'rotate' => 0,
'ratio' => null,
]
);
]);
$this->setAllowedTypes('width', ['int']);
$this->setAllowedTypes('height', ['int']);
$this->setAllowedTypes('crop', ['null', 'string']);
Expand Down

0 comments on commit 50843dc

Please sign in to comment.