Passed
Push — master ( 867fcc...8a7c34 )
by Tim
03:08
created
lib/Auth/Process/OTP.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -159,7 +159,7 @@  discard block
 block discarded – undo
159 159
         // check for previous auth
160 160
         if (!is_null($key_id) && in_array($key_id, $attrs[$this->keyIdAttr], true)) {
161 161
             // we were already authenticated using a valid yubikey
162
-            Logger::info('Reusing previous YubiKey authentication with key "' . $key_id . '".');
162
+            Logger::info('Reusing previous YubiKey authentication with key "'.$key_id.'".');
163 163
             return;
164 164
         }
165 165
 
@@ -212,7 +212,7 @@  discard block
 block discarded – undo
212 212
 
213 213
         // obtain the identity of the yubikey
214 214
         $kid = substr($otp, 0, -32);
215
-        Logger::debug('Verifying Yubikey ID "' . $kid . '"');
215
+        Logger::debug('Verifying Yubikey ID "'.$kid.'"');
216 216
 
217 217
         // verify the OTP against the API
218 218
         $api = new \Yubikey\Validate($cfg['apiKey'], $cfg['apiClient']);
@@ -221,7 +221,7 @@  discard block
 block discarded – undo
221 221
 
222 222
         // verify the identity corresponds to this user
223 223
         if (!in_array($kid, $cfg['keyIDs'], true)) {
224
-            Logger::warning('The YubiKey "' . $kid . '" is not valid for this user.');
224
+            Logger::warning('The YubiKey "'.$kid.'" is not valid for this user.');
225 225
             Logger::stats('yubikey:otp: invalid YubiKey.');
226 226
             return false;
227 227
         }
@@ -239,10 +239,10 @@  discard block
 block discarded – undo
239 239
                 $cfg['self'],
240 240
                 'logoutHandler'
241 241
             );
242
-            Logger::info('Successful authentication with YubiKey "' . $kid . '".');
242
+            Logger::info('Successful authentication with YubiKey "'.$kid.'".');
243 243
             return true;
244 244
         }
245
-        Logger::warning('Couldn\'t successfully authenticate YubiKey "' . $kid . '".');
245
+        Logger::warning('Couldn\'t successfully authenticate YubiKey "'.$kid.'".');
246 246
         return false;
247 247
     }
248 248
 
@@ -256,7 +256,7 @@  discard block
 block discarded – undo
256 256
     {
257 257
         $session = Session::getSessionFromRequest();
258 258
         $keyid = $session->getData('yubikey:auth', $this->authid);
259
-        Logger::info('Removing valid YubiKey authentication with key "' . $keyid . '".');
259
+        Logger::info('Removing valid YubiKey authentication with key "'.$keyid.'".');
260 260
         $session->deleteData('yubikey:auth', $this->authid);
261 261
     }
262 262
 }
Please login to merge, or discard this patch.