Fix code style
authorJoshua Rüsweg <josh@bastelstu.be>
Thu, 31 Jan 2019 14:10:33 +0000 (15:10 +0100)
committerJoshua Rüsweg <josh@bastelstu.be>
Thu, 31 Jan 2019 14:10:33 +0000 (15:10 +0100)
See #2825

wcfsetup/install/files/js/WoltLabSuite/Core/Ui/File/Upload.js
wcfsetup/install/files/lib/acp/form/ReactionTypeAddForm.class.php
wcfsetup/install/files/lib/system/file/upload/UploadHandler.class.php

index 753a65e0dcf33c970cacff13106092443ac39c52..5cb625eed8bb8faa20d9374f5408e204cf4104be 100644 (file)
@@ -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 + '.');
                                }
                        }
                        
index 84c6be0d7d039975f3a54da5ebc89d3790d48cbc..7b3baa7a00f37372d5573d5cf91c9826560ea308 100644 (file)
@@ -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();
index e214508ebbb6f31a484aa12003fb0fe2e8202d92..e71187b0f7643e441f2cf5fb9de6ccf6a931a1be 100644 (file)
@@ -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())) {