Fix the issues reported by phpcs

Created on 9 May 2023, about 1 year ago
Updated 21 May 2023, about 1 year ago

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

FILE: /var/www/html/contribution/web/modules/contrib/simple_content_notifications/simple_content_notifications.module
---------------------------------------------------------------------------------------------------------------------
FOUND 19 ERRORS AND 2 WARNINGS AFFECTING 14 LINES
---------------------------------------------------------------------------------------------------------------------
22 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
22 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 3
23 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
23 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 3
24 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
24 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 3
25 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
25 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 3
26 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
26 | ERROR | [x] Case breaking statement indented incorrectly; expected 6 spaces, found 3
170 | WARNING | [ ] Unused variable $result.
185 | ERROR | [x] Whitespace found at end of line
191 | ERROR | [x] Whitespace found at end of line
195 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 4
195 | ERROR | [x] Object operator not indented correctly; expected 6 spaces but found 4
196 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 4
197 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 4
201 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 4
201 | ERROR | [x] Object operator not indented correctly; expected 6 spaces but found 4
202 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 4
320 | WARNING | [ ] Unused variable $result.
---------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 19 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------------------------------

FILE: /var/www/html/contribution/web/modules/contrib/simple_content_notifications/src/Form/ContentReviewNotificationSettingsForm.php
---------------------------------------------------------------------------------------------------------------------------------------
FOUND 4 ERRORS AFFECTING 4 LINES
---------------------------------------------------------------------------------------------------------------------------------------
123 | ERROR | The array declaration extends to column 106 (the limit is 80). The array content should be split up over multiple lines
124 | ERROR | The array declaration extends to column 112 (the limit is 80). The array content should be split up over multiple lines
125 | ERROR | The array declaration extends to column 116 (the limit is 80). The array content should be split up over multiple lines
126 | ERROR | The array declaration extends to column 106 (the limit is 80). The array content should be split up over multiple lines
---------------------------------------------------------------------------------------------------------------------------------------

FILE: /var/www/html/contribution/web/modules/contrib/simple_content_notifications/src/Form/ContentNotificationSettingsForm.php
--------------------------------------------------------------------------------------------------------------------------------------
FOUND 3 ERRORS AFFECTING 3 LINES
--------------------------------------------------------------------------------------------------------------------------------------
87 | ERROR | The array declaration extends to column 122 (the limit is 80). The array content should be split up over multiple lines
88 | ERROR | The array declaration extends to column 132 (the limit is 80). The array content should be split up over multiple lines
89 | ERROR | The array declaration extends to column 122 (the limit is 80). The array content should be split up over multiple lines
--------------------------------------------------------------------------------------------------------------------------------------

FILE: /var/www/html/contribution/web/modules/contrib/simple_content_notifications/README.md
-------------------------------------------------------------------------------------------
FOUND 1 ERROR AND 10 WARNINGS AFFECTING 10 LINES
-------------------------------------------------------------------------------------------
5 | WARNING | [ ] Line exceeds 80 characters; contains 140 characters
7 | WARNING | [ ] Line exceeds 80 characters; contains 81 characters
8 | WARNING | [ ] Line exceeds 80 characters; contains 86 characters
10 | WARNING | [ ] Line exceeds 80 characters; contains 149 characters
16 | WARNING | [ ] Line exceeds 80 characters; contains 310 characters
20 | WARNING | [ ] Line exceeds 80 characters; contains 404 characters
22 | WARNING | [ ] Line exceeds 80 characters; contains 335 characters
24 | WARNING | [ ] Line exceeds 80 characters; contains 179 characters
30 | WARNING | [ ] Line exceeds 80 characters; contains 147 characters
32 | WARNING | [ ] Line exceeds 80 characters; contains 122 characters
32 | ERROR | [x] Expected 1 newline at end of file; 0 found
-------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------------

๐Ÿ“Œ Task
Status

Fixed

Version

1.0

Component

Code

Created by

๐Ÿ‡ฎ๐Ÿ‡ณIndia himanshu_jhaloya Mandsaur

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