/** @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();
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())) {