Fix the issues reported by phpcs

Created on 4 July 2023, over 1 year ago
Updated 5 July 2023, over 1 year ago

Problem/Motivation

FILE: /var/www/html/vb/d_cont/user_not_role/user_not_role.info.yml
----------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
----------------------------------------------------------------------
5 | ERROR | [x] Expected 1 newline at end of file; 2 found
----------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------

FILE: /var/www/html/vb/d_cont/user_not_role/README.md
----------------------------------------------------------------------
FOUND 0 ERRORS AND 5 WARNINGS AFFECTING 5 LINES
----------------------------------------------------------------------
3 | WARNING | Line exceeds 80 characters; contains 232 characters
14 | WARNING | Line exceeds 80 characters; contains 153 characters
16 | WARNING | Line exceeds 80 characters; contains 145 characters
20 | WARNING | Line exceeds 80 characters; contains 187 characters
22 | WARNING | Line exceeds 80 characters; contains 84 characters
----------------------------------------------------------------------

FILE: ...b/d_cont/user_not_role/tests/src/Unit/Plugin/Condition/UserNotRoleTest.php
--------------------------------------------------------------------------------
FOUND 2 ERRORS AND 1 WARNING AFFECTING 3 LINES
--------------------------------------------------------------------------------
39 | WARNING | [ ] Only string literals should be passed to t() where
| | possible
301 | ERROR | [x] Missing class doc comment
303 | ERROR | [x] The closing brace for the class must have an empty line
| | before it
--------------------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------

Time: 205ms; 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 user_not_role/

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