Phpcs drupal standard coding issue

Created on 16 August 2022, about 2 years ago
Updated 22 January 2024, 8 months ago

FILE: C:\xampp\htdocs\drupal95\web\modules\contrib\group_domain_redirect\group_domain_redirect.module
-----------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
-----------------------------------------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
24 | ERROR | [x] Expected 1 newline at end of file; 0 found
-----------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------------------------

FILE: C:\xampp\htdocs\drupal95\web\modules\contrib\group_domain_redirect\group_domain_redirect.services.yml
-----------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
-----------------------------------------------------------------------------------------------------------
6 | ERROR | [x] Expected 1 newline at end of file; 0 found
-----------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------------------------------

FILE: C:\xampp\htdocs\drupal95\web\modules\contrib\group_domain_redirect\README.md
----------------------------------------------------------------------------------
FOUND 1 ERROR AND 1 WARNING AFFECTING 2 LINES
----------------------------------------------------------------------------------
5 | WARNING | [ ] Line exceeds 80 characters; contains 432 characters
16 | ERROR | [x] Expected 1 newline at end of file; 0 found
----------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------

FILE: C:\xampp\htdocs\drupal95\web\modules\contrib\group_domain_redirect\src\EventSubscriber\GroupDomainRedirect.php
------------------------------------------------------------------------------------------------------------------------------
FOUND 20 ERRORS AND 7 WARNINGS AFFECTING 24 LINES
------------------------------------------------------------------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
6 | WARNING | [x] Unused use statement
8 | WARNING | [x] Unused use statement
11 | WARNING | [x] Unused use statement
12 | WARNING | [x] Unused use statement
13 | ERROR | [x] There must be one blank line after the last USE statement; 3 found;
16 | ERROR | [ ] More than 2 empty lines are not allowed
19 | WARNING | [ ] The class short comment should describe what the class does and not simply repeat the class name
22 | ERROR | [ ] Doc comment is empty
25 | ERROR | [ ] PHP4 style constructors are not allowed; use "__construct()" instead
28 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
30 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 8
32 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
34 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
36 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
38 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
39 | ERROR | [x] Expected 1 space after IF keyword; 0 found
39 | ERROR | [x] Expected 1 space after closing parenthesis; found 0
41 | WARNING | [ ] Line exceeds 80 characters; contains 92 characters
41 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
42 | ERROR | [x] Expected 1 space after IF keyword; 0 found
42 | ERROR | [x] Expected 1 space after closing parenthesis; found 0
43 | ERROR | [x] Concat operator must be surrounded by a single space
47 | ERROR | [x] Functions must not contain multiple empty lines in a row; found 2 empty lines
49 | WARNING | [ ] Empty return statement not required here
57 | ERROR | [x] Expected one space after the comma, 0 found
62 | ERROR | [x] Expected 1 newline at end of file; 0 found
------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 21 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