From: Joshua Rüsweg Date: Thu, 31 Jan 2019 14:10:33 +0000 (+0100) Subject: Fix code style X-Git-Tag: 5.2.0_Alpha_1~296^2~15 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=2efcc62ae01c739b0bf3779397d6ef3426723846;p=GitHub%2FWoltLab%2FWCF.git Fix code style See #2825 --- diff --git a/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/File/Upload.js b/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/File/Upload.js index 753a65e0dc..5cb625eed8 100644 --- a/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/File/Upload.js +++ b/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/File/Upload.js @@ -178,7 +178,7 @@ define(['Core', 'Language', 'Dom/Util', 'WoltLabSuite/Core/Ui/File/Delete', 'Upl } } else { - throw new Error('Unknown uploaded file for uploadId '+ uploadId +'.'); + throw new Error('Unknown uploaded file for uploadId ' + uploadId + '.'); } } diff --git a/wcfsetup/install/files/lib/acp/form/ReactionTypeAddForm.class.php b/wcfsetup/install/files/lib/acp/form/ReactionTypeAddForm.class.php index 84c6be0d7d..7b3baa7a00 100644 --- a/wcfsetup/install/files/lib/acp/form/ReactionTypeAddForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/ReactionTypeAddForm.class.php @@ -124,7 +124,7 @@ class ReactionTypeAddForm extends AbstractFormBuilderForm { /** @var UploadFile $file */ $file = array_pop($files); if (!$file->isProcessed()) { - $fileName = $reactionType->reactionTypeID . '-'. $file->getFilename(); + $fileName = $reactionType->reactionTypeID . '-' . $file->getFilename(); if (file_exists(WCF_DIR . '/images/reaction/' . $fileName)) { $fileName = $reactionType->reactionTypeID . '-'. substr(0, 5, StringUtil::getRandomID()) . '-' . $file->getFilename(); diff --git a/wcfsetup/install/files/lib/system/file/upload/UploadHandler.class.php b/wcfsetup/install/files/lib/system/file/upload/UploadHandler.class.php index e214508ebb..e71187b0f7 100644 --- a/wcfsetup/install/files/lib/system/file/upload/UploadHandler.class.php +++ b/wcfsetup/install/files/lib/system/file/upload/UploadHandler.class.php @@ -361,7 +361,7 @@ class UploadHandler extends SingletonFactory { if (isset($this->getStorage()[$internalId])) { $files = $this->getStorage()[$internalId]['files']; - // check avaibility of the files + // check availability of the files /** @var UploadFile $file */ foreach ($files as $file) { if (!file_exists($file->getLocation())) {