Small code cleanup.

This commit is contained in:
James Cole
2017-02-11 15:52:55 +01:00
parent fb73baca6a
commit 4c2d9e0eee
8 changed files with 11 additions and 30 deletions

View File

@@ -245,7 +245,7 @@ class Steam
*/
public function positive(string $amount): string
{
if (bccomp($amount, '0') === 1) {
if (bccomp($amount, '0') === -1) {
$amount = bcmul($amount, '-1');
}