mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-12 15:35:15 +00:00
Code cleanup.
This commit is contained in:
@@ -162,13 +162,13 @@ class BalanceLine
|
||||
return $this->getBudget()->name;
|
||||
}
|
||||
if (self::ROLE_DEFAULTROLE === $this->getRole()) {
|
||||
return strval(trans('firefly.no_budget'));
|
||||
return (string)trans('firefly.no_budget');
|
||||
}
|
||||
if (self::ROLE_TAGROLE === $this->getRole()) {
|
||||
return strval(trans('firefly.coveredWithTags'));
|
||||
return (string)trans('firefly.coveredWithTags');
|
||||
}
|
||||
if (self::ROLE_DIFFROLE === $this->getRole()) {
|
||||
return strval(trans('firefly.leftUnbalanced'));
|
||||
return (string)trans('firefly.leftUnbalanced');
|
||||
}
|
||||
|
||||
return '';
|
||||
|
@@ -101,7 +101,7 @@ class Bill
|
||||
{
|
||||
$set = $this->bills->sortBy(
|
||||
function (BillLine $bill) {
|
||||
$active = 0 === intval($bill->getBill()->active) ? 1 : 0;
|
||||
$active = 0 === (int)$bill->getBill()->active ? 1 : 0;
|
||||
$name = $bill->getBill()->name;
|
||||
|
||||
return $active . $name;
|
||||
|
@@ -190,7 +190,7 @@ class BillLine
|
||||
*/
|
||||
public function isActive(): bool
|
||||
{
|
||||
return 1 === intval($this->bill->active);
|
||||
return 1 === (int)$this->bill->active;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user