Completed
Push — master ( 832136...c40ef1 )
by Sebastian
01:43
created
src/CsrfGuard.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -7,7 +7,7 @@  discard block
 block discarded – undo
7 7
  * @copyright (c) 2017, Sebastian Rapetti
8 8
  * @license http://opensource.org/licenses/MIT MIT License
9 9
  */
10
-declare(strict_types=1);
10
+declare(strict_types = 1);
11 11
 
12 12
 namespace Linna;
13 13
 
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
     {
59 59
         $size = count($array);
60 60
         
61
-        while ($size > $this->maxStorage){
61
+        while ($size > $this->maxStorage) {
62 62
             array_shift($array);          
63 63
             $size--;
64 64
         }
@@ -109,8 +109,8 @@  discard block
 block discarded – undo
109 109
     {
110 110
         $arrayToken = $this->session['CSRF'];
111 111
 
112
-        foreach ($requestData as $key => $value){
113
-            if (isset($arrayToken[$key]) && hash_equals($arrayToken[$key], $value)){
112
+        foreach ($requestData as $key => $value) {
113
+            if (isset($arrayToken[$key]) && hash_equals($arrayToken[$key], $value)) {
114 114
                 return true;
115 115
             }
116 116
         }
Please login to merge, or discard this patch.