Fix the issues reported by PHPCS

Created on 13 April 2023, over 1 year ago

Problem/Motivation

FILE: ...ntrib/layout_builder_sections_config/layout_builder_sections_config.module
--------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
--------------------------------------------------------------------------------
11 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 1
--------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------

FILE: ...tion/drupal10/web/modules/contrib/layout_builder_sections_config/README.md
--------------------------------------------------------------------------------
FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES
--------------------------------------------------------------------------------
4 | WARNING | Line exceeds 80 characters; contains 98 characters
54 | WARNING | Line exceeds 80 characters; contains 121 characters
--------------------------------------------------------------------------------

FILE: ...b/modules/contrib/layout_builder_sections_config/src/Form/SettingsForm.php
--------------------------------------------------------------------------------
FOUND 8 ERRORS AFFECTING 8 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
41 | ERROR | [x] Array indentation error, expected 6 spaces but found 8
42 | ERROR | [x] Array indentation error, expected 6 spaces but found 8
43 | ERROR | [x] Array indentation error, expected 6 spaces but found 8
44 | ERROR | [x] Array indentation error, expected 6 spaces but found 8
45 | ERROR | [x] Array indentation error, expected 6 spaces but found 8
46 | ERROR | [x] Array indentation error, expected 6 spaces but found 8
--------------------------------------------------------------------------------
PHPCBF CAN FIX THE 8 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------

Time: 443ms; 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 layout_builder_sections_config/

Proposed resolution

Resolve all the issues for Drupal and DrupalPractice coding standards

Remaining tasks

Patch review

📌 Task
Status

RTBC

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