Fix the issues reported by phpcs

Created on 18 July 2023, over 1 year ago
Updated 9 August 2024, 3 months ago

Problem/Motivation

FILE: /Applications/MAMP/htdocs/development/web/modules/contrib/lazy_config_form/lazy_config_form.module
--------------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 10 ERRORS AND 2 WARNINGS AFFECTING 6 LINES
--------------------------------------------------------------------------------------------------------------------------------------------------------------
  6 | ERROR   | [x] There must be exactly one blank line after the file comment
  8 | WARNING | [x] Unused use statement
  8 | ERROR   | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\Core\Render\Markup.
 15 | ERROR   | [x] Line indented incorrectly; expected 4 spaces, found 0
 62 | WARNING | [x] There must be no blank line following an inline comment
 62 | ERROR   | [x] Line indented incorrectly; expected 6 spaces, found 0
 62 | ERROR   | [x] No space found before comment text; expected "// kint(highlight_string($code, TRUE));" but found "//kint(highlight_string($code, TRUE));"
 62 | ERROR   | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
 66 | ERROR   | [x] Expected 1 space after "=>"; 0 found
 68 | ERROR   | [x] Line indented incorrectly; expected 6 spaces, found 0
 68 | ERROR   | [x] No space found before comment text; expected "// kint(highlight_string($code, TRUE));" but found "//kint(highlight_string($code, TRUE));"
 68 | ERROR   | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
--------------------------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 12 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: /Applications/MAMP/htdocs/development/web/modules/contrib/lazy_config_form/src/Form/LazyConfigForm.php
-----------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
-----------------------------------------------------------------------------------------------------------------
 10 | WARNING | The class short comment should describe what the class does and not simply repeat the class name
-----------------------------------------------------------------------------------------------------------------

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

Proposed resolution

๐Ÿ“Œ Task
Status

RTBC

Version

1.0

Component

Code

Created by

๐Ÿ‡ฎ๐Ÿ‡ณIndia Harshita mehra

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024