Refactor and rename some import things.

This commit is contained in:
James Cole
2017-06-17 22:49:44 +02:00
parent 7cc24417b3
commit b9f110ac2b
10 changed files with 707 additions and 134 deletions

View File

@@ -270,6 +270,20 @@ class Steam
return $list;
}
/**
* @param string $amount
*
* @return string
*/
public function negative(string $amount): string
{
if (bccomp($amount, '0') === 1) {
$amount = bcmul($amount, '-1');
}
return $amount;
}
/**
* @param $string
*
@@ -305,8 +319,6 @@ class Steam
}
// parse PHP size:
/**
* @param string $amount
*