Passed
Push — 5.x ( bef106...442566 )
by Enjoys
02:41
created
src/Attribute.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -119,7 +119,7 @@  discard block
 block discarded – undo
119 119
         } else {
120 120
             $value = explode($this->separator, $value);
121 121
         }
122
-        foreach ((array)$value as $item) {
122
+        foreach ((array) $value as $item) {
123 123
             if (!$this->has($item)) {
124 124
                 $this->values[] = $item;
125 125
             }
@@ -154,7 +154,7 @@  discard block
 block discarded – undo
154 154
 
155 155
         Assert::nullOrScalar($value);
156 156
 
157
-        return ($value === null) ? null : $this->safety((string)$value);
157
+        return ($value === null) ? null : $this->safety((string) $value);
158 158
     }
159 159
 
160 160
     private function safety(string $value): string
Please login to merge, or discard this patch.
src/Form.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -102,7 +102,7 @@  discard block
 block discarded – undo
102 102
      * @param array|Closure():array $data
103 103
      * @return $this
104 104
      */
105
-    public function setDefaults(array|Closure $data): Form
105
+    public function setDefaults(array | Closure $data): Form
106 106
     {
107 107
 
108 108
         if ($this->submitted === true) {
@@ -112,7 +112,7 @@  discard block
 block discarded – undo
112 112
                     'POST' => $this->getRequest()->getPostData()->toArray(),
113 113
                     default => [],
114 114
                 },
115
-                function ($k) {
115
+                function($k) {
116 116
                     return !in_array($k, [self::_TOKEN_CSRF_, self::_TOKEN_SUBMIT_]);
117 117
                 },
118 118
                 ARRAY_FILTER_USE_KEY
Please login to merge, or discard this patch.