Fix the issues reported by phpcs.

Created on 7 July 2023, 12 months ago
Updated 13 May 2024, about 1 month ago

Problem/Motivation

FILE: ...novo/d7to9/web/modules/contrib/entity_class_formatter/src/Plugin/Field/FieldFormatter/EntityClassFormatter.php
--------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AND 1 WARNING AFFECTING 2 LINES
--------------------------------------------------------------------------------------------------------------------
  6 | ERROR   | [x] Use statements should be sorted alphabetically. The first wrong one is
    |         |     Drupal\Core\Field\FieldItemListInterface.
 89 | WARNING | [ ] Only string literals should be passed to t() where possible
--------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------------------------------------------


FILE: ...home/lenovo/d7to9/web/modules/contrib/entity_class_formatter/tests/src/Functional/EntityClassFormatterTest.php
--------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
--------------------------------------------------------------------------------------------------------------------
 11 | ERROR | Missing short description in doc comment
--------------------------------------------------------------------------------------------------------------------

Time: 108ms; 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 entity_class_formatter/

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

📌 Task
Status

Fixed

Version

1.0

Component

Code

Created by

🇮🇳India roshni27

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.69.0 2024