Passed
Push — master ( 9fc4f7...c9bd42 )
by Antonio Carlos
01:43
created
src/Google2FA.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -298,7 +298,7 @@  discard block
 block discarded – undo
298 298
     public function removeInvalidChars($string)
299 299
     {
300 300
         return preg_replace(
301
-            '/[^' . Constants::VALID_FOR_B32 . ']/',
301
+            '/[^'.Constants::VALID_FOR_B32.']/',
302 302
             '',
303 303
             $string
304 304
         );
@@ -328,7 +328,7 @@  discard block
 block discarded – undo
328 328
     public function setAlgorithm($algorithm)
329 329
     {
330 330
         // Default to SHA1 HMAC algorithm
331
-        if (! in_array($algorithm, $this->getValidAlgorithms())) {
331
+        if (!in_array($algorithm, $this->getValidAlgorithms())) {
332 332
             throw new InvalidAlgorithmException();
333 333
         }
334 334
 
Please login to merge, or discard this patch.