Renamed the amount variable so it stops interfering with another variable

This commit is contained in:
James Cole 2015-04-10 06:57:39 +02:00
parent 2ef7a01945
commit 06f2e34bb5

View File

@ -79,8 +79,8 @@ class JsonController extends Controller
if ($balance < 0) {
// unpaid! create a fake bill that matches the amount.
$description = $creditCard->name;
$amount = $balance * -1;
$fakeBill = $repository->createFakeBill($description, $date, $amount);
$fakeAmount = $balance * -1;
$fakeBill = $repository->createFakeBill($description, $date, $fakeAmount);
$unpaid->push([$fakeBill, $date]);
}
}