Fix the issues reported by phpcs

Created on 21 December 2022, over 2 years ago
Updated 29 February 2024, about 1 year ago
FILE: /Applications/MAMP/htdocs/d9/web/modules/contrib/vde_drush/README.md
--------------------------------------------------------------------------
FOUND 1 ERROR AND 8 WARNINGS AFFECTING 9 LINES
--------------------------------------------------------------------------
  5 | WARNING | [ ] Line exceeds 80 characters; contains 93 characters
 11 | WARNING | [ ] Line exceeds 80 characters; contains 147 characters
 15 | WARNING | [ ] Line exceeds 80 characters; contains 313 characters
 17 | WARNING | [ ] Line exceeds 80 characters; contains 205 characters
 46 | WARNING | [ ] Line exceeds 80 characters; contains 112 characters
 59 | WARNING | [ ] Line exceeds 80 characters; contains 117 characters
 65 | WARNING | [ ] Line exceeds 80 characters; contains 88 characters
 76 | WARNING | [ ] Line exceeds 80 characters; contains 116 characters
 81 | ERROR   | [x] Expected 1 newline at end of file; 0 found
--------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------


FILE: /Applications/MAMP/htdocs/d9/web/modules/contrib/vde_drush/src/Plugin/QueueWorker/FileWriter.php
------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------
 1 | ERROR | [x] The PHP open tag must be followed by exactly one blank line
------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------------------


FILE: /Applications/MAMP/htdocs/d9/web/modules/contrib/vde_drush/src/Plugin/QueueWorker/FileWriterBase.php
----------------------------------------------------------------------------------------------------------
FOUND 4 ERRORS AFFECTING 4 LINES
----------------------------------------------------------------------------------------------------------
  3 | ERROR | [x] Namespaced classes, interfaces and traits should not begin with a file doc comment
  5 | ERROR | [x] Doc comment short description must end with a full stop
 11 | ERROR | [x] There must be one blank line after the last USE statement; 2 found;
 82 | ERROR | [x] Expected 1 newline at end of file; 0 found
----------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 4 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------------------------


FILE: /Applications/MAMP/htdocs/d9/web/modules/contrib/vde_drush/src/Plugin/FormatManipulator/FormatManipulatorXlsx.php
-----------------------------------------------------------------------------------------------------------------------
FOUND 10 ERRORS AND 2 WARNINGS AFFECTING 11 LINES
-----------------------------------------------------------------------------------------------------------------------
 22 | WARNING | [ ] Line exceeds 80 characters; contains 98 characters
 30 | ERROR   | [x] Line indented incorrectly; expected 4 spaces, found 6
 31 | ERROR   | [x] Line indented incorrectly; expected 4 spaces, found 8
 32 | ERROR   | [x] Line indented incorrectly; expected 4 spaces, found 8
 33 | ERROR   | [x] Line indented incorrectly; expected 4 spaces, found 6
 34 | ERROR   | [x] Line indented incorrectly; expected 4 spaces, found 6
 35 | ERROR   | [x] Line indented incorrectly; expected 4 spaces, found 6
 36 | ERROR   | [x] Line indented incorrectly; expected 4 spaces, found 6
 37 | WARNING | [ ] Line exceeds 80 characters; contains 112 characters
 37 | ERROR   | [x] Line indented incorrectly; expected 4 spaces, found 8
 38 | ERROR   | [x] Line indented incorrectly; expected 4 spaces, found 6
 43 | ERROR   | [x] Line indented incorrectly; expected 5 spaces, found 4
-----------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 10 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------------------------------------------


FILE: /Applications/MAMP/htdocs/d9/web/modules/contrib/vde_drush/src/Annotation/FormatManipulator.php
-----------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
-----------------------------------------------------------------------------------------------------
  5 | ERROR | [x] There must be one blank line after the last USE statement; 2 found;
 21 | ERROR | [ ] Missing @var tag in member variable comment
-----------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------------------------


FILE: /Applications/MAMP/htdocs/d9/web/modules/contrib/vde_drush/src/FormatManipulatorInterface.php
----------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
----------------------------------------------------------------------------------------------------------------
 9 | WARNING | The class short comment should describe what the class does and not simply repeat the class name
----------------------------------------------------------------------------------------------------------------


FILE: /Applications/MAMP/htdocs/d9/web/modules/contrib/vde_drush/src/FormatManipulatorLoader.php
------------------------------------------------------------------------------------------------
FOUND 4 ERRORS AND 2 WARNINGS AFFECTING 6 LINES
------------------------------------------------------------------------------------------------
 17 | ERROR   | [x] Missing function doc comment
 33 | ERROR   | [ ] Missing parameter comment
 34 | ERROR   | [ ] Missing parameter comment
 36 | ERROR   | [ ] Description for the @return value is missing
 43 | WARNING | [ ] Line exceeds 80 characters; contains 84 characters
 45 | WARNING | [x] A comma should follow the last multiline array item. Found: $plugin_id
------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------------


FILE: /Applications/MAMP/htdocs/d9/web/modules/contrib/vde_drush/src/Commands/VdeDrushCommands.php
--------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES
--------------------------------------------------------------------------------------------------
  89 | WARNING | Unused variable $options.
 368 | WARNING | \Drupal calls should be avoided in classes, use dependency injection instead

Steps to reproduce

Run this command
phpcs --standard=“Drupal,DrupalPractice” --extensions=php,module,inc,install,test,profile,theme,info,txt,md,yml,css,js web/modules/contrib/vde_drush/

Proposed resolution

Run this command
phpcbf --standard=“Drupal,DrupalPractice” --extensions=php,module,inc,install,test,profile,theme,info,txt,md,yml,css,js web/modules/contrib/vde_drush/

📌 Task
Status

Needs work

Version

2.0

Component

Code

Created by

🇮🇳India noorulshameera

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