@@ -25,9 +25,9 @@ discard block |
||
| 25 | 25 | |
| 26 | 26 | // |
| 27 | 27 | |
| 28 | -function generateGuid(){ |
|
| 28 | +function generateGuid() { |
|
| 29 | 29 | $hash = strtoupper(hash('ripemd128', uniqid('', true) . md5(time() . rand(0, time())))); |
| 30 | - $guid = ''.substr($hash, 0, 8).'-'.substr($hash, 8, 4).'-'.substr($hash, 12, 4).'-'.substr($hash, 16, 4).'-'.substr($hash, 20, 12).''; |
|
| 30 | + $guid = '' . substr($hash, 0, 8) . '-' . substr($hash, 8, 4) . '-' . substr($hash, 12, 4) . '-' . substr($hash, 16, 4) . '-' . substr($hash, 20, 12) . ''; |
|
| 31 | 31 | |
| 32 | 32 | return $guid; |
| 33 | 33 | } |
@@ -497,7 +497,7 @@ discard block |
||
| 497 | 497 | echo '<h2>response</h2>'; |
| 498 | 498 | |
| 499 | 499 | // isValid |
| 500 | -if (array_key_exists('Payment',$response)) { |
|
| 500 | +if (array_key_exists('Payment', $response)) { |
|
| 501 | 501 | |
| 502 | 502 | |
| 503 | 503 | |
@@ -39,7 +39,7 @@ |
||
| 39 | 39 | /** |
| 40 | 40 | * @var array |
| 41 | 41 | */ |
| 42 | - protected $debugData = array(); |
|
| 42 | + protected $debugData = array(); |
|
| 43 | 43 | |
| 44 | 44 | /** |
| 45 | 45 | * ApiService constructor. |