Fix the issues reported by phpcs

Created on 7 July 2023, over 1 year ago
Updated 18 July 2023, over 1 year ago

Problem/Motivation

FILE: /var/www/html/vb/d_cont/copy_formatter/copy_formatter.module
------------------------------------------------------------------------------
FOUND 6 ERRORS AFFECTING 6 LINES
------------------------------------------------------------------------------
3 | ERROR | Missing short description in doc comment
17 | ERROR | String concat is not required here; use a single string instead
19 | ERROR | String concat is not required here; use a single string instead
20 | ERROR | String concat is not required here; use a single string instead
21 | ERROR | String concat is not required here; use a single string instead
24 | ERROR | String concat is not required here; use a single string instead
------------------------------------------------------------------------------

FILE: /var/www/html/vb/d_cont/copy_formatter/README.md
------------------------------------------------------------------------
FOUND 1 ERROR AND 4 WARNINGS AFFECTING 4 LINES
------------------------------------------------------------------------
3 | WARNING | [ ] Line exceeds 80 characters; contains 334 characters
29 | WARNING | [ ] Line exceeds 80 characters; contains 142 characters
32 | WARNING | [ ] Line exceeds 80 characters; contains 167 characters
33 | WARNING | [ ] Line exceeds 80 characters; contains 98 characters
33 | ERROR | [x] Expected 1 newline at end of file; 2 found
------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------

FILE: ..._formatter/src/Plugin/Field/FieldFormatter/CopyMediaEmbedCodeFormatter.php
--------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNINGS AFFECTING 1 LINE
--------------------------------------------------------------------------------
12 | WARNING | Line exceeds 80 characters; contains 82 characters
--------------------------------------------------------------------------------

FILE: /var/www/html/vb/d_cont/copy_formatter/copy_formatter.info.yml
--------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
--------------------------------------------------------------------------------
7 | WARNING | All dependencies must be prefixed with the project name, for
| | example "drupal:"
--------------------------------------------------------------------------------

Time: 69ms; Memory: 10MB

Steps to reproduce

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

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