Conditions | 1 |
Paths | 1 |
Total Lines | 12 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
36 | protected function authenticationData() |
||
37 | { |
||
38 | $params = $this->getData(); |
||
39 | |||
40 | $params['timestamp'] = number_format(microtime(true) * 1000, 0, '.', ''); |
||
41 | |||
42 | $query = http_build_query($params, '', '&'); |
||
43 | |||
44 | $params['signature'] = hash_hmac('sha256', $query, $this->params['secret']); |
||
45 | |||
46 | return $params; |
||
47 | } |
||
48 | } |
||
49 |