Fix the issues reported by phpcs

Created on 21 April 2023, over 1 year ago
Updated 24 April 2023, over 1 year ago

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/

🐛 Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

🇮🇳India Nishant

Live updates comments and jobs are added and updated live.
  • Coding standards

    It involves compliance with, or the content of coding standards. Requires broad community agreement.

Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024