Did some cleanup [skip ci]

This commit is contained in:
James Cole
2015-05-26 19:48:49 +02:00
parent 7dfde51b84
commit 2738ac5a5c
6 changed files with 3 additions and 11 deletions

View File

@@ -204,7 +204,6 @@ class TransactionJournal extends Model
switch ($this->transactionType->type) {
case 'Deposit':
return $this->transactions()->where('amount', '>', 0)->first()->account;
break;
case 'Withdrawal':
return $this->transactions()->where('amount', '<', 0)->first()->account;
@@ -275,7 +274,6 @@ class TransactionJournal extends Model
switch ($this->transactionType->type) {
case 'Deposit':
return $this->transactions()->where('amount', '<', 0)->first()->account;
break;
case 'Withdrawal':
return $this->transactions()->where('amount', '>', 0)->first()->account;