| Conditions | 1 |
| Paths | 1 |
| Total Lines | 14 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 9 |
| CRAP Score | 1 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 43 | 2 | public static function generate( $amount, $currency, $account, $site_id, $transaction_id ) { |
|
| 44 | $values = array( |
||
| 45 | 2 | $amount, |
|
| 46 | 2 | $currency, |
|
| 47 | 2 | $account, |
|
| 48 | 2 | $site_id, |
|
| 49 | 2 | $transaction_id, |
|
| 50 | ); |
||
| 51 | |||
| 52 | 2 | $string = implode( '', $values ); |
|
| 53 | |||
| 54 | 2 | $signature = md5( $string ); |
|
| 55 | |||
| 56 | 2 | return $signature; |
|
| 57 | } |
||
| 59 |