Fix the issues reported by phpcs

Created on 20 April 2023, almost 2 years ago
Updated 25 August 2023, over 1 year ago

vendor/bin/phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml,twig web/modules/contrib/tmgmt_spreadsheet/

FILE: /var/www/html/drupalvb/web/modules/contrib/tmgmt_spreadsheet/src/Plugin/tmgmt_file/TmgmtSpreadsheetFormatPluginBase.php
-------------------------------------------------------------------------------------------------------------------------------
FOUND 55 ERRORS AND 1 WARNING AFFECTING 40 LINES
-------------------------------------------------------------------------------------------------------------------------------
3 | ERROR | [x] Namespaced classes, interfaces and traits should not begin with a file doc comment
3 | ERROR | [ ] Missing short description in doc comment
25 | ERROR | [x] Doc comment short description must end with a full stop
28 | WARNING | [ ] The class short comment should describe what the class does and not simply repeat the class name
33 | ERROR | [x] Doc comment short description must end with a full stop
37 | ERROR | [ ] Missing short description in doc comment
38 | ERROR | [x] Do not append variable name "$format" to the type declaration in a member variable comment
42 | ERROR | [ ] Missing short description in doc comment
43 | ERROR | [x] Do not append variable name "$spreadsheet" to the type declaration in a member variable comment
47 | ERROR | [ ] Missing short description in doc comment
48 | ERROR | [x] Do not append variable name "$file_system;" to the type declaration in a member variable comment
50 | ERROR | [ ] Class property $file_system should use lowerCamel naming without underscores
52 | ERROR | [ ] Missing short description in doc comment
53 | ERROR | [x] Do not append variable name "$messenger" to the type declaration in a member variable comment
57 | ERROR | [ ] Missing short description in doc comment
58 | ERROR | [x] Do not append variable name "$tmgmt_data" to the type declaration in a member variable comment
60 | ERROR | [ ] Class property $tmgmt_data should use lowerCamel naming without underscores
90 | ERROR | [ ] Missing short description in doc comment
101 | ERROR | [ ] Description for the @return value is missing
111 | ERROR | [x] Inline comments must start with a capital letter
111 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
120 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
121 | ERROR | [x] Inline comments must start with a capital letter
121 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
139 | ERROR | [x] Inline comments must start with a capital letter
139 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
159 | ERROR | [x] Inline comments must start with a capital letter
159 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
164 | ERROR | [x] Inline comments must start with a capital letter
164 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
166 | ERROR | [x] Use null coalesce operator instead of ternary operator.
171 | ERROR | [x] Inline comments must start with a capital letter
171 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
173 | ERROR | [x] Use null coalesce operator instead of ternary operator.
178 | ERROR | [x] Inline comments must start with a capital letter
178 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
180 | ERROR | [x] Use null coalesce operator instead of ternary operator.
194 | ERROR | [x] Inline comments must start with a capital letter
194 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
196 | ERROR | [x] Use null coalesce operator instead of ternary operator.
216 | ERROR | [x] Inline comments must start with a capital letter
216 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
221 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
226 | ERROR | [x] Inline comments must start with a capital letter
226 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
240 | ERROR | [x] Inline comments must start with a capital letter
240 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
259 | ERROR | [x] Inline comments must start with a capital letter
259 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
259 | ERROR | [x] Comments may not appear after statements
291 | ERROR | [x] Inline comments must start with a capital letter
291 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
300 | ERROR | [x] Inline comments must start with a capital letter
300 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
321 | ERROR | [x] Expected 1 blank line after function; 0 found
322 | ERROR | [x] The closing brace for the class must have an empty line before it
-------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 45 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------------------------------------------------

FILE: /var/www/html/drupalvb/web/modules/contrib/tmgmt_spreadsheet/src/Plugin/tmgmt_file/Format/Xlsx.php
--------------------------------------------------------------------------------------------------------
FOUND 7 ERRORS AND 2 WARNINGS AFFECTING 8 LINES
--------------------------------------------------------------------------------------------------------
3 | ERROR | [x] Namespaced classes, interfaces and traits should not begin with a file doc comment
3 | ERROR | [ ] Missing short description in doc comment
9 | WARNING | [x] Unused use statement
11 | WARNING | [x] Unused use statement
12 | ERROR | [x] There must be one blank line after the last USE statement; 2 found;
16 | ERROR | [x] Doc comment short description must end with a full stop
26 | ERROR | [x] There must be exactly one newline after the class comment
52 | ERROR | [x] Expected 1 blank line after function; 0 found
53 | ERROR | [x] The closing brace for the class must have an empty line before it
--------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 8 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------------------------------

FILE: /var/www/html/drupalvb/web/modules/contrib/tmgmt_spreadsheet/tmgmt_spreadsheet.install
-----------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
-----------------------------------------------------------------------------------------------------------------
6 | ERROR | Doc comment short description must be on a single line, further text should be a separate paragraph
-----------------------------------------------------------------------------------------------------------------

Time: 442ms; Memory: 12MB

📌 Task
Status

Fixed

Version

2.0

Component

Code

Created by

🇮🇳India dineshkumarbollu

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.

  • Needs reroll

    The patch will have to be re-rolled with new suggestions/changes described in the comments in the issue.

Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024