From: Matthias Schmidt Date: Tue, 11 May 2021 06:07:31 +0000 (+0200) Subject: Fix code style issues X-Git-Tag: 5.4.0_Alpha_2~10 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=f3148b51433d5c32e0e69658b44908fe9d676bbe;p=GitHub%2FWoltLab%2FWCF.git Fix code style issues --- diff --git a/wcfsetup/install/files/lib/data/style/Style.class.php b/wcfsetup/install/files/lib/data/style/Style.class.php index 4611e19d72..6e6638dca3 100644 --- a/wcfsetup/install/files/lib/data/style/Style.class.php +++ b/wcfsetup/install/files/lib/data/style/Style.class.php @@ -328,7 +328,8 @@ class Style extends DatabaseObject /** * @since 5.4 */ - public function getPageLogoSmallHeight(): int { + public function getPageLogoSmallHeight(): int + { return $this->pageLogoSmallHeight; } diff --git a/wcfsetup/install/files/lib/data/style/StyleEditor.class.php b/wcfsetup/install/files/lib/data/style/StyleEditor.class.php index 44b27b2509..ae7a9b40af 100644 --- a/wcfsetup/install/files/lib/data/style/StyleEditor.class.php +++ b/wcfsetup/install/files/lib/data/style/StyleEditor.class.php @@ -186,6 +186,7 @@ class StyleEditor extends DatabaseObjectEditor implements IEditableCachedObject } $outputFilenameWithoutExtension = \preg_replace('~\.[a-z]+$~', '', $sourceLocation); + return ImageUtil::createWebpVariant($sourceLocation, $outputFilenameWithoutExtension); }