Skip to content

Commit

Permalink
Apply php-cs-fixer changes
Browse files Browse the repository at this point in the history
  • Loading branch information
mcop1 authored and github-actions[bot] committed Dec 16, 2024
1 parent 81288be commit 13458d8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/Asset/Controller/Image/CustomStreamController.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ public function __construct(
ResizeModes::SCALE_BY_HEIGHT,
ResizeModes::SCALE_BY_WIDTH,
ResizeModes::RESIZE,
ResizeModes::NONE
ResizeModes::NONE,
],
ResizeModes::NONE
)]
Expand Down
4 changes: 2 additions & 2 deletions src/Asset/MappedParameter/ImageDownloadConfigParameter.php
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ private function getBaseTransformationValues(): array

private function validateResizeMode(): void
{
if($this->resizeMode === ResizeModes::NONE) {
if ($this->resizeMode === ResizeModes::NONE) {
return;
}

Expand All @@ -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'
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.',
Expand Down

0 comments on commit 13458d8

Please sign in to comment.