Passed
Push — 5.x ( 811cbc...b9b3a2 )
by Enjoys
02:12
created
src/AttributeCollection.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
         return $this;
41 41
     }
42 42
 
43
-    public function get(string $name): AttributeInterface|null
43
+    public function get(string $name): AttributeInterface | null
44 44
     {
45 45
         foreach ($this->collection as $item) {
46 46
             if ($item->getName() === $name) {
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
         $this->collection = [];
56 56
     }
57 57
 
58
-    public function remove(string|AttributeInterface $element): AttributeCollection
58
+    public function remove(string | AttributeInterface $element): AttributeCollection
59 59
     {
60 60
         $attributeName = ($element instanceof AttributeInterface) ? $element->getName() : $element;
61 61
 
Please login to merge, or discard this patch.
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.