Even more code cleanup.

This commit is contained in:
James Cole
2014-08-10 19:02:24 +02:00
parent 80c1184eac
commit 41562f8f6d
21 changed files with 474 additions and 445 deletions

View File

@@ -62,6 +62,8 @@ class EloquentAccountRepository implements AccountRepositoryInterface
}
$type = \AccountType::where('description', 'Beneficiary account')->first();
/** @noinspection PhpParamsInspection */
return $this->createOrFind($name, $type);
}

View File

@@ -122,7 +122,7 @@ class EloquentTransactionJournalRepository implements TransactionJournalReposito
$fromTransaction->amount = $amountFrom;
if (!$fromTransaction->validate()) {
throw new FireflyException('Cannot create valid transaction (from): ' . $fromTransaction->errors()->first(
));
));
}
$fromTransaction->save();
@@ -141,6 +141,7 @@ class EloquentTransactionJournalRepository implements TransactionJournalReposito
return $journal;
}
/**
* @param $journalId
*