@@ -30,7 +30,7 @@ |
||
30 | 30 | /** |
31 | 31 | * Converts the provided number from an arbitrary base to to a base 10 number. |
32 | 32 | * |
33 | - * @param string|int|BigNumber $number The number to convert. |
|
33 | + * @param string $number The number to convert. |
|
34 | 34 | * @param int $fromBase The base to convert the number from. |
35 | 35 | * @return string |
36 | 36 | * @throws InvalidArgumentException Thrown when the base is out of reach. |
@@ -118,10 +118,10 @@ |
||
118 | 118 | do { |
119 | 119 | $remainder = bcmod($decimal, $toBase); |
120 | 120 | $decimal = bcdiv($decimal, $toBase); |
121 | - $result = $chars[$remainder] . $result; |
|
121 | + $result = $chars[$remainder].$result; |
|
122 | 122 | } while (bccomp($decimal, '0')); |
123 | 123 | |
124 | - return $sign . ltrim($result, '0'); |
|
124 | + return $sign.ltrim($result, '0'); |
|
125 | 125 | } |
126 | 126 | |
127 | 127 | /** |
@@ -298,7 +298,7 @@ |
||
298 | 298 | $valueToSet = (string)$value; |
299 | 299 | |
300 | 300 | if (!is_numeric($valueToSet)) { |
301 | - throw new InvalidArgumentException('Invalid number provided: ' . $valueToSet); |
|
301 | + throw new InvalidArgumentException('Invalid number provided: '.$valueToSet); |
|
302 | 302 | } |
303 | 303 | |
304 | 304 | // We use a slick trick to make sure the scale is respected. |