@@ -48,7 +48,7 @@ |
||
| 48 | 48 | return $my_doc[$key]; |
| 49 | 49 | } |
| 50 | 50 | } // Is the value of the array[key] have same variable type |
| 51 | - //that stated in the definition of the model array. |
|
| 51 | + //that stated in the definition of the model array. |
|
| 52 | 52 | elseif (ModelUtils::getType($my_doc[$key]) != $my_model[$key]['_type']) { |
| 53 | 53 | if ($my_key !== null) { |
| 54 | 54 | $my_key = $my_key." . ".$key; |
@@ -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 | } |