Phpcs Drupal coding standard issue

Created on 14 July 2022, over 2 years ago
Updated 12 September 2024, 7 months ago

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
-------------------------------------------------------------------------------------------------------------------------------------------------------------

📌 Task
Status

Fixed

Version

1.0

Component

Code

Created by

🇮🇳India Harsh panchal

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024