Coding Standard Issues | PHPCS

Created on 6 January 2023, over 1 year ago
Updated 8 March 2024, 4 months ago

Problem/Motivation

Getting Following errors/warning

FILE: ..._field_value/tests/src/Unit/FieldValue/FieldTargetEntityTest.php
----------------------------------------------------------------------
FOUND 10 ERRORS AFFECTING 8 LINES
----------------------------------------------------------------------
153 | ERROR | [ ] No key specified for array entry; first entry
| | specifies key
220 | ERROR | [x] Data types in @param tags need to be fully
| | namespaced
229 | ERROR | [x] Line indented incorrectly; expected 6 spaces,
| | found 4
229 | ERROR | [x] Object operator not indented correctly; expected 6
| | spaces but found 4
230 | ERROR | [x] Line indented incorrectly; expected 6 spaces,
| | found 4
231 | ERROR | [x] Line indented incorrectly; expected 6 spaces,
| | found 4
233 | ERROR | [x] Line indented incorrectly; expected 6 spaces,
| | found 4
233 | ERROR | [x] Object operator not indented correctly; expected 6
| | spaces but found 4
234 | ERROR | [x] Line indented incorrectly; expected 6 spaces,
| | found 4
235 | ERROR | [x] Line indented incorrectly; expected 6 spaces,
| | found 4
----------------------------------------------------------------------
PHPCBF CAN FIX THE 9 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------

Time: 1.13 secs; Memory: 12MB

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/twig_field_value/

Proposed resolution

Run following command:
phpcbf --standard="Drupal,DrupalPractice" --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml modules/contrib/twig_field_value/

๐Ÿ› Bug report
Status

Needs review

Version

2.0

Component

Code

Created by

๐Ÿ‡ฎ๐Ÿ‡ณIndia shivam-kumar

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