Thanks @prethiee for the patch. I have a few comments below. Apart from that,...

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?

  1. +++ b/src/Plugin/Validation/Constraint/UsernameFormatConstraint.php @@ -0,0 +1,52 @@ + * id = "UsernameFormat",

    Let's namespace this id. How about calling it `DoUsernameFormat`?

  2. +++ 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

  3. +++ 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

  4. +++ b/src/Plugin/Validation/Constraint/UsernameFormatConstraint.php @@ -0,0 +1,52 @@ + public $illegalCharacter = "The username contains an illegal character.";

    Extra space here

  5. +++ 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 Author
Files count
0
Patches count
0