Problem/Motivation
There is a file that needs to be fixed with coding standards.
Here is the command: -
phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,js,info,txt,md,yml web/modules/custom/doissues/views_summary_tabs-3436688/
FILE: D:\wamp64\www\drupal10\modules\custom\doissues\views_summary_tabs-3436688\src\Plugin\views\style\TabsSummary.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:\wamp64\www\drupal10\modules\custom\doissues\views_summary_tabs-3436688\views_summary_tabs.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:\wamp64\www\drupal10\modules\custom\doissues\views_summary_tabs-3436688\views_summary_tabs.theme.inc
------------------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
------------------------------------------------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
8 | ERROR | [x] Missing function doc comment
------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------------------------
Time: 338ms; Memory: 10MB
Steps to reproduce
Run PHPCS on Views Summary Tabs module.
Proposed resolution
Fixed the coding standards.
Remaining tasks
Submit the patch either MR.
Comments
Comment #2
amanbtr72 commentedComment #4
amanbtr72 commentedComment #5
clarkssquared commentedHi
I applied MR !4 and I confirmed that it fixes the PHPCS issues that were reported, the remaining PHPCS warnings happen when the module is installed via composer.
RTBC +1 from me
Comment #6
amanbtr72 commentedComment #8
mandclu commentedThanks for identifying this, and for the work on a solution.