FILE: D:\xampp\htdocs\drupal9.5\web\modules\contrib\ms_clarity\config\schema\ms_clarity.schema.yml
--------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
--------------------------------------------------------------------------------------------------
28 | ERROR | [x] Expected 1 newline at end of file; 0 found
--------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------------------------
FILE: D:\xampp\htdocs\drupal9.5\web\modules\contrib\ms_clarity\ms_clarity.libraries.yml
---------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
---------------------------------------------------------------------------------------
7 | ERROR | [x] Expected 1 newline at end of file; 2 found
---------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------
FILE: D:\xampp\htdocs\drupal9.5\web\modules\contrib\ms_clarity\ms_clarity.module
----------------------------------------------------------------------------------
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\ms_clarity\ms_clarity.permissions.yml
-----------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
-----------------------------------------------------------------------------------------
3 | ERROR | [x] Expected 1 newline at end of file; 2 found
-----------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------------
FILE: D:\xampp\htdocs\drupal9.5\web\modules\contrib\ms_clarity\ms_clarity.routing.yml
-------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
-------------------------------------------------------------------------------------
7 | ERROR | [x] Expected 1 newline at end of file; 2 found
-------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------
FILE: D:\xampp\htdocs\drupal9.5\web\modules\contrib\ms_clarity\ms_clarity.services.yml
--------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
--------------------------------------------------------------------------------------
8 | ERROR | [x] Expected 1 newline at end of file; 0 found
--------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------------
FILE: D:\xampp\htdocs\drupal9.5\web\modules\contrib\ms_clarity\src\Form\MicrosoftClarityAdminSettingsForm.php
---------------------------------------------------------------------------------------------------------------------------------------------
FOUND 4 ERRORS AND 1 WARNING AFFECTING 5 LINES
---------------------------------------------------------------------------------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
117 | WARNING | [ ] Translatable strings must not begin or end with white spaces, use placeholders with t() for variables
151 | ERROR | [ ] The array declaration extends to column 132 (the limit is 80). The array content should be split up over multiple lines
152 | ERROR | [ ] The array declaration extends to column 162 (the limit is 80). The array content should be split up over multiple lines
159 | ERROR | [ ] The array declaration extends to column 313 (the limit is 80). The array content should be split up over multiple lines
---------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------------------------------------------------------
FILE: D:\xampp\htdocs\drupal9.5\web\modules\contrib\ms_clarity\src\Helpers\MicrosoftClarityAccounts.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\ms_clarity\src\Helpers\VisiblityTracker.php
-----------------------------------------------------------------------------------------------
FOUND 1 ERROR AND 1 WARNING AFFECTING 2 LINES
-----------------------------------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
136 | WARNING | [ ] Line exceeds 80 characters; contains 81 characters
-----------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------------------
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | Screenshot from 2022-07-08 13-52-02 After.png | 50.13 KB | akshaydalvi212 |
| #4 | Screenshot from 2022-07-08 13-49-27 Before.png | 89.75 KB | akshaydalvi212 |
| #2 | phpcs-drupal-coding-standard-3294881-2.patch | 5.14 KB | Harsh panchal |
Comments
Comment #2
Harsh panchal commentedI have fixed this issue and providing a patch,
Comment #3
akshaydalvi212 commentedHello,
I will review this patch.
Comment #4
akshaydalvi212 commentedHello,
Before applying the patch, Php drupal coding standard Errors and warnings as follows:

After applying the patch, all the errors and warnings related to Php drupal coding standard are eliminated as follows:

hence moving the issue from needs review to Reviewed and tested by the community status.
Thank you.
Comment #5
yahyaalhamadComment #7
yahyaalhamadThanks for the patch, fixed.
Comment #8
yahyaalhamad