Drupal coding standards

Created on 11 August 2022, over 2 years ago
Updated 5 August 2023, over 1 year ago

phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml,twig easy_install/

FILE: /var/www/html/vb/drupal-2821827/modules/contrib/easy_install/src/Form/PurgeConfigurationsForm.php
------------------------------------------------------------------------------------------------------------------------------------------
FOUND 4 ERRORS AFFECTING 4 LINES
------------------------------------------------------------------------------------------------------------------------------------------
174 | ERROR | [ ] The array declaration extends to column 82 (the limit is 80). The array content should be split up over multiple lines
198 | ERROR | [ ] The array declaration extends to column 91 (the limit is 80). The array content should be split up over multiple lines
276 | ERROR | [x] Use null coalesce operator instead of ternary operator.
321 | ERROR | [x] Use null coalesce operator instead of ternary operator.
------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------------------------------------------------------

FILE: /var/www/html/vb/drupal-2821827/modules/contrib/easy_install/src/Form/PurgeConfigurationsConfirmForm.php
--------------------------------------------------------------------------------------------------------------
FOUND 12 ERRORS AFFECTING 8 LINES
--------------------------------------------------------------------------------------------------------------
58 | ERROR | [ ] Parameter $file_system is not described in comment
147 | ERROR | [x] Expected 1 space after IF keyword; 0 found
147 | ERROR | [x] Whitespace found at end of line
148 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 10
148 | ERROR | [x] Expected 1 space after "="; 2 found
159 | ERROR | [x] Expected 1 space after IF keyword; 0 found
159 | ERROR | [x] Whitespace found at end of line
160 | ERROR | [x] Line indented incorrectly; expected 10 spaces, found 12
160 | ERROR | [x] Expected 1 space after "="; 2 found
161 | ERROR | [x] Whitespace found at end of line
175 | ERROR | [x] Expected 1 space after IF keyword; 0 found
176 | ERROR | [x] Expected 1 space after "="; 2 found
--------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 11 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------------------------------------

FILE: /var/www/html/vb/drupal-2821827/modules/contrib/easy_install/easy_install.module
--------------------------------------------------------------------------------------
FOUND 10 ERRORS AND 1 WARNING AFFECTING 9 LINES
--------------------------------------------------------------------------------------
12 | WARNING | [x] Unused use statement
12 | ERROR | [x] PHP keywords must be lowercase; expected "use" but found "Use"
12 | ERROR | [x] When importing a class with "use", do not include a leading \
26 | ERROR | [x] Expected 1 space after IF keyword; 0 found
27 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 10
28 | ERROR | [x] Whitespace found at end of line
38 | ERROR | [x] Expected 1 space after IF keyword; 0 found
39 | ERROR | [x] Line indented incorrectly; expected 10 spaces, found 12
54 | ERROR | [x] Expected 1 space after IF keyword; 0 found
55 | ERROR | [x] Line indented incorrectly; expected 10 spaces, found 12
56 | ERROR | [x] Whitespace found at end of line
--------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 11 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------------

Time: 343ms; Memory: 12MB

📌 Task
Status

Fixed

Version

10.0

Component

Code

Created by

🇮🇳India Munavijayalakshmi

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