@@ -91,7 +91,7 @@ |
||
| 91 | 91 | */ |
| 92 | 92 | public function setCredential(User $user, $factor, $data) |
| 93 | 93 | { |
| 94 | - $issuer = 'ACC - ' . $this->getConfiguration()->getIrcNotificationsInstance(); |
|
| 94 | + $issuer = 'ACC - '.$this->getConfiguration()->getIrcNotificationsInstance(); |
|
| 95 | 95 | $totp = TOTP::create(); |
| 96 | 96 | $totp->setLabel($user->getUsername()); |
| 97 | 97 | $totp->setIssuer($issuer); |
@@ -10,10 +10,10 @@ |
||
| 10 | 10 | { |
| 11 | 11 | $output = $input; |
| 12 | 12 | |
| 13 | - if(filter_var($input, FILTER_VALIDATE_IP, FILTER_FLAG_IPV4) !== false){ |
|
| 13 | + if (filter_var($input, FILTER_VALIDATE_IP, FILTER_FLAG_IPV4) !== false) { |
|
| 14 | 14 | $octets = explode('.', $input); |
| 15 | 15 | $output = ''; |
| 16 | - foreach ($octets as $octet){ |
|
| 16 | + foreach ($octets as $octet) { |
|
| 17 | 17 | $output .= str_pad(dechex($octet), 2, '0', STR_PAD_LEFT); |
| 18 | 18 | } |
| 19 | 19 | |