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

Comments

Harsh panchal created an issue. See original summary.

Harsh panchal’s picture

Category: Task » Bug report
Status: Active » Needs review
StatusFileSize
new2.51 KB

I have fixed this issue and providing a patch.

akshaydalvi212’s picture

Hello @Harsh panchal,

I will review this patch.

Thanks and regards.

akshaydalvi212’s picture

Assigned: akshaydalvi212 » Unassigned
Issue summary: View changes
Status: Needs review » Reviewed & tested by the community
StatusFileSize
new62.67 KB

Hello,

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.

kaszarobert’s picture

Status: Reviewed & tested by the community » Fixed

Thank you for your contribution! I committed the patch.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.