$ phpcs --standard=Drupal --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml views_display_union/

FILE: C:\xampp\htdocs\contribution\web\modules\contrib\views_display_union\README.txt
-------------------------------------------------------------------------------------
FOUND 1 ERROR AND 1 WARNING AFFECTING 2 LINES
-------------------------------------------------------------------------------------
3 | WARNING | [ ] Line exceeds 80 characters; contains 272 characters
6 | ERROR | [x] Expected 1 newline at end of file; 0 found
-------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------

FILE: C:\xampp\htdocs\contribution\web\modules\contrib\views_display_union\src\Plugin\views\display\Union.php
-------------------------------------------------------------------------------------------------------------
FOUND 3 ERRORS AFFECTING 3 LINES
-------------------------------------------------------------------------------------------------------------
111 | ERROR | [x] Missing function doc comment
149 | ERROR | [ ] Missing short description in doc comment
209 | ERROR | [x] Expected 1 newline at end of file; 0 found
-------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------------------------------

FILE: C:\xampp\htdocs\contribution\web\modules\contrib\views_display_union\views_display_union.module
-----------------------------------------------------------------------------------------------------
FOUND 5 ERRORS AFFECTING 5 LINES
-----------------------------------------------------------------------------------------------------
34 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
71 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
78 | ERROR | [x] Closing parenthesis of array declaration must be on a new line
85 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
116 | ERROR | [x] Expected 1 newline at end of file; 0 found
-----------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 5 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------------------------

Time: 300ms; Memory: 10MB

Comments

Rakhi Soni created an issue. See original summary.

rakhi soni’s picture

rakhi soni’s picture

Assigned: rakhi soni » Unassigned
Status: Active » Needs review
StatusFileSize
new3.88 KB

I have created a patch to fix the coding standard issue,,

  • Rakhi Soni authored 28cf2be on 1.0.x
    Issue #3289566 by Rakhi Soni: Fix: phpcs --standard=Drupal error
    
gribnif’s picture

Status: Needs review » Fixed

I applied this patch and cleaned it up a bit. Thanks!

gribnif’s picture

Version: » 1.0.0
Status: Fixed » Closed (fixed)