Fix some issues that triggered in scrutinizer.

This commit is contained in:
James Cole
2018-07-22 21:32:58 +02:00
parent 67ea825d4a
commit 4fa5f4e5a3
42 changed files with 81 additions and 80 deletions

View File

@@ -249,7 +249,7 @@ class AttachmentHelper implements AttachmentHelperInterface
$attachment->filename = $file->getClientOriginalName();
$attachment->mime = $file->getMimeType();
$attachment->size = $file->getSize();
$attachment->uploaded = 0;
$attachment->uploaded = false;
$attachment->save();
Log::debug('Created attachment:', $attachment->toArray());