Various code cleanup. [skip ci]

This commit is contained in:
James Cole
2018-01-17 09:32:18 +01:00
parent ccf1a6c182
commit 3ccb791674
6 changed files with 17 additions and 11 deletions

View File

@@ -158,7 +158,7 @@ class PiggyBank extends Model
public function leftOnAccount(Carbon $date): string
{
$balance = Steam::balanceIgnoreVirtual($this->account, $date);
// @var PiggyBank $p
/** @var PiggyBank $piggyBank */
foreach ($this->account->piggyBanks as $piggyBank) {
$currentAmount = $piggyBank->currentRelevantRep()->currentamount ?? '0';