Code optimalization

This commit is contained in:
James Cole
2016-08-12 15:50:52 +02:00
parent ffb699cb06
commit 99b3e24836
3 changed files with 43 additions and 27 deletions

View File

@@ -59,7 +59,7 @@ class EncryptFile extends Command
}
$content = file_get_contents($file);
$content = Crypt::encrypt($content);
$newName = e($this->argument('key')) . '.upload';
$newName = e(strval($this->argument('key'))) . '.upload';
$path = storage_path('upload') . '/' . $newName;
file_put_contents($path, $content);