Passed
Push — master ( 2bd08b...6fd4a6 )
by Henri
01:24
created
examples/index.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
     /* Transforms validation to Json format to be validated on the client if desired */
25 25
     $json = Validator::toJson($data);
26 26
 
27
-}catch(Exception $er){
27
+} catch(Exception $er){
28 28
 
29 29
     die($er->getCode().'  -  '.$er->getMessage());
30 30
 
Please login to merge, or discard this patch.
src/Validator.php 1 patch
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -176,8 +176,9 @@
 block discarded – undo
176 176
                                 foreach ($data as $ke => $sub) {
177 177
                                     if($ke===$subvalue){
178 178
                                         $equals=true;
179
-                                        if($valuee !== $sub)
180
-                                            throw new \Exception(ucfirst($key).' está diferente de '.ucfirst($ke),1);
179
+                                        if($valuee !== $sub) {
180
+                                                                                    throw new \Exception(ucfirst($key).' está diferente de '.ucfirst($ke),1);
181
+                                        }
181 182
                                     }
182 183
                                 }
183 184
                                 if(!$equals){
Please login to merge, or discard this patch.