Expand filter

This commit is contained in:
James Cole
2017-02-11 09:34:04 +01:00
parent 3914796e4e
commit aa2d78f36a
2 changed files with 34 additions and 9 deletions

View File

@@ -26,7 +26,6 @@ use FireflyIII\Models\Transaction;
class Steam
{
/**
*
* @param \FireflyIII\Models\Account $account
@@ -202,8 +201,6 @@ class Steam
return $list;
}
// parse PHP size:
/**
* @param $string
*
@@ -239,4 +236,20 @@ class Steam
}
// parse PHP size:
/**
* @param string $amount
*
* @return string
*/
public function positive(string $amount): string
{
if (bccomp($amount, '0') === 1) {
$amount = bcmul($amount, '-1');
}
return $amount;
}
}