Fix codestyle
authorjoshuaruesweg <ruesweg@woltlab.com>
Thu, 4 Mar 2021 19:01:53 +0000 (20:01 +0100)
committerjoshuaruesweg <ruesweg@woltlab.com>
Tue, 16 Mar 2021 15:19:14 +0000 (16:19 +0100)
wcfsetup/install/files/acp/database/update_com.woltlab.wcf_5.4.php
wcfsetup/install/files/lib/system/background/job/UnfurlUrlBackgroundJob.class.php

index a5e4fe76918f2a9e3b03799ccf93efffbe99424d..17d7f931530cf415096981dfe3b5860dfb30d7fe 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 
 /**
    * Makes non-critical database adjustments (i.e. everything that is not related
+ * Makes non-critical database adjustments (i.e. everything that is not related
  * to sessions).
  *
  * @author  Tim Duesterhus
@@ -243,7 +243,7 @@ return [
             NotNullVarchar255DatabaseTableColumn::create('status')
                 ->defaultValue('PENDING'),
             NotNullInt10DatabaseTableColumn::create('lastFetch')
-                ->defaultValue(0)
+                ->defaultValue(0),
         ])
         ->indices([
             DatabaseTablePrimaryIndex::create()
index 2aed9016791f3a9472483a17b5834f12c174dfaa..7dd5bb933ef4bed23347630d2570add2245b8e80 100644 (file)
@@ -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);