Drupal Coding Standards Issues | phpcs

Created on 21 December 2022, almost 2 years ago
Updated 24 January 2023, almost 2 years ago

Problem/Motivation

Getting following error/warnings

FILE: /app/modules/contrib/taxonomy_formatter/src/Plugin/Field/FieldFormatter/TaxonomyTermReferenceFormatter.php
----------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 5 WARNINGS AFFECTING 5 LINES
----------------------------------------------------------------------------------------------------------------
60 | WARNING | #options values usually have to run through t() for translation
61 | WARNING | #options values usually have to run through t() for translation
83 | WARNING | #options values usually have to run through t() for translation
85 | WARNING | #options values usually have to run through t() for translation
92 | WARNING | #options values usually have to run through t() for translation
----------------------------------------------------------------------------------------------------------------

Time: 1.26 secs; Memory: 10MB

Steps to reproduce

Run following command

phpcs --standard="Drupal,DrupalPractice" --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml modules/contrib/taxonomy_formatter/

Proposed resolution

Above error/warnings need to be fixed

🐛 Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

🇮🇳India samit.310@gmail.com

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024