@@ -59,7 +59,7 @@ |
||
59 | 59 | } |
60 | 60 | |
61 | 61 | $result = array_unique( |
62 | - array_map(function ($value) { |
|
62 | + array_map(function($value) { |
|
63 | 63 | if ($value === null) { |
64 | 64 | return; |
65 | 65 | } |
@@ -15,7 +15,7 @@ |
||
15 | 15 | |
16 | 16 | public function validatedBy() |
17 | 17 | { |
18 | - return get_class($this) . 'Validator'; |
|
18 | + return get_class($this).'Validator'; |
|
19 | 19 | } |
20 | 20 | |
21 | 21 | } |
@@ -35,7 +35,7 @@ discard block |
||
35 | 35 | |
36 | 36 | public function validate($value, Constraint $constraint) |
37 | 37 | { |
38 | - if (!isset($value) || $value === null || !strlen(trim($value))) { |
|
38 | + if (!isset($value) || $value === null || !strlen(trim($value))) { |
|
39 | 39 | return; |
40 | 40 | } |
41 | 41 | if (!self::checkLength($value)) { |
@@ -53,9 +53,9 @@ discard block |
||
53 | 53 | for ($i = 0; $i < $a; $i++) { |
54 | 54 | if ($postal[$i] != '"') { |
55 | 55 | if (is_numeric($postal[$i])) { |
56 | - $exp .= '[0-'. $postal[$i].']{1}'; |
|
56 | + $exp .= '[0-'.$postal[$i].']{1}'; |
|
57 | 57 | } else if ($postal[$i] == ' ') { |
58 | - $exp .= "\\". $postal[$i]; |
|
58 | + $exp .= "\\".$postal[$i]; |
|
59 | 59 | } else { |
60 | 60 | $exp .= $postal[$i]; |
61 | 61 | } |
@@ -15,7 +15,7 @@ |
||
15 | 15 | |
16 | 16 | public function validatedBy() |
17 | 17 | { |
18 | - return get_class($this) . 'Validator'; |
|
18 | + return get_class($this).'Validator'; |
|
19 | 19 | } |
20 | 20 | |
21 | 21 | } |
@@ -28,10 +28,10 @@ |
||
28 | 28 | |
29 | 29 | public function validate($value, Constraint $constraint) |
30 | 30 | { |
31 | - if (! isset($value) || $value === null || ! strlen(trim($value))) { |
|
31 | + if (!isset($value) || $value === null || !strlen(trim($value))) { |
|
32 | 32 | return; |
33 | 33 | } |
34 | - if (! self::isUsernameValid($value)) { |
|
34 | + if (!self::isUsernameValid($value)) { |
|
35 | 35 | $this->context->addViolation($constraint->message); |
36 | 36 | } |
37 | 37 | } |