Fix the issues reported by phpcs

Created on 27 April 2023, almost 2 years ago
Updated 30 May 2023, almost 2 years ago

Issues Found BY checking phpcs :

FILE: C:\wamp64\www\my_site_name_dir\web\modules\Contrib\component_blocks-3356835\README.txt
--------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
--------------------------------------------------------------------------------------------
32 | WARNING | Line exceeds 80 characters; contains 83 characters
--------------------------------------------------------------------------------------------
FILE: C:\wamp64\www\my_site_name_dir\web\modules\Contrib\component_blocks-3356835\component_blocks.module
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AND 2 WARNINGS AFFECTING 3 LINES
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
23 | WARNING | [ ] Format should be "* Implements hook_foo().", "* Implements hook_foo_BAR_ID_bar() for xyz_bar().",, "* Implements hook_foo_BAR_ID_bar() for xyz-bar.html.twig.", "* Implements
| | hook_foo_BAR_ID_bar() for xyz-bar.tpl.php.", or "* Implements hook_foo_BAR_ID_bar() for block templates."
26 | WARNING | [ ] Unused variable $storage.
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Please Use This Command to test The remaining coding standard issues:

phpcs --standard=drupal,drupalpractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml README.txt

phpcs --standard=drupal,drupalpractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml component_blocks.module

📌 Task
Status

Fixed

Version

1.0

Component

Code

Created by

🇮🇳India Rohit Rana

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