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/

CommentFileSizeAuthor
#2 CodingStandarIssue-3355526-2.patch673 bytesnishant

Comments

Nishant created an issue. See original summary.

nishant’s picture

StatusFileSize
new673 bytes

I have created patch for this module.

avpaderno’s picture

Title: Phpcs found 4 errors » Fix the issues reported by phpcs
Version: 7.x-1.0 » 7.x-1.x-dev
Status: Active » Needs work
Issue tags: +Coding standards, +Needs issue summary update

The 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.

nishant’s picture

Issue summary: View changes
nishant’s picture

Status: Needs work » Needs review
shashank5563’s picture

Status: Needs review » Fixed

@Nishant, Thanks for your code and patch.

I updated the new tag 7.x-1.1.

shashank5563’s picture

Status: Fixed » Closed (fixed)
avpaderno’s picture