From 13458d8e945f04dbcc0fcf89c4e1331c83cf956e Mon Sep 17 00:00:00 2001 From: mcop1 Date: Mon, 16 Dec 2024 14:56:18 +0000 Subject: [PATCH] Apply php-cs-fixer changes --- src/Asset/Controller/Image/CustomStreamController.php | 2 +- src/Asset/MappedParameter/ImageDownloadConfigParameter.php | 4 ++-- .../OpenApi/Attribute/Parameter/Query/ResizeModeParameter.php | 3 +-- 3 files changed, 4 insertions(+), 5 deletions(-) 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.',