Fix the issues reported by phpcs

Created on 1 February 2023, over 1 year ago
Updated 30 March 2023, about 1 year ago

Problem/Motivation

Getting Following errors/warnings

FILE: ~/projects/drupal-d10/modules/contrib/cookies_msdynamics365marketing/cookies_msdynamics365marketing.module
---------------------------------------------------------------------
FOUND 4 ERRORS AND 6 WARNINGS AFFECTING 9 LINES
---------------------------------------------------------------------
 30 | WARNING | [ ] Line exceeds 80 characters; contains 88 characters
 30 | ERROR   | [x] Inline comments must start with a capital letter
 31 | WARNING | [ ] Line exceeds 80 characters; contains 87 characters
 32 | ERROR   | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
 33 | ERROR   | [x] Line indented incorrectly; expected 1 spaces, found 0
 43 | WARNING | [ ] Line exceeds 80 characters; contains 92 characters
 52 | WARNING | [ ] Line exceeds 80 characters; contains 93 characters
 57 | WARNING | [ ] Line exceeds 80 characters; contains 92 characters
 58 | WARNING | [ ] Line exceeds 80 characters; contains 90 characters
 64 | ERROR   | [x] Line indented incorrectly; expected 3 spaces, found 2
----------------------------------------------------------------
PHPCBF CAN FIX THE 4 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------

Time: 69ms; Memory: 10MB

Steps to reproduce

phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml cookies_msdynamics365marketing 

Proposed resolution

Fix the errors and warnings.

📌 Task
Status

Closed: won't fix

Version

1.0

Component

Documentation

Created by

🇮🇳India Jay Jangid

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.69.0 2024