Scrutinizer Auto-Fixes

This commit consists of patches automatically generated for this project on https://scrutinizer-ci.com
This commit is contained in:
Scrutinizer Auto-Fixer
2015-05-26 17:50:09 +00:00
parent 2738ac5a5c
commit 571cac6644
16 changed files with 128 additions and 137 deletions

View File

@@ -41,7 +41,7 @@ class Bill
public function getBills()
{
$this->bills->sortBy(
function (BillLine $bill) {
function(BillLine $bill) {
$active = intval($bill->getBill()->active) == 0 ? 1 : 0;
$name = $bill->getBill()->name;

View File

@@ -55,7 +55,7 @@ class Category
public function getCategories()
{
$this->categories->sortByDesc(
function (CategoryModel $category) {
function(CategoryModel $category) {
return $category->spent;
}
);

View File

@@ -67,7 +67,7 @@ class Expense
public function getExpenses()
{
$this->expenses->sortByDesc(
function (stdClass $object) {
function(stdClass $object) {
return $object->amount;
}
);

View File

@@ -68,7 +68,7 @@ class Income
public function getIncomes()
{
$this->incomes->sortByDesc(
function (stdClass $object) {
function(stdClass $object) {
return $object->amount;
}
);
@@ -77,7 +77,7 @@ class Income
}
/**
* @return float
* @return string
*/
public function getTotal()
{