Passed
Push — master ( 0345e6...c5b3d1 )
by Jaime Pérez
02:26
created
lib/Store.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -120,7 +120,7 @@
 block discarded – undo
120 120
         }
121 121
 
122 122
         if (!is_array($config)) {
123
-            throw new Exception('Invalid configuration for consent store option: '.var_export($config, true));
123
+            throw new Exception('Invalid configuration for consent store option: ' . var_export($config, true));
124 124
         }
125 125
 
126 126
         if (!array_key_exists(0, $config)) {
Please login to merge, or discard this patch.
www/managetoken.php 1 patch
Switch Indentation   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -26,18 +26,18 @@
 block discarded – undo
26 26
     throw new Exception("Attempt to access the token management page unauthenticated.");
27 27
 }
28 28
 switch ($_POST['submit']) {
29
-    case "NEVERMIND":
30
-        Auth\ProcessingChain::resumeProcessing($state);
31
-        break;
32
-    case "DELETE":
33
-        if ($state['FIDO2AuthSuccessful'] == $_POST['credId']) {
34
-            throw new Exception("Attempt to delete the currently used credential despite UI preventing this.");
35
-        }
36
-        $store = $state['webauthn:store'];
37
-        $store->deleteTokenData($_POST['credId']);
38
-        Auth\ProcessingChain::resumeProcessing($state);
39
-        break;
40
-    default:
41
-        throw new Exception("Unknown submit button state.");
29
+        case "NEVERMIND":
30
+            Auth\ProcessingChain::resumeProcessing($state);
31
+            break;
32
+        case "DELETE":
33
+            if ($state['FIDO2AuthSuccessful'] == $_POST['credId']) {
34
+                throw new Exception("Attempt to delete the currently used credential despite UI preventing this.");
35
+            }
36
+            $store = $state['webauthn:store'];
37
+            $store->deleteTokenData($_POST['credId']);
38
+            Auth\ProcessingChain::resumeProcessing($state);
39
+            break;
40
+        default:
41
+            throw new Exception("Unknown submit button state.");
42 42
 }
43 43
 
Please login to merge, or discard this patch.
www/webauthn.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
13 13
 use SimpleSAML\Logger;
14 14
 use SimpleSAML\Module;
15 15
 use SimpleSAML\Utils;
16
-use SimpleSAML\XHTML\Template;;
16
+use SimpleSAML\XHTML\Template; ;
17 17
 
18 18
 $globalConfig = Configuration::getInstance();
19 19
 
Please login to merge, or discard this patch.
www/authprocess.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -82,10 +82,10 @@
 block discarded – undo
82 82
 if ($debugEnabled) {
83 83
     echo $authObject->debugBuffer;
84 84
     echo $authObject->validateBuffer;
85
-    echo "Debug mode, not continuing to ". ($state['FIDO2WantsRegister'] ? "credential registration page." : "destination.");
85
+    echo "Debug mode, not continuing to " . ($state['FIDO2WantsRegister'] ? "credential registration page." : "destination.");
86 86
 } else {
87 87
     if ($state['FIDO2WantsRegister']) {
88
-        header("Location: ".Module::getModuleURL('webauthn/webauthn.php?StateId='.urlencode($id)));
88
+        header("Location: " . Module::getModuleURL('webauthn/webauthn.php?StateId=' . urlencode($id)));
89 89
     } else {
90 90
         Auth\ProcessingChain::resumeProcessing($state);
91 91
     }
Please login to merge, or discard this patch.
lib/Auth/Process/WebAuthn.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
             $this->store = Store::parseStoreConfig($config['store']);
77 77
         } catch (\Exception $e) {
78 78
             Logger::error(
79
-                'webauthn: Could not create storage: '.
79
+                'webauthn: Could not create storage: ' .
80 80
                 $e->getMessage()
81 81
             );
82 82
         }
@@ -132,8 +132,8 @@  discard block
 block discarded – undo
132 132
         assert(array_key_exists('metadata-set', $state['Source']));
133 133
 
134 134
         if (!array_key_exists($this->usernameAttrib, $state['Attributes'])) {
135
-            Logger::warning('webauthn: cannot determine if user needs second factor, missing attribute "'.
136
-                $this->usernameAttrib.'".');
135
+            Logger::warning('webauthn: cannot determine if user needs second factor, missing attribute "' .
136
+                $this->usernameAttrib . '".');
137 137
             return;
138 138
         }
139 139
 
Please login to merge, or discard this patch.