Fix the issues reported by phpcs

Created on 27 February 2023, over 1 year ago
Updated 21 April 2023, about 1 year ago

phpcs returned the following errors


FILE: /Users/tesboss/_PROJECTS/drupal/multiupload_filefield_widget/multiupload_filefield_widget.info
----------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
----------------------------------------------------------------------------------------------------
 8 | ERROR | It's only necessary to declare files[] if they declare a class or interface.
----------------------------------------------------------------------------------------------------


FILE: /Users/tesboss/_PROJECTS/drupal/multiupload_filefield_widget/multiupload_filefield_widget.field.inc
---------------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AND 1 WARNING AFFECTING 3 LINES
---------------------------------------------------------------------------------------------------------
  59 | WARNING | Line exceeds 80 characters; contains 83 characters
 137 | ERROR   | Missing parameter type
 140 | ERROR   | Return type missing for @return tag in function comment
---------------------------------------------------------------------------------------------------------


FILE: /Users/tesboss/_PROJECTS/drupal/multiupload_filefield_widget/README.md
----------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
----------------------------------------------------------------------------
 17 | WARNING | Line exceeds 80 characters; contains 91 characters
----------------------------------------------------------------------------


FILE: /Users/tesboss/_PROJECTS/drupal/multiupload_filefield_widget/multiupload_filefield_widget.test
----------------------------------------------------------------------------------------------------
FOUND 5 ERRORS AND 1 WARNING AFFECTING 6 LINES
----------------------------------------------------------------------------------------------------
  8 | ERROR   | Doc comment is empty
 11 | WARNING | Class name must be prefixed with the project name "MultiuploadFilefieldWidget"
 13 | ERROR   | Doc comment is empty
 24 | ERROR   | Doc comment is empty
 31 | ERROR   | Doc comment is empty
 44 | ERROR   | Doc comment is empty
----------------------------------------------------------------------------------------------------


FILE: /Users/tesboss/_PROJECTS/drupal/multiupload_filefield_widget/multiupload_filefield_widget.module
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 13 ERRORS AFFECTING 13 LINES
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------
  60 | ERROR | All functions defined in a module file must be prefixed with the module's name, found "mfw_managed_file_process" but expected
     |       | "multiupload_filefield_widget_mfw_managed_file_process"
  85 | ERROR | All functions defined in a module file must be prefixed with the module's name, found "mfw_managed_file_value" but expected
     |       | "multiupload_filefield_widget_mfw_managed_file_value"
 153 | ERROR | Doc comment short description must be on a single line, further text should be a separate paragraph
 157 | ERROR | Missing parameter type
 160 | ERROR | Return type missing for @return tag in function comment
 164 | ERROR | All functions defined in a module file must be prefixed with the module's name, found "mfw_managed_file_save_upload" but expected
     |       | "multiupload_filefield_widget_mfw_managed_file_save_upload"
 213 | ERROR | Missing parameter type
 215 | ERROR | Missing parameter type
 217 | ERROR | Missing parameter type
 226 | ERROR | Missing parameter type
 230 | ERROR | Missing parameter type
 237 | ERROR | Return type missing for @return tag in function comment
 247 | ERROR | All functions defined in a module file must be prefixed with the module's name, found "mfw_file_save_upload" but expected
     |       | "multiupload_filefield_widget_mfw_file_save_upload"
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------

Time: 347ms; Memory: 12MB


📌 Task
Status

Fixed

Version

1.0

Component

Code

Created by

🇦🇺Australia VladimirAus Brisbane, Australia

Live updates comments and jobs are added and updated live.
  • Coding standards

    It involves compliance with, or the content of coding standards. Requires broad community agreement.

Sign in to follow issues

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.69.0 2024