Fix the Coding standards Reported by phpcs

Created on 10 July 2023, over 1 year ago
Updated 11 July 2023, over 1 year ago

Problem/Motivation

vendor/bin/phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml,twig web/modules/contrib/shy_one_time/

FILE: /var/www/html/contributions/web/modules/contrib/shy_one_time/shy_one_time.services.yml
--------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
--------------------------------------------------------------------------------------------
12 | ERROR | [x] Expected 1 newline at end of file; 2 found
--------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------------------

FILE: /var/www/html/contributions/web/modules/contrib/shy_one_time/README.md
----------------------------------------------------------------------------
FOUND 0 ERRORS AND 21 WARNINGS AFFECTING 21 LINES
----------------------------------------------------------------------------
14 | WARNING | Line exceeds 80 characters; contains 118 characters
15 | WARNING | Line exceeds 80 characters; contains 117 characters
16 | WARNING | Line exceeds 80 characters; contains 119 characters
17 | WARNING | Line exceeds 80 characters; contains 116 characters
22 | WARNING | Line exceeds 80 characters; contains 119 characters
27 | WARNING | Line exceeds 80 characters; contains 110 characters
28 | WARNING | Line exceeds 80 characters; contains 114 characters
29 | WARNING | Line exceeds 80 characters; contains 119 characters
32 | WARNING | Line exceeds 80 characters; contains 103 characters
47 | WARNING | Line exceeds 80 characters; contains 118 characters
50 | WARNING | Line exceeds 80 characters; contains 120 characters
55 | WARNING | Line exceeds 80 characters; contains 102 characters
59 | WARNING | Line exceeds 80 characters; contains 105 characters
72 | WARNING | Line exceeds 80 characters; contains 119 characters
73 | WARNING | Line exceeds 80 characters; contains 116 characters
81 | WARNING | Line exceeds 80 characters; contains 120 characters
85 | WARNING | Line exceeds 80 characters; contains 117 characters
91 | WARNING | Line exceeds 80 characters; contains 94 characters
92 | WARNING | Line exceeds 80 characters; contains 115 characters
97 | WARNING | Line exceeds 80 characters; contains 118 characters
98 | WARNING | Line exceeds 80 characters; contains 92 characters
----------------------------------------------------------------------------

Steps to reproduce

Proposed resolution

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

Remaining tasks

User interface changes

API changes

Data model changes

📌 Task
Status

Fixed

Version

2.0

Component

Code

Created by

🇮🇳India dineshkumarbollu

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