$ phpcs --standard=Drupal --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml saithru_connect/
Xdebug: [Step Debug] Time-out connecting to debugging client, waited: 200 ms. Tried: localhost:9000 (through xdebug.client_host/xdebug.client_port) :-(
FILE: C:\Users\SI-001\Downloads\saithru_connect\src\Form\SailThruConnectForm.php
------------------------------------------------------------------------------------------------------------
FOUND 7 ERRORS AND 1 WARNING AFFECTING 7 LINES
------------------------------------------------------------------------------------------------------------
3 | ERROR | [x] Namespaced classes, interfaces and traits should not begin with a file doc comment
11 | ERROR | [x] There must be one blank line after the last USE statement; 2 found;
14 | ERROR | [ ] Class name doesn't match filename; expected "class SailThruConnectForm"
14 | ERROR | [x] Missing class doc comment
28 | WARNING | [x] A comma should follow the last multiline array item. Found: 'sailthru_connect.settings'
74 | ERROR | [x] Object operator not indented correctly; expected 6 spaces but found 11
79 | ERROR | [x] Expected 1 blank line after function; 0 found
80 | ERROR | [x] The closing brace for the class must have an empty line before it
------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 7 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------------------------
FILE: C:\Users\SI-001\Downloads\saithru_connect\src\SailthruConnect.php
--------------------------------------------------------------------------------------
FOUND 5 ERRORS AFFECTING 4 LINES
--------------------------------------------------------------------------------------
7 | ERROR | [ ] Class name doesn't match filename; expected "class SailthruConnect"
7 | ERROR | [x] Missing class doc comment
30 | ERROR | [x] Doc comment short description must start with a capital letter
67 | ERROR | [x] Expected 1 blank line after function; 0 found
68 | ERROR | [x] The closing brace for the class must have an empty line before it
--------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 4 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------------
Time: 239ms; Memory: 10MB
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | patch-applied.png | 27.19 KB | anoopsingh92 |
| #2 | drupal-coding-standard-issue-3301965-2.patch | 2.37 KB | rakhi soni |
Issue fork saithru_connect-3301965
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
rakhi soni commentedKindly review patch,,
Comment #3
anoopsingh92Comment #4
anoopsingh92HI @rakhi, I reviewed your patch #2. It is applying successfully for me.

Thanks for the patch. Moving it to RTBC.
Comment #5
anoopsingh92Comment #7
megha_kundar commentedComment #8
megha_kundar commented