FILE: D:\xampp\htdocs\drupal9.5\web\modules\contrib\custom_classes\custom_classes.module
----------------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 1 LINE
----------------------------------------------------------------------------------------
1 | ERROR | [x] Missing file doc comment
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
----------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------
FILE: D:\xampp\htdocs\drupal9.5\web\modules\contrib\custom_classes\README.md
----------------------------------------------------------------------------
FOUND 0 ERRORS AND 3 WARNINGS AFFECTING 3 LINES
----------------------------------------------------------------------------
5 | WARNING | Line exceeds 80 characters; contains 238 characters
7 | WARNING | Line exceeds 80 characters; contains 303 characters
13 | WARNING | Line exceeds 80 characters; contains 87 characters
----------------------------------------------------------------------------
FILE: D:\xampp\htdocs\drupal9.5\web\modules\contrib\custom_classes\src\Controller\CustomClassController.php
-----------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
-----------------------------------------------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
-----------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------------------------------
FILE: D:\xampp\htdocs\drupal9.5\web\modules\contrib\custom_classes\src\Form\SettingsForm.php
--------------------------------------------------------------------------------------------
FOUND 5 ERRORS AFFECTING 5 LINES
--------------------------------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
38 | ERROR | [x] Array indentation error, expected 6 spaces but found 0
39 | ERROR | [x] Array indentation error, expected 6 spaces but found 0
40 | ERROR | [x] Array indentation error, expected 6 spaces but found 0
41 | ERROR | [x] Array indentation error, expected 6 spaces but found 0
--------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 5 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------------------
FILE: D:\xampp\htdocs\drupal9.5\web\modules\contrib\custom_classes\src\FormElementRemoveClasses.php
---------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
---------------------------------------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
---------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------------
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | Screenshot from 2022-07-11 18-59-19.png | 62.67 KB | akshaydalvi212 |
| #2 | phpcs-drupal-standard-3295108-2.patch | 2.51 KB | Harsh panchal |
Comments
Comment #2
Harsh panchal commentedI have fixed this issue and providing a patch.
Comment #3
akshaydalvi212 commentedHello @Harsh panchal,
I will review this patch.
Thanks and regards.
Comment #4
akshaydalvi212 commentedHello,
After applying the patch, getting some warnings but I see you have created separate issues for the warnings.

So leaving those warnings, this patch works fine and eliminates the php drupal coding standard errors and warnings.
https://www.drupal.org/project/custom_classes/issues/3295112
https://www.drupal.org/project/custom_classes/issues/3295116
hence shifting the issue to reviewed and tested by the community.
Thanks and regards.
Comment #5
kaszarobertThank you for your contribution! I committed the patch.