Passed
Push — master ( 874950...a25f1e )
by Stefan
02:55 queued 13s
created
src/Controller/WebAuthn.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -105,7 +105,7 @@
 block discarded – undo
105 105
             }
106 106
             return self::STATE_AUTH_ALLOWMGMT;
107 107
         } else { // in inflow, allow to check the management box; otherwise,
108
-                 // only auth
108
+                    // only auth
109 109
             return $state['UseInflowRegistration'] ? self::STATE_AUTH_ALLOWMGMT : self::STATE_AUTH_NOMGMT;
110 110
         }
111 111
     }
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -125,7 +125,7 @@  discard block
 block discarded – undo
125 125
 
126 126
         $state = $this->authState::loadState($stateId, 'webauthn:request');
127 127
 
128
-        if ( $this->workflowStateMachine($state) != self::STATE_AUTH_NOMGMT ) {
128
+        if ($this->workflowStateMachine($state) != self::STATE_AUTH_NOMGMT) {
129 129
             $templateFile = 'webauthn:webauthn.twig'; 
130 130
         } else {
131 131
             $templateFile = 'webauthn:authentication.twig';
@@ -166,7 +166,7 @@  discard block
 block discarded – undo
166 166
         $frontendData = [];
167 167
         $frontendData['challengeEncoded'] = $challengeEncoded;
168 168
         $frontendData['state'] = [];
169
-        foreach (['Source', 'FIDO2Scope','FIDO2Username','FIDO2Displayname','requestTokenModel'] as $stateItem) {
169
+        foreach (['Source', 'FIDO2Scope', 'FIDO2Username', 'FIDO2Displayname', 'requestTokenModel'] as $stateItem) {
170 170
             $frontendData['state'][$stateItem] = $state[$stateItem];
171 171
         }
172 172
 
@@ -177,7 +177,7 @@  discard block
 block discarded – undo
177 177
         $t->data['frontendData'] = json_encode($frontendData);
178 178
 
179 179
         $t->data['FIDO2AuthSuccessful'] = $state['FIDO2AuthSuccessful'];
180
-        if ( $this->workflowStateMachine($state) == self::STATE_MGMT ) {
180
+        if ($this->workflowStateMachine($state) == self::STATE_MGMT) {
181 181
             $t->data['regURL'] = Module::getModuleURL('webauthn/regprocess?StateId=' . urlencode($stateId));
182 182
             $t->data['delURL'] = Module::getModuleURL('webauthn/managetoken?StateId=' . urlencode($stateId));
183 183
 
Please login to merge, or discard this patch.