Problem/Motivation
Steps to reproduce
Used this command.
vendor/bin/phpcs --standard="Drupal,DrupalPractice" -n --extensions="php,module,inc,install,test,profile,theme" userprofiledelete/
Issue that I get in userprofiledelete.module
FOUND 4 ERRORS AFFECTING 2 LINES
-------------------------------------------------------------------------------------------
112 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 3
112 | ERROR | [x] Expected 1 space between double arrow and "$user"; 0 found
112 | ERROR | [x] Expected 1 space after "=>"; 0 found
113 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 3
-------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 4 MARKED SNIFF VIOLATIONS AUTOMATICALLY
Proposed resolution
Run this command to fix the above coding standard issue.
vendor/bin/phpcs --standard="Drupal,DrupalPractice" -n --extensions="php,module,inc,install,test,profile,theme" userprofiledelete/
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | CodingStandarIssue-3355526-2.patch | 673 bytes | nishant |
Comments
Comment #2
nishantI have created patch for this module.
Comment #3
avpadernoThe issue summary should always describe what the issue is trying to fix and, in the case, of coding standards issues, show which command has been used, which arguments have been used, and which report that command shown.
Comment #4
nishantComment #5
nishantComment #6
shashank5563 commented@Nishant, Thanks for your code and patch.
I updated the new tag 7.x-1.1.
Comment #7
shashank5563 commentedComment #8
avpaderno