Completed
Pull Request — master (#7)
by lee
02:47
created
src/CsrfGuard.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -130,7 +130,7 @@  discard block
 block discarded – undo
130 130
         try {
131 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.