Passed
Push — master ( 52330f...6f56e6 )
by Md. Julfiker
02:39
created
src/exceptions/CsrfTimeOutException.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -7,4 +7,4 @@
 block discarded – undo
7 7
  * Csrf token timeout exception
8 8
  * @autho: Julfiker <[email protected]>
9 9
  */
10
-class CsrfTimeOutException extends Exception {protected $massage = "Token already expired! please try again.";}
10
+class CsrfTimeOutException extends Exception {protected $massage = "Token already expired! please try again."; }
Please login to merge, or discard this patch.
src/manager/CsrfManager.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -72,7 +72,7 @@
 block discarded – undo
72 72
     public function checkToken() {
73 73
         $pass = false;
74 74
         $method = $this->request->getRealMethod();
75
-        if (in_array($method, ['PUT','POST','DELETE'])) {
75
+        if (in_array($method, [ 'PUT', 'POST', 'DELETE' ])) {
76 76
             $csrfToken = $this->getRequest()->get($this->getTokenFieldName());
77 77
             if ($csrfToken && $this->getStorageToken() == $csrfToken) {
78 78
                 $pass = true;
Please login to merge, or discard this patch.