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