Passed
Pull Request — master (#1)
by Tim
02:54
created
www/managetoken.php 1 patch
Switch Indentation   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -20,18 +20,18 @@
 block discarded – undo
20 20
     throw new Exception("Attempt to access the token management page unauthenticated.");
21 21
 }
22 22
 switch ($_POST['submit']) {
23
-    case "NEVERMIND":
24
-        \SimpleSAML\Auth\ProcessingChain::resumeProcessing($state);
25
-        break;
26
-    case "DELETE":
27
-        if ($state['FIDO2AuthSuccessful'] == $_POST['credId']) {
28
-            throw new Exception("Attempt to delete the currently used credential despite UI preventing this.");
29
-        }
30
-        $store = $state['webauthn:store'];
31
-        $store->deleteTokenData($_POST['credId']);
32
-        \SimpleSAML\Auth\ProcessingChain::resumeProcessing($state);
33
-        break;
34
-    default:
35
-        throw new Exception("Unknown submit button state.");
23
+        case "NEVERMIND":
24
+            \SimpleSAML\Auth\ProcessingChain::resumeProcessing($state);
25
+            break;
26
+        case "DELETE":
27
+            if ($state['FIDO2AuthSuccessful'] == $_POST['credId']) {
28
+                throw new Exception("Attempt to delete the currently used credential despite UI preventing this.");
29
+            }
30
+            $store = $state['webauthn:store'];
31
+            $store->deleteTokenData($_POST['credId']);
32
+            \SimpleSAML\Auth\ProcessingChain::resumeProcessing($state);
33
+            break;
34
+        default:
35
+            throw new Exception("Unknown submit button state.");
36 36
 }
37 37
 
Please login to merge, or discard this patch.