@@ -24,7 +24,7 @@ |
||
| 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 | |
@@ -155,8 +155,9 @@ |
||
| 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){ |