@@ -111,7 +111,7 @@ discard block |
||
111 | 111 | } |
112 | 112 | } |
113 | 113 | |
114 | - public function flushRules(){ |
|
114 | + public function flushRules() { |
|
115 | 115 | $this->rules = []; |
116 | 116 | $this->flushErrors(); |
117 | 117 | } |
@@ -127,8 +127,8 @@ discard block |
||
127 | 127 | |
128 | 128 | if (count($this->rules)) { |
129 | 129 | |
130 | - foreach($this->rules as $field => $rule){ |
|
131 | - if(!array_key_exists($field, $data)){ |
|
130 | + foreach ($this->rules as $field => $rule) { |
|
131 | + if (!array_key_exists($field, $data)) { |
|
132 | 132 | $data[$field] = ''; |
133 | 133 | } |
134 | 134 | } |