Re-arrange code. No changes.

This commit is contained in:
James Cole
2016-08-26 06:44:24 +02:00
parent 172634a55a
commit 4c015e2d12
6 changed files with 71 additions and 73 deletions

View File

@@ -16,6 +16,7 @@ use FireflyIII\Exceptions\FireflyException;
use Illuminate\Contracts\Encryption\DecryptException;
use Illuminate\Database\Eloquent\Model;
use Log;
/**
* FireflyIII\Models\Preference
*
@@ -54,7 +55,7 @@ class Preference extends Model
try {
$data = Crypt::decrypt($value);
} catch (DecryptException $e) {
Log::error('Could not decrypt preference.', ['id' => $this->id,'name' => $this->name,'data' => $this->data]);
Log::error('Could not decrypt preference.', ['id' => $this->id, 'name' => $this->name, 'data' => $this->data]);
throw new FireflyException('Could not decrypt preference #' . $this->id . '.');
}