Problem/Motivation
$ phpcs --standard=Drupal .
FILE: /do_username/src/Plugin/Validation/Constraint/UsernameFormatConstraint.php
-------------------------------------------------------------------------------------------------------------------------------
FOUND 5 ERRORS AFFECTING 5 LINES
-------------------------------------------------------------------------------------------------------------------------------
17 | ERROR | Missing member variable doc comment
18 | ERROR | Missing member variable doc comment
19 | ERROR | Missing member variable doc comment
20 | ERROR | Missing member variable doc comment
21 | ERROR | Missing member variable doc comment
-------------------------------------------------------------------------------------------------------------------------------
FILE: /do_username/src/Plugin/Validation/Constraint/UsernameFormatConstraintValidator.php
----------------------------------------------------------------------------------------------------------------------------------------
FOUND 9 ERRORS AFFECTING 9 LINES
----------------------------------------------------------------------------------------------------------------------------------------
32 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
34 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
36 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
38 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
40 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
42 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
44 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
46 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
48 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
----------------------------------------------------------------------------------------------------------------------------------------
FILE: /do_username/tests/src/Kernel/ConfigTest.php
-------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
-------------------------------------------------------------------------------------------------
7 | ERROR | [ ] Missing short description in doc comment
13 | ERROR | [x] Doc comment short description must end with a full stop
-------------------------------------------------------------------------------------------------
Proposed resolution
Fix the errors as per Drupal coding standards.
User interface changes
NONE
API changes
NONE
Data model changes
NONE
Comments
Comment #2
ankithashettyMade the required changes as per the Drupal coding standard in the following patch file, kindly review.
Thank you!
Comment #3
Varun Rao commentedPatch #2 applied successfully, and also free from the
phpcserrors.Comment #4
hussainwebThanks for the patch.
Comment #6
hussainweb