Problem/Motivation
FILE: /var/www/html/vb/d_cont/forcedfiledeletion/forcedfiledeletion.module
--------------------------------------------------------------------------------
FOUND 6 ERRORS AFFECTING 4 LINES
--------------------------------------------------------------------------------
38 | ERROR | [x] There must be exactly one blank line before the tags in a doc
| | comment
38 | ERROR | [ ] Missing parameter type
41 | ERROR | [ ] If there is no return value for a function, there must not be
| | a @return tag.
41 | ERROR | [ ] Description for the @return value is missing
45 | ERROR | [x] PHP keywords must be lowercase; expected "instanceof" but
| | found "instanceOf"
63 | ERROR | [x] Expected 1 newline at end of file; 0 found
--------------------------------------------------------------------------------
PHPCBF CAN FIX THE 3 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------
FILE: /var/www/html/vb/d_cont/forcedfiledeletion/forcedfiledeletion.info.yml
----------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
----------------------------------------------------------------------------
5 | ERROR | [x] Expected 1 newline at end of file; 0 found
----------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------
Time: 103ms; Memory: 10MB
Steps to reproduce
Execute the command: phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml,twig forcedfiledeletion/
Remaining tasks
Patch review
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | afterthepatch.png | 73.22 KB | roberttabigue |
| #5 | 3371952-5.patch | 1.25 KB | soham sengupta |
| #4 | afterthepatch.png | 129.81 KB | roberttabigue |
| #4 | beforethepatch.png | 236.98 KB | roberttabigue |
| #3 | fixed.patch | 1.19 KB | anjali mehta |
Comments
Comment #2
roberttabigue commentedHi @urvashi_vora,
I got an error when applying your Patch, please see the attached screenshot for reference.
Moving this to Needs work.
Thank you.
Comment #3
anjali mehta commentedCreated a patch to fix the issues reported by phpcs.
Please review.
Thank You.
Comment #4
roberttabigue commentedHi @anjali,
I reviewed your changes and confirmed the Patch was applied cleanly.
However, I'm still seeing PHPCS errors, please see the attached file "afterthepatch.png".
Moving this to Needs work, kindly check, please.
Thank you!
Comment #5
soham sengupta commentedHi,
I have updated the patch file with the remaining fixes.
Comment #6
roberttabigue commentedHi @soham,
I reviewed your latest changes and confirmed the Patch was applied cleanly.
And all PHPCS errors have been fixed.
I ran this command:
phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml,twig forcedfiledeletion/
Successfully applied to Forced File Deletion module with 1.0.x-dev version and with the Drupal core version of 9.5.x.
Please see the attached file for your reference.
I'm moving this now to RTBC.
Thank you!