FILE: C:\xampp_new\htdocs\contribute\web\modules\custom\checkbox_radio_buttons_multi_columns\checkbox_radio_buttons_multi_columns.module
----------------------------------------------------------------------------------------------------------------------------------------
FOUND 3 ERRORS AFFECTING 2 LINES
----------------------------------------------------------------------------------------------------------------------------------------
1 | ERROR | [x] Missing file doc comment
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
31 | ERROR | [x] Expected 1 newline at end of file; 2 found
----------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 3 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------------------------------------------------------

FILE: C:\xampp_new\htdocs\contribute\web\modules\custom\checkbox_radio_buttons_multi_columns\src\Plugin\Field\FieldWidget\MultiColumnOptionsButtonsWidget.php
-------------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AND 1 WARNING AFFECTING 3 LINES
-------------------------------------------------------------------------------------------------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
7 | WARNING | [x] Unused use statement
24 | ERROR | [x] There must be exactly one newline after the class comment
-------------------------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 3 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
new1.38 KB

I have fixed this issue and providing a patch.

indrapatil’s picture

StatusFileSize
new58.89 KB

Hi Harsh,
I reviewed the patch its working and if run the command
dell@indra-latitude-5480:/var/www/html/drupal-8$ phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml,twig checkbox_radio_buttons_multi_columns/

FILE: /var/www/html/drupal-8/checkbox_radio_buttons_multi_columns/checkbox_radio_buttons_multi_columns.module
-------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
-------------------------------------------------------------------------------------------------------------
10 | WARNING | Global constants should not be used, move it to a class or interface
-------------------------------------------------------------------------------------------------------------

Time: 70ms; Memory: 8MB

If you add DrupalPractice I can see I error I will work on it.

  • e5fed99 committed on 1.0.x
    Issue #3293002 by Harsh panchal:  phpcs --standard=Drupal coding issue
    
matsbla’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

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