$ 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

Command icon 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

Rakhi Soni created an issue. See original summary.

rakhi soni’s picture

Assigned: rakhi soni » Unassigned
Status: Active » Needs review
StatusFileSize
new2.37 KB

Kindly review patch,,

anoopsingh92’s picture

Assigned: Unassigned » anoopsingh92
anoopsingh92’s picture

Status: Needs review » Reviewed & tested by the community
StatusFileSize
new27.19 KB

HI @rakhi, I reviewed your patch #2. It is applying successfully for me.
Patch #2
Thanks for the patch. Moving it to RTBC.

anoopsingh92’s picture

Assigned: anoopsingh92 » Unassigned

megha_kundar’s picture

Status: Reviewed & tested by the community » Fixed
megha_kundar’s picture

Status: Fixed » Closed (fixed)