Phpcs Drupal standard coding issue

Created on 20 July 2022, over 2 years ago
Updated 22 August 2024, 4 months ago

FILE: C:\xampp\htdocs\drupal95\web\modules\contrib\imce_dfp\imce_dfp.module
------------------------------------------------------------------------------------
FOUND 2 ERRORS AND 1 WARNING AFFECTING 2 LINES
------------------------------------------------------------------------------------
1 | ERROR | [x] Missing file doc comment
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
3 | WARNING | [x] Unused use statement
------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 3 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------

FILE: C:\xampp\htdocs\drupal95\web\modules\contrib\imce_dfp\src\Annotation\ImceDfp.php
--------------------------------------------------------------------------------------
FOUND 4 ERRORS AFFECTING 4 LINES
--------------------------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
10 | ERROR | [x] Doc comment long description must end with a full stop
32 | ERROR | [ ] The @var tag must be the first tag in a member variable comment
41 | ERROR | [ ] The @var tag must be the first tag in a member variable comment
--------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------------

FILE: C:\xampp\htdocs\drupal95\web\modules\contrib\imce_dfp\src\Entity\ImceDfpProfile.php
-----------------------------------------------------------------------------------------
FOUND 18 ERRORS AND 2 WARNINGS AFFECTING 18 LINES
-----------------------------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
6 | WARNING | [x] Unused use statement
7 | ERROR | [x] When importing a class with "use", do not include a leading \
8 | WARNING | [x] Unused use statement
10 | ERROR | [x] Missing class doc comment
25 | ERROR | [x] Function comment short description must start with exactly one space
27 | ERROR | [ ] Missing parameter type
28 | ERROR | [x] Parameter comment indentation must be 3 spaces, found 4 spaces
29 | ERROR | [ ] Missing parameter type
30 | ERROR | [x] Parameter comment indentation must be 3 spaces, found 4 spaces
31 | ERROR | [x] Separate the @param and @return sections by a blank line.
31 | ERROR | [ ] Description for the @return value is missing
33 | ERROR | [x] Expected 0 spaces before opening parenthesis; 1 found
36 | ERROR | [x] Expected 1 space after FOREACH keyword; 0 found
36 | ERROR | [x] Expected 1 space before "as"; 2 found
40 | ERROR | [x] Expected 1 space after IF keyword; 0 found
46 | ERROR | [x] Data types in @var tags need to be fully namespaced
49 | ERROR | [x] Inline comments must start with a capital letter
54 | ERROR | [x] Data types in @var tags need to be fully namespaced
58 | ERROR | [x] Expected 1 space after FOREACH keyword; 0 found
-----------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 17 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------------

FILE: C:\xampp\htdocs\drupal95\web\modules\contrib\imce_dfp\src\Service\ImceDfpManager.php
------------------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
------------------------------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
10 | ERROR | [x] Missing class doc comment
------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------

FILE: C:\xampp\htdocs\drupal95\web\modules\contrib\imce_dfp\src\Service\ImceDfpPluginInterface.php
--------------------------------------------------------------------------------------------------
FOUND 12 ERRORS AFFECTING 11 LINES
--------------------------------------------------------------------------------------------------
1 | ERROR | [x] The PHP open tag must be followed by exactly one blank line
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
2 | ERROR | [x] There must be one blank line after the namespace declaration
6 | ERROR | [x] Additional blank lines found at end of doc comment
9 | ERROR | [ ] Missing short description in doc comment
10 | ERROR | [ ] Missing parameter type
11 | ERROR | [x] Parameter comment indentation must be 3 spaces, found 4 spaces
12 | ERROR | [ ] Missing parameter type
13 | ERROR | [x] Parameter comment indentation must be 3 spaces, found 4 spaces
16 | ERROR | [x] Return comment indentation must be 3 spaces, found 4 spaces
18 | ERROR | [x] Expected 1 blank line after function; 0 found
19 | ERROR | [x] The closing brace for the interface must have an empty line before it
--------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 9 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------------------------

🐛 Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

🇮🇳India Harsh panchal

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