@@ -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 | } |
@@ -236,7 +236,7 @@ discard block |
||
| 236 | 236 | return $value; |
| 237 | 237 | } |
| 238 | 238 | |
| 239 | - private static function filterValidate($input_type, $value){ |
|
| 239 | + private static function filterValidate($input_type, $value) { |
|
| 240 | 240 | switch ($input_type) { |
| 241 | 241 | case 'mail': |
| 242 | 242 | $filter_check = filter_var($value, FILTER_VALIDATE_EMAIL); |
@@ -298,7 +298,7 @@ discard block |
||
| 298 | 298 | $options = array("options"=>array("regexp"=> $regex)); |
| 299 | 299 | $filter_check = filter_var($value, FILTER_VALIDATE_REGEXP, $options); |
| 300 | 300 | if ($filter_check === false) { |
| 301 | - $exception_message="Error for value '".$value."' for '".$key."' |
|
| 301 | + $exception_message = "Error for value '".$value."' for '".$key."' |
|
| 302 | 302 | couldn't pass the validation: INVALID_FORMAT"; |
| 303 | 303 | throw new \Exception($exception_message); |
| 304 | 304 | } |