From: joshuaruesweg Date: Thu, 4 Mar 2021 19:01:53 +0000 (+0100) Subject: Fix codestyle X-Git-Tag: 5.4.0_Alpha_1~146^2~29 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=b319bb33977b7fafbf18139d8a6a6f752c041e0a;p=GitHub%2FWoltLab%2FWCF.git Fix codestyle --- diff --git a/wcfsetup/install/files/acp/database/update_com.woltlab.wcf_5.4.php b/wcfsetup/install/files/acp/database/update_com.woltlab.wcf_5.4.php index a5e4fe7691..17d7f93153 100644 --- a/wcfsetup/install/files/acp/database/update_com.woltlab.wcf_5.4.php +++ b/wcfsetup/install/files/acp/database/update_com.woltlab.wcf_5.4.php @@ -1,7 +1,7 @@ defaultValue('PENDING'), NotNullInt10DatabaseTableColumn::create('lastFetch') - ->defaultValue(0) + ->defaultValue(0), ]) ->indices([ DatabaseTablePrimaryIndex::create() diff --git a/wcfsetup/install/files/lib/system/background/job/UnfurlUrlBackgroundJob.class.php b/wcfsetup/install/files/lib/system/background/job/UnfurlUrlBackgroundJob.class.php index 2aed901679..7dd5bb933e 100644 --- a/wcfsetup/install/files/lib/system/background/job/UnfurlUrlBackgroundJob.class.php +++ b/wcfsetup/install/files/lib/system/background/job/UnfurlUrlBackgroundJob.class.php @@ -69,6 +69,7 @@ final class UnfurlUrlBackgroundJob extends AbstractBackgroundJob if (empty(StringUtil::trim($unfurlResponse->getTitle()))) { $this->save(UnfurlUrl::STATUS_REJECTED); + return; } @@ -173,7 +174,7 @@ final class UnfurlUrlBackgroundJob extends AbstractBackgroundJob throw new DownloadFailed(); } - $imageHash = sha1($image); + $imageHash = \sha1($image); $path = WCF_DIR . 'images/unfurlUrl/' . \substr($imageHash, 0, 2); FileUtil::makePath($path);