@@ -254,7 +254,7 @@ discard block |
||
254 | 254 | $options = array("options"=>array("regexp"=> $regex)); |
255 | 255 | $filter_check = filter_var($value, FILTER_VALIDATE_REGEXP, $options); |
256 | 256 | if ($filter_check === false) { |
257 | - $exception_message="Error for value '".$value."' for '".$key."' |
|
257 | + $exception_message = "Error for value '".$value."' for '".$key."' |
|
258 | 258 | couldn't pass the validation: INVALID_FORMAT"; |
259 | 259 | throw new \Exception($exception_message); |
260 | 260 | } |
@@ -289,7 +289,7 @@ discard block |
||
289 | 289 | default: |
290 | 290 | if ($max_length !== null) { |
291 | 291 | if (strlen($value)>$max_length) { |
292 | - throw new \Exception("Error for value '".$value."' for '".$key."' couldn't pass the " . |
|
292 | + throw new \Exception("Error for value '".$value."' for '".$key."' couldn't pass the ". |
|
293 | 293 | "validation: It's length must be smaller than ".$max_length." "); |
294 | 294 | } |
295 | 295 | } |