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

@@ -300,7 +300,7 @@ class ImportJobRepository implements ImportJobRepositoryInterface
$attachment->filename = $name;
$attachment->mime = 'plain/txt';
$attachment->size = \strlen($content);
$attachment->uploaded = 0;
$attachment->uploaded = false;
$attachment->save();
$encrypted = Crypt::encrypt($content);
@@ -351,7 +351,7 @@ class ImportJobRepository implements ImportJobRepositoryInterface
$attachment->filename = $name;
$attachment->mime = $file->getMimeType();
$attachment->size = $file->getSize();
$attachment->uploaded = 0;
$attachment->uploaded = false;
$attachment->save();
$fileObject = $file->openFile('r');
$fileObject->rewind();