Completed
Push — master ( 523786...0f3281 )
by Arman
16s queued 13s
created
src/Libraries/Validation/Validator.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
             }
Please login to merge, or discard this patch.