@@ -130,7 +130,7 @@ discard block |
||
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 |
||
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 |