@@ -48,7 +48,7 @@ discard block |
||
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 (self::getType($my_doc[$key]) != $my_model[$key]['_type']) { |
53 | 53 | if ($my_key !== null) { |
54 | 54 | $my_key = $my_key." . ".$key; |
@@ -389,7 +389,7 @@ discard block |
||
389 | 389 | 'float' => 'float', |
390 | 390 | 'object' => 'object', |
391 | 391 | 'resource' => 'resource', |
392 | - 'null' => 'null' |
|
392 | + 'null' => 'null' |
|
393 | 393 | ][strtolower(gettype($value))]; |
394 | 394 | } |
395 | 395 | } |
@@ -214,7 +214,7 @@ discard block |
||
214 | 214 | default: |
215 | 215 | if ($max_length !== null) { |
216 | 216 | if (strlen($value)>$max_length) { |
217 | - throw new \Exception("Error for value '".$value."' for '".$key."' couldn't pass the " . |
|
217 | + throw new \Exception("Error for value '".$value."' for '".$key."' couldn't pass the ". |
|
218 | 218 | "validation: It's length must be smaller than ".$max_length." "); |
219 | 219 | } |
220 | 220 | } |
@@ -300,7 +300,7 @@ discard block |
||
300 | 300 | $options = array("options"=>array("regexp"=> $regex)); |
301 | 301 | $filter_check = filter_var($value, FILTER_VALIDATE_REGEXP, $options); |
302 | 302 | if ($filter_check === false) { |
303 | - $exception_message="Error for value '".$value."' for '".$key."' |
|
303 | + $exception_message = "Error for value '".$value."' for '".$key."' |
|
304 | 304 | couldn't pass the validation: INVALID_FORMAT"; |
305 | 305 | throw new \Exception($exception_message); |
306 | 306 | } |