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>&nbsp; 20 | WARNING | [ ] Hook implementations should not duplicate @param<br>&nbsp;&nbsp;&nbsp;&nbsp; |&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; |&nbsp;&nbsp;&nbsp;&nbsp; documentation<br>&nbsp; 20 | ERROR&nbsp;&nbsp; | [ ] Missing parameter comment<br>&nbsp; 20 | ERROR&nbsp;&nbsp; | [ ] Missing parameter type<br>&nbsp; 21 | WARNING | [ ] Hook implementations should not duplicate @param<br>&nbsp;&nbsp;&nbsp;&nbsp; |&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; |&nbsp;&nbsp;&nbsp;&nbsp; documentation<br>&nbsp; 21 | ERROR&nbsp;&nbsp; | [ ] Missing parameter comment<br>&nbsp; 21 | ERROR&nbsp;&nbsp; | [ ] Missing parameter type<br>&nbsp; 95 | WARNING | [ ] Hook implementations should not duplicate @param<br>&nbsp;&nbsp;&nbsp;&nbsp; |&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; |&nbsp;&nbsp;&nbsp;&nbsp; documentation<br>&nbsp; 95 | ERROR&nbsp;&nbsp; | [ ] Missing parameter comment<br>&nbsp; 96 | WARNING | [ ] Hook implementations should not duplicate @param<br>&nbsp;&nbsp;&nbsp;&nbsp; |&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; |&nbsp;&nbsp;&nbsp;&nbsp; documentation<br>&nbsp; 96 | ERROR&nbsp;&nbsp; | [ ] Missing parameter comment<br>&nbsp; 97 | WARNING | [ ] Hook implementations should not duplicate @param<br>&nbsp;&nbsp;&nbsp;&nbsp; |&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; |&nbsp;&nbsp;&nbsp;&nbsp; documentation<br>&nbsp; 97 | ERROR&nbsp;&nbsp; | [ ] Missing parameter comment<br>&nbsp; 97 | ERROR&nbsp;&nbsp; | [ ] Missing parameter type<br>&nbsp; 98 | WARNING | [ ] Hook implementations should not duplicate @param<br>&nbsp;&nbsp;&nbsp;&nbsp; |&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; |&nbsp;&nbsp;&nbsp;&nbsp; documentation<br>&nbsp; 98 | ERROR&nbsp;&nbsp; | [ ] Missing parameter comment<br>&nbsp; 98 | ERROR&nbsp;&nbsp; | [ ] Missing parameter type<br>&nbsp; 99 | WARNING | [ ] Hook implementations should not duplicate @param<br>&nbsp;&nbsp;&nbsp;&nbsp; |&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; |&nbsp;&nbsp;&nbsp;&nbsp; documentation<br>&nbsp; 99 | ERROR&nbsp;&nbsp; | [ ] Missing parameter comment<br> 294 | ERROR&nbsp;&nbsp; | [ ] Missing parameter comment<br> 295 | ERROR&nbsp;&nbsp; | [ ] Missing parameter comment<br> 297 | ERROR&nbsp;&nbsp; | [ ] Type hint "array" missing for $element<br> 300 | ERROR&nbsp;&nbsp; | [x] Namespaced classes/interfaces/traits should be<br>&nbsp;&nbsp;&nbsp;&nbsp; |&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; |&nbsp;&nbsp;&nbsp;&nbsp; referenced with use statements<br> 331 | WARNING | [ ] Hook implementations should not duplicate @param<br>&nbsp;&nbsp;&nbsp;&nbsp; |&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; |&nbsp;&nbsp;&nbsp;&nbsp; documentation<br> 331 | ERROR&nbsp;&nbsp; | [ ] Missing parameter comment<br> 331 | ERROR&nbsp;&nbsp; | [ ] Missing parameter type<br> 332 | WARNING | [ ] Hook implementations should not duplicate @param<br>&nbsp;&nbsp;&nbsp;&nbsp; |&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; |&nbsp;&nbsp;&nbsp;&nbsp; documentation<br> 332 | ERROR&nbsp;&nbsp; | [ ] Missing parameter comment<br> 332 | ERROR&nbsp;&nbsp; | [ ] Missing parameter type<br> 360 | ERROR&nbsp;&nbsp; | [x] Expected newline after closing brace<br> 429 | ERROR&nbsp;&nbsp; | [ ] Missing parameter comment<br> 429 | ERROR&nbsp;&nbsp; | [ ] Missing parameter type<br> 430 | ERROR&nbsp;&nbsp; | [ ] Missing parameter comment<br> 459 | ERROR&nbsp;&nbsp; | [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>&nbsp;&nbsp; 6 | WARNING | [x] Unused use statement<br>&nbsp; 79 | ERROR&nbsp;&nbsp; | [ ] If the line declaring an array spans longer than<br>&nbsp;&nbsp;&nbsp;&nbsp; |&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; |&nbsp;&nbsp;&nbsp;&nbsp; 80 characters, each element should be broken<br>&nbsp;&nbsp;&nbsp;&nbsp; |&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; |&nbsp;&nbsp;&nbsp;&nbsp; into its own line<br> 123 | ERROR&nbsp;&nbsp; | [x] Data types in @var tags need to be fully<br>&nbsp;&nbsp;&nbsp;&nbsp; |&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; |&nbsp;&nbsp;&nbsp;&nbsp; namespaced<br> 159 | ERROR&nbsp;&nbsp; | [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>&nbsp; 50 | ERROR | Parameter tags must be defined first in a doc comment<br>&nbsp; 57 | ERROR | Description for the @return value is missing<br>&nbsp; 69 | ERROR | Description for the @return value is missing<br>&nbsp; 83 | ERROR | Description for the @return value is missing<br>&nbsp; 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