PHPCS Coding Standard Issue

Created on 8 August 2022, over 2 years ago
Updated 28 January 2023, almost 2 years ago
FILE: /home/drupal/myproject/PDF_using_mPDF/pdf_using_mpdf.info.yml
-----------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
-----------------------------------------------------------------------------------------------------------
 1 | WARNING | Remove "version" from the info file, it will be added by drupal.org packaging automatically
-----------------------------------------------------------------------------------------------------------


FILE: /home/drupal/myproject/PDF_using_mPDF/pdf_using_mpdf.module
--------------------------------------------------------------------------------------------------
FOUND 4 ERRORS AND 1 WARNING AFFECTING 5 LINES
--------------------------------------------------------------------------------------------------
  1 | ERROR   | [x] The PHP open tag must be followed by exactly one blank line
  7 | ERROR   | [x] When importing a class with "use", do not include a leading \
  8 | ERROR   | [x] When importing a class with "use", do not include a leading \
 13 | ERROR   | [x] Namespaced classes/interfaces/traits should be referenced with use statements
 34 | WARNING | [ ] Only string literals should be passed to t() where possible
--------------------------------------------------------------------------------------------------


FILE: /home/drupal/myproject/PDF_using_mPDF/src/Conversion/ConvertToPdf.php
-----------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
-----------------------------------------------------------------------------------------------------------------
 16 | WARNING | The class short comment should describe what the class does and not simply repeat the class name
-----------------------------------------------------------------------------------------------------------------


FILE: /home/drupal/myproject/PDF_using_mPDF/src/Controller/GeneratePdf.php
-----------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
-----------------------------------------------------------------------------------------------------------------
 20 | WARNING | The class short comment should describe what the class does and not simply repeat the class name
-----------------------------------------------------------------------------------------------------------------


FILE: /home/drupal/myproject/PDF_using_mPDF/pdf_using_mpdf.install
----------------------------------------------------------------------------------
FOUND 2 ERRORS AND 2 WARNINGS AFFECTING 4 LINES
----------------------------------------------------------------------------------
  1 | ERROR   | [x] Missing file doc comment
  3 | ERROR   | [x] When importing a class with "use", do not include a leading \
 25 | WARNING | [x] A comma should follow the last multiline array item. Found: ]
 39 | WARNING | [x] A comma should follow the last multiline array item. Found: ]
----------------------------------------------------------------------------------
๐Ÿ“Œ Task
Status

Fixed

Version

2.2

Component

Documentation

Created by

๐Ÿ‡ฎ๐Ÿ‡ณIndia Dharti Patel

Live updates comments and jobs are added and updated live.
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