Passed
Push — master ( cc0c61...165379 )
by Tim
06:22
created
www/yubikeylogin.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@
 block discarded – undo
12 12
 use SimpleSAML\Configuration;
13 13
 use SimpleSAML\Error;
14 14
 use SimpleSAML\Module;
15
-use SimpleSAML\Module\authyubikey\Auth\Source\YubiKey;;
15
+use SimpleSAML\Module\authyubikey\Auth\Source\YubiKey; ;
16 16
 use SimpleSAML\XHTML\Template;
17 17
 
18 18
 if (!array_key_exists('AuthState', $_REQUEST)) {
Please login to merge, or discard this patch.
lib/Auth/Source/YubiKey.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -145,7 +145,7 @@  discard block
 block discarded – undo
145 145
         /** @psalm-var \SimpleSAML\Module\authYubiKey\Auth\Source\YubiKey|null $source */
146 146
         $source = Auth\Source::getById($state[self::AUTHID]);
147 147
         if ($source === null) {
148
-            throw new Exception('Could not find authentication source with id ' . $state[self::AUTHID]);
148
+            throw new Exception('Could not find authentication source with id '.$state[self::AUTHID]);
149 149
         }
150 150
 
151 151
         try {
@@ -200,7 +200,7 @@  discard block
 block discarded – undo
200 200
      */
201 201
     protected function login(string $otp): array
202 202
     {
203
-        require_once dirname(dirname(dirname(dirname(__FILE__)))) . '/libextinc/Yubico.php';
203
+        require_once dirname(dirname(dirname(dirname(__FILE__)))).'/libextinc/Yubico.php';
204 204
 
205 205
         try {
206 206
             $yubi = new \Auth_Yubico($this->yubi_id, $this->yubi_key);
@@ -209,14 +209,14 @@  discard block
 block discarded – undo
209 209
             $attributes = ['uid' => [$uid]];
210 210
         } catch (Exception $e) {
211 211
             Logger::info(
212
-                'YubiKey:' . $this->authId . ': Validation error (otp ' . $otp . '), debug output: '
212
+                'YubiKey:'.$this->authId.': Validation error (otp '.$otp.'), debug output: '
213 213
                 . $yubi->getLastResponse()
214 214
             );
215 215
             throw new Error\Error('WRONGUSERPASS', $e);
216 216
         }
217 217
 
218 218
         Logger::info(
219
-            'YubiKey:' . $this->authId . ': YubiKey otp ' . $otp . ' validated successfully: '
219
+            'YubiKey:'.$this->authId.': YubiKey otp '.$otp.' validated successfully: '
220 220
             . $yubi->getLastResponse()
221 221
         );
222 222
         return $attributes;
Please login to merge, or discard this patch.
lib/Auth/Process/OTP2YubiPrefix.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
         Assert::keyExists($state, 'Attributes');
64 64
         $attributes = $state['Attributes'];
65 65
 
66
-        Logger::debug('OTP2YubiPrefix: enter with attributes: ' . implode(',', array_keys($attributes)));
66
+        Logger::debug('OTP2YubiPrefix: enter with attributes: '.implode(',', array_keys($attributes)));
67 67
 
68 68
         $otps = $attributes['otp'];
69 69
         $otp = $otps['0'];
@@ -74,12 +74,12 @@  discard block
 block discarded – undo
74 74
         $attributes['yubiPrefix'] = [$identity];
75 75
 
76 76
         Logger::info(
77
-            'OTP2YubiPrefix: otp: ' . $otp . ' identity: ' . $identity . ' (otp keys: '
78
-            . implode(',', array_keys($otps)) . ')'
77
+            'OTP2YubiPrefix: otp: '.$otp.' identity: '.$identity.' (otp keys: '
78
+            . implode(',', array_keys($otps)).')'
79 79
         );
80 80
 
81 81
         unset($attributes['otp']);
82 82
 
83
-        ogger::debug('OTP2YubiPrefix: leaving with attributes: ' . implode(',', array_keys($attributes)));
83
+        ogger::debug('OTP2YubiPrefix: leaving with attributes: '.implode(',', array_keys($attributes)));
84 84
     }
85 85
 }
Please login to merge, or discard this patch.