From 50843dc543db4cb370d792f97aca45c22c0e9bfb Mon Sep 17 00:00:00 2001 From: roadiz-ci Date: Wed, 12 Jul 2023 16:50:47 +0000 Subject: [PATCH] Merge branch hotfix/v2.1.27 --- src/ArrayDocumentFinder.php | 1 - src/OptionsResolver/UrlOptionsResolver.php | 6 ++---- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/src/ArrayDocumentFinder.php b/src/ArrayDocumentFinder.php index 5798403..14a4f01 100644 --- a/src/ArrayDocumentFinder.php +++ b/src/ArrayDocumentFinder.php @@ -5,7 +5,6 @@ namespace RZ\Roadiz\Documents; use Doctrine\Common\Collections\ArrayCollection; -use Doctrine\Common\Collections\Collection; use RZ\Roadiz\Documents\Models\DocumentInterface; /** diff --git a/src/OptionsResolver/UrlOptionsResolver.php b/src/OptionsResolver/UrlOptionsResolver.php index fa3c512..ac34da7 100644 --- a/src/OptionsResolver/UrlOptionsResolver.php +++ b/src/OptionsResolver/UrlOptionsResolver.php @@ -11,8 +11,7 @@ class UrlOptionsResolver extends OptionsResolver { public function __construct() { - $this->setDefaults( - [ + $this->setDefaults([ 'crop' => null, 'fit' => null, 'align' => null, @@ -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']);