Various code cleanup things.

This commit is contained in:
James Cole
2016-03-19 16:51:52 +01:00
parent 47d3cf1d45
commit ef6ef57e67
24 changed files with 24 additions and 27 deletions

View File

@@ -45,7 +45,7 @@ class Budget
*/
public function addBudgeted(string $add)
{
$add = strval(round($add, 2));
$add = strval(round($add, 2));
$this->budgeted = bcadd($this->budgeted, $add);
}
@@ -54,7 +54,7 @@ class Budget
*/
public function addLeft(string $add)
{
$add = strval(round($add, 2));
$add = strval(round($add, 2));
$this->left = bcadd($this->left, $add);
}
@@ -63,7 +63,7 @@ class Budget
*/
public function addOverspent(string $add)
{
$add = strval(round($add, 2));
$add = strval(round($add, 2));
$this->overspent = bcadd($this->overspent, $add);
}
@@ -72,7 +72,7 @@ class Budget
*/
public function addSpent(string $add)
{
$add = strval(round($add, 2));
$add = strval(round($add, 2));
$this->spent = bcadd($this->spent, $add);
}

View File

@@ -46,7 +46,7 @@ class Category
*/
public function addTotal(string $add)
{
$add = strval(round($add, 2));
$add = strval(round($add, 2));
$this->total = bcadd($this->total, $add);
}

View File

@@ -57,7 +57,7 @@ class Income
*/
public function addToTotal(string $add)
{
$add = strval(round($add, 2));
$add = strval(round($add, 2));
$this->total = bcadd($this->total, $add);
}