FILE: /var/www/html/contribution/web/modules/contrib/entity_reference_number_widget/README.txt
----------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
----------------------------------------------------------------------------------------------
4 | ERROR | [x] Expected 1 newline at end of file; 2 found
----------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------------

FILE: /var/www/html/contribution/web/modules/contrib/entity_reference_number_widget/src/Plugin/Field/FieldWidget/EntityReferenceNumberWidget.php
------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 5 ERRORS AFFECTING 5 LINES
------------------------------------------------------------------------------------------------------------------------------------------------
23 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
24 | ERROR | [x] Expected 2 space(s) before asterisk; 3 found
25 | ERROR | [x] Expected 2 space(s) before asterisk; 3 found
48 | ERROR | [x] Expected 1 blank line after function; 0 found
49 | ERROR | [x] The closing brace for the class must have an empty line before it
------------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 5 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------------------------------------------------------------

phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml,twig web/modules/contrib/entity_reference_number_widget/

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

himanshu_jhaloya created an issue. See original summary.

himanshu_jhaloya’s picture

Assigned: himanshu_jhaloya » Unassigned
Status: Active » Needs review

  • dww committed b66332c9 on 8.x-1.x
    Issue #3353593: Run phpcbf to fix some trivial code style errors.
    
dww’s picture

Status: Needs review » Fixed
Issue tags: -Fix the issues reported by phpcs

Thanks for reporting this. I ran phpcbf myself and committed the trivial changes.

Since you've been on d.o for almost 2 years, I'm not going to grant credit for this. Please find something more interesting than such a trivial, automated fix if you'd like to contribute.

Cheers,
-Derek

dww’s picture

Priority: Normal » Minor

Status: Fixed » Closed (fixed)

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