Code cleanup.

This commit is contained in:
James Cole
2015-05-20 19:55:53 +02:00
parent 7645005d5a
commit b1d3158db1
19 changed files with 65 additions and 65 deletions
+1 -2
View File
@@ -1,6 +1,7 @@
<?php
namespace FireflyIII\Helpers\Collection;
use Illuminate\Support\Collection;
/**
@@ -60,6 +61,4 @@ class Balance
}
}
+16 -21
View File
@@ -17,14 +17,11 @@ class BalanceEntry
/** @var AccountModel */
protected $account;
/** @var float */
protected $left = 0.0;
/** @var float */
protected $spent = 0.0;
/** @var float */
protected $left = 0.0;
/**
* @return AccountModel
*/
@@ -41,22 +38,6 @@ class BalanceEntry
$this->account = $account;
}
/**
* @return float
*/
public function getSpent()
{
return $this->spent;
}
/**
* @param float $spent
*/
public function setSpent($spent)
{
$this->spent = $spent;
}
/**
* @return float
*/
@@ -73,7 +54,21 @@ class BalanceEntry
$this->left = $left;
}
/**
* @return float
*/
public function getSpent()
{
return $this->spent;
}
/**
* @param float $spent
*/
public function setSpent($spent)
{
$this->spent = $spent;
}
}
-1
View File
@@ -43,5 +43,4 @@ class BalanceHeader
}
}
+3 -2
View File
@@ -43,8 +43,9 @@ class Bill
$this->bills->sortBy(
function (BillLine $bill) {
$active = intval($bill->getBill()->active) == 0 ? 1 : 0;
$name = $bill->getBill()->name;
return $active.$name;
$name = $bill->getBill()->name;
return $active . $name;
}
);
+9 -10
View File
@@ -1,6 +1,7 @@
<?php
namespace FireflyIII\Helpers\Collection;
use Illuminate\Support\Collection;
/**
@@ -71,6 +72,14 @@ class Budget
$this->spent += floatval($add);
}
/**
* @return \Illuminate\Support\Collection
*/
public function getBudgetLines()
{
return $this->budgetLines;
}
/**
* @return float
*/
@@ -135,15 +144,5 @@ class Budget
$this->spent = $spent;
}
/**
* @return \Illuminate\Support\Collection
*/
public function getBudgetLines()
{
return $this->budgetLines;
}
}
+3 -7
View File
@@ -22,13 +22,13 @@ class BudgetLine
protected $repetition;
/** @var float */
protected $budgeted = 0;
protected $budgeted = 0;
/** @var float */
protected $left = 0;
protected $left = 0;
/** @var float */
protected $overspent = 0;
/** @var float */
protected $spent = 0;
protected $spent = 0;
/**
* @return BudgetModel
@@ -127,8 +127,4 @@ class BudgetLine
}
}