From 2efcc62ae01c739b0bf3779397d6ef3426723846 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Joshua=20R=C3=BCsweg?= Date: Thu, 31 Jan 2019 15:10:33 +0100 Subject: [PATCH] Fix code style See #2825 --- wcfsetup/install/files/js/WoltLabSuite/Core/Ui/File/Upload.js | 2 +- .../install/files/lib/acp/form/ReactionTypeAddForm.class.php | 2 +- .../files/lib/system/file/upload/UploadHandler.class.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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())) { -- 2.20.1