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
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | patch-applied-cleanly.png | 155.63 KB | urvashi_vora |
| #2 | drupal_coding_standards-3303065-2.patch | 7.33 KB | Munavijayalakshmi |
Issue fork easy_install-3303065
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
- 3303065-drupal-coding-standards
changes, plain diff MR !2
Comments
Comment #2
Munavijayalakshmi commentedComment #3
urvashi_vora commentedI will review this.
Comment #4
urvashi_vora commentedHi @Munavijayalakshmi,
I reviewed your patch, it applied cleanly and no new errors or warnings were found.
Thanks for the patch.
Moving this to RTBC.
Comment #6
karthikeyan-manivasagam commented