Fix the issues reported by phpcs

Created on 28 June 2023, over 1 year ago
Updated 6 July 2023, over 1 year ago

Problem/Motivation

FILE: ..._cont/schema_based_config_forms/src/Annotation/SchemaConfigFormElement.php
--------------------------------------------------------------------------------
FOUND 3 ERRORS AFFECTING 3 LINES
--------------------------------------------------------------------------------
16 | ERROR | Missing @var tag in member variable comment
39 | ERROR | Missing @var tag in member variable comment
47 | ERROR | Missing @var tag in member variable comment
--------------------------------------------------------------------------------

FILE: ...r/www/html/vb/d_cont/schema_based_config_forms/src/Form/ConfigFormBase.php
--------------------------------------------------------------------------------
FOUND 0 ERRORS AND 6 WARNINGS AFFECTING 6 LINES
--------------------------------------------------------------------------------
266 | WARNING | Line exceeds 80 characters; contains 84 characters
283 | WARNING | Line exceeds 80 characters; contains 99 characters
334 | WARNING | Line exceeds 80 characters; contains 96 characters
339 | WARNING | Line exceeds 80 characters; contains 89 characters
364 | WARNING | Line exceeds 80 characters; contains 110 characters
380 | WARNING | Line exceeds 80 characters; contains 84 characters
--------------------------------------------------------------------------------

FILE: ...ont/schema_based_config_forms/src/SchemaConfigFormElementPluginManager.php
--------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
--------------------------------------------------------------------------------
18 | ERROR | Missing @var tag in member variable comment
--------------------------------------------------------------------------------

FILE: ...d_cont/schema_based_config_forms/src/SchemaConfigFormElementPluginBase.php
--------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
--------------------------------------------------------------------------------
21 | ERROR | Missing @var tag in member variable comment
--------------------------------------------------------------------------------

FILE: ...ased_config_forms/src/Plugin/SchemaConfigFormElement/EntityReferenceId.php
--------------------------------------------------------------------------------
FOUND 3 ERRORS AFFECTING 3 LINES
--------------------------------------------------------------------------------
24 | ERROR | [ ] Missing @var tag in member variable comment
76 | ERROR | [x] Array indentation error, expected 6 spaces but found 8
77 | ERROR | [x] Array indentation error, expected 6 spaces but found 8
--------------------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------

FILE: ...chema_based_config_forms/src/Plugin/SchemaConfigFormElement/TextFormat.php
--------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
--------------------------------------------------------------------------------
44 | WARNING | Line exceeds 80 characters; contains 95 characters
--------------------------------------------------------------------------------

FILE: ..._forms_mlfe/src/Plugin/SchemaConfigFormElement/MediaLibraryFormElement.php
--------------------------------------------------------------------------------
FOUND 3 ERRORS AFFECTING 3 LINES
--------------------------------------------------------------------------------
39 | ERROR | [x] Array indentation error, expected 6 spaces but found 8
40 | ERROR | [x] Array indentation error, expected 6 spaces but found 8
43 | ERROR | [x] Array indentation error, expected 6 spaces but found 8
--------------------------------------------------------------------------------
PHPCBF CAN FIX THE 3 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------

Time: 341ms; Memory: 12MB

Steps to reproduce

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

Remaining tasks

Patch review

📌 Task
Status

Closed: works as designed

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

  • Issue created by @urvashi_vora
  • Status changed to Closed: works as designed over 1 year ago
  • 🇺🇸United States bvoynick

    Looks like you're using an outdated version of drupal/coder. Make sure you use the latest release, and the custom PHPCS configuration included with the module.

Production build 0.71.5 2024