Fix the issues reported by phpcs

Created on 17 May 2023, about 1 year ago
Updated 13 June 2023, about 1 year ago

Problem/Motivation

Found these issues reported by phpcs:

FILE: /Users/studenttrainees/New/drupalorgsite/docroot/modules/contrib/virustotal/virustotal.install
---------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
---------------------------------------------------------------------------------------------------------------
 34 | ERROR | The array declaration extends to column 84 (the limit is 80). The array content should be split
    |       | up over multiple lines
---------------------------------------------------------------------------------------------------------------


FILE: /Users/studenttrainees/New/drupalorgsite/docroot/modules/contrib/virustotal/README.md
-------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 4 WARNINGS AFFECTING 4 LINES
-------------------------------------------------------------------------------------------
 16 | WARNING | Line exceeds 80 characters; contains 86 characters
 19 | WARNING | Line exceeds 80 characters; contains 81 characters
 73 | WARNING | Line exceeds 80 characters; contains 83 characters
 89 | WARNING | Line exceeds 80 characters; contains 83 characters
-------------------------------------------------------------------------------------------


FILE: .../studenttrainees/New/drupalorgsite/docroot/modules/contrib/virustotal/src/Form/VirusTotalSettingsForm.php
---------------------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AND 1 WARNING AFFECTING 3 LINES
---------------------------------------------------------------------------------------------------------------
 14 | WARNING | The class short comment should describe what the class does and not simply repeat the class
    |         | name
 17 | ERROR   | Missing member variable doc comment
 18 | ERROR   | Missing member variable doc comment
---------------------------------------------------------------------------------------------------------------


FILE: ...s/studenttrainees/New/drupalorgsite/docroot/modules/contrib/virustotal/src/Form/VirusTotalCommentForm.php
---------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AND 1 WARNING AFFECTING 2 LINES
---------------------------------------------------------------------------------------------------------------
 13 | WARNING | The class short comment should describe what the class does and not simply repeat the class
    |         | name
 16 | ERROR   | Missing member variable doc comment
---------------------------------------------------------------------------------------------------------------


FILE: ...s/studenttrainees/New/drupalorgsite/docroot/modules/contrib/virustotal/src/Form/VirusTotalScanURLForm.php
---------------------------------------------------------------------------------------------------------------
FOUND 3 ERRORS AFFECTING 3 LINES
---------------------------------------------------------------------------------------------------------------
 19 | ERROR | Missing member variable doc comment
 20 | ERROR | Missing member variable doc comment
 21 | ERROR | Missing member variable doc comment
---------------------------------------------------------------------------------------------------------------


FILE: ...rs/studenttrainees/New/drupalorgsite/docroot/modules/contrib/virustotal/src/Form/VirusTotalReportForm.php
---------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
---------------------------------------------------------------------------------------------------------------
 62 | WARNING | [x] Inline @var declarations should use the /** */ delimiters
---------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------------------------


FILE: ...nttrainees/New/drupalorgsite/docroot/modules/contrib/virustotal/src/Form/VirusTotalReportSettingsForm.php
---------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
---------------------------------------------------------------------------------------------------------------
 12 | WARNING | The class short comment should describe what the class does and not simply repeat the class
    |         | name
---------------------------------------------------------------------------------------------------------------


FILE: ...trainees/New/drupalorgsite/docroot/modules/contrib/virustotal/src/Plugin/VirusTotal/VirusTotalScanner.php
---------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
---------------------------------------------------------------------------------------------------------------
 459 | ERROR | [x] Each PHP statement must be on a line by itself
---------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------------------------


FILE: ...ainees/New/drupalorgsite/docroot/modules/contrib/virustotal/src/Controller/VirusTotalReportController.php
---------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AND 1 WARNING AFFECTING 2 LINES
---------------------------------------------------------------------------------------------------------------
 18 | WARNING | The class short comment should describe what the class does and not simply repeat the class
    |         | name
 21 | ERROR   | Missing member variable doc comment
---------------------------------------------------------------------------------------------------------------


FILE: .../studenttrainees/New/drupalorgsite/docroot/modules/contrib/virustotal/src/VirusTotalReportListBuilder.php
---------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
---------------------------------------------------------------------------------------------------------------
 32 | WARNING | [x] Inline @var declarations should use the /** */ delimiters
---------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------------------------


FILE: ...w/drupalorgsite/docroot/modules/contrib/virustotal/src/EventSubscriber/VirusTotalFileInsertSubscriber.php
---------------------------------------------------------------------------------------------------------------
FOUND 4 ERRORS AFFECTING 4 LINES
---------------------------------------------------------------------------------------------------------------
 20 | ERROR | Missing member variable doc comment
 21 | ERROR | Missing member variable doc comment
 22 | ERROR | Missing member variable doc comment
 23 | ERROR | Missing member variable doc comment
---------------------------------------------------------------------------------------------------------------


FILE: ...w/drupalorgsite/docroot/modules/contrib/virustotal/src/EventSubscriber/VirusTotalFileDeleteSubscriber.php
---------------------------------------------------------------------------------------------------------------
FOUND 4 ERRORS AND 1 WARNING AFFECTING 5 LINES
---------------------------------------------------------------------------------------------------------------
 17 | ERROR   | [ ] Missing member variable doc comment
 18 | ERROR   | [ ] Missing member variable doc comment
 19 | ERROR   | [ ] Missing member variable doc comment
 20 | ERROR   | [ ] Missing member variable doc comment
 43 | WARNING | [x] 'TODO: Implement onEntityDelete() method.' should match the format '@todo Fix problem X
    |         |     here.'
---------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------------------------

Time: 813ms; Memory: 12MB

Steps to reproduce

Run this command in the module folder: phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml

Proposed resolution

Remaining tasks

📌 Task
Status

Fixed

Version

1.0

Component

Code

Created by

🇵🇭Philippines paraderojether

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

Production build 0.69.0 2024