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
-------------------------------------------------------------------------------------------------------------------------------------------------------------
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | phpcs-standard-coding-3295885-2.patch | 3.95 KB | Harsh panchal |
Issue fork entity_reference_field_create_link-3295885
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
Comment #2
Harsh panchal commentedI have fixed phpcs standard issue and providing a patch.
Comment #5
prudloff commentedComment #7
thakurnishant_06 commentedUpdated the changes as per Suggestion , and fixed all error and Warrnings reported by phpcs.
Comment #9
prudloff commented