@@ -273,8 +273,8 @@ discard block |
||
273 | 273 | $encodedSecret = Base32::encode($secret); |
274 | 274 | $totp = TOTP::create( |
275 | 275 | $encodedSecret, |
276 | - 30, // 30 second window |
|
277 | - 'sha256', // SHA256 for the hashing algorithm |
|
276 | + 30, // 30 second window |
|
277 | + 'sha256', // SHA256 for the hashing algorithm |
|
278 | 278 | 6 // 6 digits |
279 | 279 | ); |
280 | 280 | $totp->setLabel($this->username); |
@@ -328,8 +328,8 @@ discard block |
||
328 | 328 | { |
329 | 329 | $totp = TOTP::create( |
330 | 330 | $this->otp_secret, |
331 | - 30, // 30 second window |
|
332 | - 'sha256', // SHA256 for the hashing algorithm |
|
331 | + 30, // 30 second window |
|
332 | + 'sha256', // SHA256 for the hashing algorithm |
|
333 | 333 | 6 // 6 digits |
334 | 334 | ); |
335 | 335 |
@@ -46,10 +46,10 @@ |
||
46 | 46 | return $this->user['class']; |
47 | 47 | } |
48 | 48 | |
49 | - /** |
|
50 | - * Helper method to get the token class |
|
51 | - * @return string |
|
52 | - */ |
|
49 | + /** |
|
50 | + * Helper method to get the token class |
|
51 | + * @return string |
|
52 | + */ |
|
53 | 53 | public function getTokenClass() |
54 | 54 | { |
55 | 55 | return $this->token['class']; |
@@ -62,7 +62,7 @@ |
||
62 | 62 | $this->client->on(Client::EVENT_AFTER_SEND, function(RequestEvent $e) { |
63 | 63 | Yii::info([ |
64 | 64 | 'message' => sprintf('Recieved HTTP response HTTP [%s] | [%s] %s', $e->response->getStatusCode(), $e->request->getMethod(), $e->request->getUrl()), |
65 | - 'data' => (function () use ($e) { |
|
65 | + 'data' => (function() use ($e) { |
|
66 | 66 | $content = $e->response->getContent(); |
67 | 67 | if (preg_match('~[^\x20-\x7E\t\r\n]~', $content) > 0) { |
68 | 68 | return '[binary data]'; |