FILE: D:\xampp\htdocs\drupal9.5\web\modules\contrib\entity_reference_field_create_link\src\Plugin\Field\FieldWidget\EntityReferenceAutocompleteCreateLink.php
-------------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 23 ERRORS AND 1 WARNING AFFECTING 23 LINES
-------------------------------------------------------------------------------------------------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
27 | ERROR | [ ] Missing short description in doc comment
32 | ERROR | [ ] Missing short description in doc comment
33 | ERROR | [ ] Missing parameter comment
34 | ERROR | [ ] Missing parameter comment
35 | ERROR | [ ] Missing parameter comment
36 | ERROR | [ ] Missing parameter comment
38 | ERROR | [ ] Description for the @return value is missing
40 | ERROR | [ ] Type hint "array" missing for $plugin_definition
48 | ERROR | [ ] Missing short description in doc comment
49 | ERROR | [ ] Missing parameter comment
50 | ERROR | [ ] Missing parameter comment
51 | ERROR | [ ] Missing parameter comment
53 | ERROR | [ ] Description for the @return value is missing
64 | WARNING | [x] A comma should follow the last multiline array item. Found: ]
69 | ERROR | [ ] Missing short description in doc comment
70 | ERROR | [ ] Missing parameter comment
71 | ERROR | [ ] Missing parameter comment
72 | ERROR | [ ] Missing parameter comment
73 | ERROR | [ ] Missing parameter comment
75 | ERROR | [ ] Description for the @return value is missing
81 | ERROR | [ ] Type hint "null" missing for $get_delta
81 | ERROR | [x] Visibility must be declared on method "form"
99 | ERROR | [x] Case breaking statements must be followed by a single blank line
-------------------------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 4 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------------------------------------------------------------------------------

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

Harsh panchal created an issue. See original summary.

Harsh panchal’s picture

Category: Task » Bug report
Status: Active » Needs review
StatusFileSize
new3.95 KB

I have fixed phpcs standard issue and providing a patch.

prudloff made their first commit to this issue’s fork.

prudloff’s picture

Status: Needs review » Needs work

thakurnishant_06 made their first commit to this issue’s fork.

thakurnishant_06’s picture

Assigned: Harsh panchal » Unassigned
Category: Bug report » Task
Status: Needs work » Needs review

Updated the changes as per Suggestion , and fixed all error and Warrnings reported by phpcs.

  • prudloff committed d2d7f8fb on 1.x
    Issue #3295885 by prudloff, Harsh panchal: Phpcs Drupal coding standard...
prudloff’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

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