Fix the issues reported by phpcs

Created on 10 April 2023, over 1 year ago
Updated 1 June 2023, over 1 year ago

Problem/Motivation

Getting the following errors/warnings.

FILE: /a11y_form_helpers/a11y_form_helpers.module
---------------------------------------------------------------------------
  10 | WARNING | [x] Unused use statement
  12 | WARNING | [x] Unused use statement
  15 | WARNING | [x] Unused use statement
 184 | WARNING | [ ] Empty return statement not required here
---------------------------------------------------------------------------

FILE: /a11y_form_helpers/README.txt
---------------------------------------------------------------------------
FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES
---------------------------------------------------------------------------
 12 | WARNING | Line exceeds 80 characters; contains 142 characters
 24 | WARNING | Line exceeds 80 characters; contains 119 characters
---------------------------------------------------------------------------


FILE: /a11y_form_helpers/src/A11yFormHelpersRenderElement.php
---------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
----------------------------------------------------------------------------
 28 | ERROR | The array declaration extends to column 81 (the limit is 80). The array content should be split up over multiple lines
----------------------------------------------------------------------------


FILE: /a11y_form_helpers/src/AutocompleteAttributeManager.php
----------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
----------------------------------------------------------------------------
 15 | WARNING | The class short comment should describe what the class does and not simply repeat the class name
----------------------------------------------------------------------------

Steps to reproduce

Run the following command

phpcs --standard="Drupal,DrupalPractice" --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml a11y_form_helpers

Proposed resolution

The above errors/warnings need to be fixed.

๐Ÿ“Œ Task
Status

Fixed

Version

2.0

Component

Code (other)

Created by

๐Ÿ‡ฎ๐Ÿ‡ณIndia omkar_yewale Mumbai

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