Contribution Date
Technology
Contribution Project
Contribution Details
Thanks @prethiee for the patch. I have a few comments below. Apart from that, I assume you took the violations right from the UserName validator?
-
+++ b/src/Plugin/Validation/Constraint/UsernameFormatConstraint.php @@ -0,0 +1,52 @@ + * id = "UsernameFormat",
Let's namespace this id. How about calling it `DoUsernameFormat`?
-
+++ b/src/Plugin/Validation/Constraint/UsernameFormatConstraint.php @@ -0,0 +1,52 @@ + public $multipleSpace = 'The username cannot contain multiple spaces in a row.';
Extra space here
-
+++ b/src/Plugin/Validation/Constraint/UsernameFormatConstraint.php @@ -0,0 +1,52 @@ + public $invalidCharacter = "The username contains punctuation, only periods, hyphens, apostrophes, and underscores are allowed.";
Extra space here
-
+++ b/src/Plugin/Validation/Constraint/UsernameFormatConstraint.php @@ -0,0 +1,52 @@ + public $illegalCharacter = "The username contains an illegal character.";
Extra space here
-
+++ b/src/Plugin/Validation/Constraint/UsernameFormatConstraintValidator.php @@ -0,0 +1,35 @@ + if (substr($item->value, 0, 1) == ' ') {
The indentation is incorrect.
Issue Status
Needs work
Contribution Issue Link
Files count
0
Patches count
0