Coding standard
>>> [!note] Migrated issue
<!-- Drupal.org comment -->
<!-- Migrated from issue #3000461. -->
Reported by: [deepanker_bhalla](https://www.drupal.org/user/3412389)
>>>
<pre>FILE: /var/www/html/tolearn/modules/linked_field/linked_field.module<br>----------------------------------------------------------------------<br>FOUND 24 ERRORS AND 9 WARNINGS AFFECTING 17 LINES<br>----------------------------------------------------------------------<br> 20 | WARNING | [ ] Hook implementations should not duplicate @param<br> | | documentation<br> 20 | ERROR | [ ] Missing parameter comment<br> 20 | ERROR | [ ] Missing parameter type<br> 21 | WARNING | [ ] Hook implementations should not duplicate @param<br> | | documentation<br> 21 | ERROR | [ ] Missing parameter comment<br> 21 | ERROR | [ ] Missing parameter type<br> 95 | WARNING | [ ] Hook implementations should not duplicate @param<br> | | documentation<br> 95 | ERROR | [ ] Missing parameter comment<br> 96 | WARNING | [ ] Hook implementations should not duplicate @param<br> | | documentation<br> 96 | ERROR | [ ] Missing parameter comment<br> 97 | WARNING | [ ] Hook implementations should not duplicate @param<br> | | documentation<br> 97 | ERROR | [ ] Missing parameter comment<br> 97 | ERROR | [ ] Missing parameter type<br> 98 | WARNING | [ ] Hook implementations should not duplicate @param<br> | | documentation<br> 98 | ERROR | [ ] Missing parameter comment<br> 98 | ERROR | [ ] Missing parameter type<br> 99 | WARNING | [ ] Hook implementations should not duplicate @param<br> | | documentation<br> 99 | ERROR | [ ] Missing parameter comment<br> 294 | ERROR | [ ] Missing parameter comment<br> 295 | ERROR | [ ] Missing parameter comment<br> 297 | ERROR | [ ] Type hint "array" missing for $element<br> 300 | ERROR | [x] Namespaced classes/interfaces/traits should be<br> | | referenced with use statements<br> 331 | WARNING | [ ] Hook implementations should not duplicate @param<br> | | documentation<br> 331 | ERROR | [ ] Missing parameter comment<br> 331 | ERROR | [ ] Missing parameter type<br> 332 | WARNING | [ ] Hook implementations should not duplicate @param<br> | | documentation<br> 332 | ERROR | [ ] Missing parameter comment<br> 332 | ERROR | [ ] Missing parameter type<br> 360 | ERROR | [x] Expected newline after closing brace<br> 429 | ERROR | [ ] Missing parameter comment<br> 429 | ERROR | [ ] Missing parameter type<br> 430 | ERROR | [ ] Missing parameter comment<br> 459 | ERROR | [x] Expected newline after closing brace<br>----------------------------------------------------------------------<br><br><br>FILE: ...www/html/tolearn/modules/linked_field/src/LinkedFieldManager.php<br>----------------------------------------------------------------------<br>FOUND 3 ERRORS AND 1 WARNING AFFECTING 4 LINES<br>----------------------------------------------------------------------<br> 6 | WARNING | [x] Unused use statement<br> 79 | ERROR | [ ] If the line declaring an array spans longer than<br> | | 80 characters, each element should be broken<br> | | into its own line<br> 123 | ERROR | [x] Data types in @var tags need to be fully<br> | | namespaced<br> 159 | ERROR | [x] Expected newline after closing brace<br>----------------------------------------------------------------------<br><br>FILE: ...tolearn/modules/linked_field/src/LinkedFieldManagerInterface.php<br>----------------------------------------------------------------------<br>FOUND 14 ERRORS AFFECTING 11 LINES<br>----------------------------------------------------------------------<br> 50 | ERROR | Parameter tags must be defined first in a doc comment<br> 57 | ERROR | Description for the @return value is missing<br> 69 | ERROR | Description for the @return value is missing<br> 83 | ERROR | Description for the @return value is missing<br> 85 | ERROR | Type hint "array" missing for $context<br> 112 | ERROR | Missing parameter type<br> 119 | ERROR | Description for the @return value is missing<br> 121 | ERROR | Type hint "array" missing for $data<br> 121 | ERROR | Type hint "array" missing for $options<br> 138 | ERROR | Missing parameter comment<br> 138 | ERROR | Missing parameter type<br> 139 | ERROR | Missing parameter comment<br> 139 | ERROR | Missing parameter type<br> 141 | ERROR | Description for the @return value is missing<br>----------------------------------------------------------------------</pre>
issue