Fix the issues reported by PHPCS

Created on 17 April 2023, over 1 year ago
Updated 18 April 2023, over 1 year ago

Problem/Motivation

FILE: .../modules/contrib/charts_text_filter/src/Plugin/Filter/ChartsTextFilter.php
--------------------------------------------------------------------------------
FOUND 7 ERRORS AFFECTING 7 LINES
--------------------------------------------------------------------------------
5 | ERROR | [x] Non-namespaced classes/interfaces/traits should not be
| | referenced with use statements
29 | ERROR | [x] Do not append variable name "$renderer" to the type
| | declaration in a member variable comment
146 | ERROR | [x] Calling class constructors must always include parentheses
157 | ERROR | [ ] Doc comment short description must be on a single line,
| | further text should be a separate paragraph
160 | ERROR | [x] Parameter comment indentation must be 3 spaces, found 2
| | spaces
161 | ERROR | [x] Separate the @param and @return sections by a blank line.
162 | ERROR | [x] Return comment indentation must be 3 spaces, found 2 spaces
--------------------------------------------------------------------------------
PHPCBF CAN FIX THE 6 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------

Time: 340ms; Memory: 10MB

Steps to reproduce

Execute the command: phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,js,info,txt,md,yml,twig charts_text_filter/

Proposed resolution

Fix all the issues for Drupal and DrupalPractice standards.

Remaining tasks

Patch review.

📌 Task
Status

Fixed

Version

1.0

Component

Code

Created by

🇮🇳India urvashi_vora Madhya Pradesh, India

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