From 160f1394ac0912c189ca8a5a356fb9fe8d1d29ee Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Thu, 24 Aug 2023 18:09:55 +0200 Subject: [PATCH] Reformat the condition to work around a formatter issue --- .../upload/DefaultUploadFileSaveStrategy.class.php | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/wcfsetup/install/files/lib/system/upload/DefaultUploadFileSaveStrategy.class.php b/wcfsetup/install/files/lib/system/upload/DefaultUploadFileSaveStrategy.class.php index 9b2c9a2e03..0d8b6d5a66 100644 --- a/wcfsetup/install/files/lib/system/upload/DefaultUploadFileSaveStrategy.class.php +++ b/wcfsetup/install/files/lib/system/upload/DefaultUploadFileSaveStrategy.class.php @@ -226,13 +226,8 @@ class DefaultUploadFileSaveStrategy implements IUploadFileSaveStrategy $adapter->writeImage($object->getLocation()); // update width, height and filesize of the object - if ( - $newImage !== null - && ( - $orientation == ExifUtil::ORIENTATION_90_ROTATE - || $orientation == ExifUtil::ORIENTATION_270_ROTATE - ) - ) { + $isRotatedBy90Degrees = $orientation == ExifUtil::ORIENTATION_90_ROTATE || $orientation == ExifUtil::ORIENTATION_270_ROTATE; + if ($newImage !== null && $isRotatedBy90Degrees) { $updateData = \array_merge($updateData, [ 'height' => $object->width, 'width' => $object->height, -- 2.20.1