Fix the issues reported by PHPCS

Created on 12 April 2023, about 2 years ago
Updated 27 April 2023, almost 2 years ago

Problem/Motivation

FILE: ...l10/web/modules/contrib/taxonomy_enum/src/TaxonomyEnumManagerInterface.php
--------------------------------------------------------------------------------
FOUND 3 ERRORS AFFECTING 3 LINES
--------------------------------------------------------------------------------
26 | ERROR | [x] Expected "classstring" but found "class-string" for parameter
| | type
36 | ERROR | [x] Expected "classstring" but found "class-string" for parameter
| | type
44 | ERROR | [x] Expected "classstring" but found "class-string" for parameter
| | type
--------------------------------------------------------------------------------
PHPCBF CAN FIX THE 3 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------

FILE: ...ribution/drupal10/web/modules/contrib/taxonomy_enum/taxonomy_enum.info.yml
--------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
--------------------------------------------------------------------------------
9 | ERROR | [x] Expected 1 newline at end of file; 0 found
--------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------

FILE: ...ntribution/drupal10/web/modules/contrib/taxonomy_enum/taxonomy_enum.module
--------------------------------------------------------------------------------
FOUND 16 ERRORS AND 1 WARNING AFFECTING 8 LINES
--------------------------------------------------------------------------------
26 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
26 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 3
27 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
27 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 3
28 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
28 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 3
29 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
29 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 3
30 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
30 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 3
31 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
31 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 3
31 | WARNING | [ ] Do not concatenate strings to translatable strings, they
| | should be part of the t() argument and you should use
| | placeholders
32 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
32 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 3
35 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
35 | ERROR | [x] Case breaking statement indented incorrectly; expected 6
| | spaces, found 3
--------------------------------------------------------------------------------
PHPCBF CAN FIX THE 16 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------

Time: 647ms; Memory: 10MB

Steps to reproduce

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

Proposed resolution

Fix the issues for Drupal and DrupalPractice coding standards

Remaining tasks

Review the patch

📌 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