Completed
Pull Request — master (#7)
by lee
02:06
created
src/CsrfGuard.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -128,9 +128,9 @@  discard block
 block discarded – undo
128 128
         $name = 'csrf_'.bin2hex(random_bytes(8));
129 129
 
130 130
         try {
131
-            $name = 'csrf_' . Uuid::uuid4();
131
+            $name = 'csrf_'.Uuid::uuid4();
132 132
         } catch (UnsatisfiedDependencyException $e) {
133
-            echo 'Caught exception: ' . $e->getMessage();
133
+            echo 'Caught exception: '.$e->getMessage();
134 134
         }
135 135
 
136 136
         $value = bin2hex(random_bytes($this->tokenStrength));
@@ -168,7 +168,7 @@  discard block
 block discarded – undo
168 168
         $tokens = &$this->session['CSRF'];
169 169
 
170 170
         return $this->tokenIsValid($tokens, $value, $key) &&
171
-               $this->tokenIsExiperd($tokens, $key)  &&
171
+               $this->tokenIsExiperd($tokens, $key) &&
172 172
                $this->deleteToken($tokens, $key);
173 173
     }
174 174
 
Please login to merge, or discard this patch.