Passed
Push — 5.x ( b9b3a2...f7e86d )
by Enjoys
03:11
created
src/Elements/Csrf.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
             Rules::CALLBACK,
33 33
             'CSRF Attack detected',
34 34
             [
35
-                function (string $key) {
35
+                function(string $key) {
36 36
                     /** @psalm-suppress  PossiblyNullArgument */
37 37
                     if (password_verify($key, $this->getRequest()->getPostData(Form::_TOKEN_CSRF_, ''))) {
38 38
                         return true;
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
      */
66 66
     private function getCsrfSecret(): string
67 67
     {
68
-        $secret = (string)$this->session->get('csrf_secret');
68
+        $secret = (string) $this->session->get('csrf_secret');
69 69
 
70 70
         if (empty($secret)) {
71 71
             $secret = $this->generateSecret();
Please login to merge, or discard this patch.
src/Rule/Email.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -52,6 +52,6 @@
 block discarded – undo
52 52
 //            $value = idn_to_ascii($value);
53 53
 //        }
54 54
 
55
-        return (bool)filter_var($value, \FILTER_VALIDATE_EMAIL);
55
+        return (bool) filter_var($value, \FILTER_VALIDATE_EMAIL);
56 56
     }
57 57
 }
Please login to merge, or discard this patch.
src/Elements/Checkbox.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@
 block discarded – undo
37 37
 
38 38
         $this->setAttributes(
39 39
             AttributeFactory::createFromArray([
40
-                'id' => ((string)self::$prefix_id) . $this->originalName,
40
+                'id' => ((string) self::$prefix_id) . $this->originalName,
41 41
                 'value' => $this->originalName,
42 42
             ])
43 43
         );
Please login to merge, or discard this patch.
src/Elements/Radio.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@
 block discarded – undo
36 36
 
37 37
         $this->setAttributes(
38 38
             AttributeFactory::createFromArray([
39
-                'id' => ((string)self::$prefix_id) . $this->originalName,
39
+                'id' => ((string) self::$prefix_id) . $this->originalName,
40 40
                 'value' => $name,
41 41
             ])
42 42
         );
Please login to merge, or discard this patch.