Passed
Push — master ( de8740...2bd08b )
by Henri
01:19
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
@@ -155,8 +155,9 @@
 block discarded – undo
155 155
                                 foreach ($data as $ke => $sub) {
156 156
                                     if($ke===$subvalue){
157 157
                                         $equals=true;
158
-                                        if($valuee!==$sub)
159
-                                            throw new \Exception(ucfirst($key).' está diferente de '.ucfirst($ke),1);
158
+                                        if($valuee!==$sub) {
159
+                                                                                    throw new \Exception(ucfirst($key).' está diferente de '.ucfirst($ke),1);
160
+                                        }
160 161
                                     }
161 162
                                 }
162 163
                                 if(!$equals){
Please login to merge, or discard this patch.