diff --git a/src/Asset/Controller/Image/CustomStreamController.php b/src/Asset/Controller/Image/CustomStreamController.php index 64f2ea8a..0c66ebb6 100644 --- a/src/Asset/Controller/Image/CustomStreamController.php +++ b/src/Asset/Controller/Image/CustomStreamController.php @@ -93,7 +93,7 @@ public function __construct( ResizeModes::SCALE_BY_HEIGHT, ResizeModes::SCALE_BY_WIDTH, ResizeModes::RESIZE, - ResizeModes::NONE + ResizeModes::NONE, ], ResizeModes::NONE )] diff --git a/src/Asset/MappedParameter/ImageDownloadConfigParameter.php b/src/Asset/MappedParameter/ImageDownloadConfigParameter.php index 25d04652..f9386cac 100644 --- a/src/Asset/MappedParameter/ImageDownloadConfigParameter.php +++ b/src/Asset/MappedParameter/ImageDownloadConfigParameter.php @@ -142,7 +142,7 @@ private function getBaseTransformationValues(): array private function validateResizeMode(): void { - if($this->resizeMode === ResizeModes::NONE) { + if ($this->resizeMode === ResizeModes::NONE) { return; } @@ -162,7 +162,7 @@ private function validateResizeMode(): void ); } - if($this->resizeMode === ResizeModes::RESIZE && (!$this->isValidWidth() || !$this->isValidHeight())) { + if ($this->resizeMode === ResizeModes::RESIZE && (!$this->isValidWidth() || !$this->isValidHeight())) { throw new InvalidArgumentException( 'Width and height must be set and non-negative when using resize' ); diff --git a/src/Asset/OpenApi/Attribute/Parameter/Query/ResizeModeParameter.php b/src/Asset/OpenApi/Attribute/Parameter/Query/ResizeModeParameter.php index c1d65385..7227dbc2 100644 --- a/src/Asset/OpenApi/Attribute/Parameter/Query/ResizeModeParameter.php +++ b/src/Asset/OpenApi/Attribute/Parameter/Query/ResizeModeParameter.php @@ -28,8 +28,7 @@ public function __construct( bool $required = true, array $resizeModes = ResizeModes::ALLOWED_MODES, mixed $defaultValue = ResizeModes::SCALE_BY_WIDTH - ) - { + ) { parent::__construct( name: 'resizeMode', description: 'Resize mode of downloaded image.',