@@ -292,7 +292,7 @@ discard block |
||
| 292 | 292 | $hex = $this->addHexPrefix($this->prepAndClean($hex)); |
| 293 | 293 | break; |
| 294 | 294 | default: |
| 295 | - throw new \Exception('Unknown data type passed to the binConv() function. Value received was "' . var_export($hex, true) . '".'); |
|
| 295 | + throw new \Exception('Unknown data type passed to the binConv() function. Value received was "'.var_export($hex, true).'".'); |
|
| 296 | 296 | } |
| 297 | 297 | |
| 298 | 298 | return strrev($this->encodeValue($hex, '256')); |
@@ -312,7 +312,7 @@ discard block |
||
| 312 | 312 | try { |
| 313 | 313 | |
| 314 | 314 | if (strlen($hex) % 2 != 0 || $this->Test($hex) != 'hex') { |
| 315 | - throw new \Exception('Uneven number of hex characters or invalid parameter passed to encodeBase58 function. Value received was "' . var_export($hex, true) . '".'); |
|
| 315 | + throw new \Exception('Uneven number of hex characters or invalid parameter passed to encodeBase58 function. Value received was "'.var_export($hex, true).'".'); |
|
| 316 | 316 | } |
| 317 | 317 | |
| 318 | 318 | $orighex = $hex; |
@@ -320,7 +320,7 @@ discard block |
||
| 320 | 320 | $return = strrev($this->encodeValue($hex, '58')); |
| 321 | 321 | |
| 322 | 322 | for ($i = 0; $i < strlen($orighex) && substr($orighex, $i, 2) == '00'; $i += 2) { |
| 323 | - $return = '1' . $return; |
|
| 323 | + $return = '1'.$return; |
|
| 324 | 324 | } |
| 325 | 325 | |
| 326 | 326 | return $return; |
@@ -356,10 +356,10 @@ discard block |
||
| 356 | 356 | $return = $this->encodeHex($return); |
| 357 | 357 | |
| 358 | 358 | for ($i = 0; $i < strlen($origbase58) && $origbase58[$i] == '1'; $i++) { |
| 359 | - $return = '00' . $return; |
|
| 359 | + $return = '00'.$return; |
|
| 360 | 360 | } |
| 361 | 361 | |
| 362 | - return (strlen($return) % 2 != 0) ? '0' . $return : $return; |
|
| 362 | + return (strlen($return) % 2 != 0) ? '0'.$return : $return; |
|
| 363 | 363 | |
| 364 | 364 | } catch (\Exception $e) { |
| 365 | 365 | // TODO: Need to do something useful here instead of re-throwing the exception. |
@@ -401,7 +401,7 @@ discard block |
||
| 401 | 401 | foreach ($params as $key => $value) { |
| 402 | 402 | if ($this->numberCheck($value) === false) { |
| 403 | 403 | $caller = debug_backtrace(); |
| 404 | - throw new \Exception('Empty or invalid parameters passed to ' . $caller[count($caller) - 1]['function'] . ' function. Argument list received: ' . var_export($caller[count($caller) - 1]['args'], true)); |
|
| 404 | + throw new \Exception('Empty or invalid parameters passed to '.$caller[count($caller) - 1]['function'].' function. Argument list received: '.var_export($caller[count($caller) - 1]['args'], true)); |
|
| 405 | 405 | } |
| 406 | 406 | } |
| 407 | 407 | } |
@@ -428,7 +428,7 @@ discard block |
||
| 428 | 428 | $qq = $this->math->div($val, $base); |
| 429 | 429 | $rem = $this->math->mod($val, $base); |
| 430 | 430 | $val = $qq; |
| 431 | - $new = $new . $digits[$rem]; |
|
| 431 | + $new = $new.$digits[$rem]; |
|
| 432 | 432 | } |
| 433 | 433 | |
| 434 | 434 | return $new; |