Conditions | 1 |
Paths | 1 |
Total Lines | 17 |
Code Lines | 15 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 2 |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
16 | public function getQRCodeUrl($company, $holder, $secret) |
||
17 | { |
||
18 | return 'otpauth://totp/' . |
||
19 | rawurlencode($company) . |
||
20 | ':' . |
||
21 | rawurlencode($holder) . |
||
22 | '?secret=' . |
||
23 | $secret . |
||
24 | '&issuer=' . |
||
25 | rawurlencode($company) . |
||
26 | '&algorithm=' . |
||
27 | rawurlencode(strtoupper($this->getAlgorithm())) . |
||
|
|||
28 | '&digits=' . |
||
29 | rawurlencode(strtoupper((string) $this->getOneTimePasswordLength())) . |
||
30 | '&period=' . |
||
31 | rawurlencode(strtoupper((string) $this->getKeyRegeneration())) . |
||
32 | ''; |
||
33 | } |
||
35 |