When running the module through phpcs with the Drupal standards the following errors were reported

phpcs -s --standard=Drupal sites/default/modules/entity_reference_views_select/

FILE: ...n/Field/FieldWidget/EntityReferenceViewsOptionsButtonsWidget.php
----------------------------------------------------------------------
FOUND 5 ERRORS AFFECTING 5 LINES
----------------------------------------------------------------------
 29 | ERROR | Missing short description in doc comment
    |       | (Drupal.Commenting.DocComment.MissingShort)
 34 | ERROR | Missing short description in doc comment
    |       | (Drupal.Commenting.DocComment.MissingShort)
 37 | ERROR | Class property $view_factory should use lowerCamel naming
    |       | without underscores
    |       | (Drupal.NamingConventions.ValidVariableName.LowerCamelName)
 39 | ERROR | Missing short description in doc comment
    |       | (Drupal.Commenting.DocComment.MissingShort)
 42 | ERROR | Class property $view_loader should use lowerCamel naming
    |       | without underscores
    |       | (Drupal.NamingConventions.ValidVariableName.LowerCamelName)
----------------------------------------------------------------------


FILE: ...in/Field/FieldWidget/EntityReferenceViewsOptionsSelectWidget.php
----------------------------------------------------------------------
FOUND 5 ERRORS AFFECTING 5 LINES
----------------------------------------------------------------------
 30 | ERROR | Missing short description in doc comment
    |       | (Drupal.Commenting.DocComment.MissingShort)
 35 | ERROR | Missing short description in doc comment
    |       | (Drupal.Commenting.DocComment.MissingShort)
 38 | ERROR | Class property $view_factory should use lowerCamel naming
    |       | without underscores
    |       | (Drupal.NamingConventions.ValidVariableName.LowerCamelName)
 40 | ERROR | Missing short description in doc comment
    |       | (Drupal.Commenting.DocComment.MissingShort)
 43 | ERROR | Class property $view_loader should use lowerCamel naming
    |       | without underscores
    |       | (Drupal.NamingConventions.ValidVariableName.LowerCamelName)
----------------------------------------------------------------------

Comments

anoopjohn created an issue. See original summary.

anoopjohn’s picture

Status: Active » Needs review
StatusFileSize
new4.78 KB

Please find attached a patch that fixes the issues reported.

  • f545381 committed on 8.x-1.x
    Issue #2723679 by anoopjohn, el1_1el: Fix coding standard related errors
    
el1_1el’s picture

Additionally, there were a few new standards issues since this was opened according to phpcs. theyve all been fixed in the dev branch.

Sorry I waited so long, but was going to include with possible bug fixes that never materialized. I'll add this to any new releases. Thanks!

el1_1el’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

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