@@ -15,20 +15,20 @@ |
||
15 | 15 | */ |
16 | 16 | public function getQRCodeUrl($company, $holder, $secret) |
17 | 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())) . |
|
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 | 32 | ''; |
33 | 33 | } |
34 | 34 | } |