Closed (fixed)
Project:
Section Purger
Version:
3.0.0-alpha1
Component:
Code
Priority:
Minor
Category:
Task
Assigned:
Reporter:
Created:
6 Oct 2021 at 05:44 UTC
Updated:
20 Nov 2022 at 02:09 UTC
Jump to comment: Most recent, Most recent file

Comments
Comment #2
siddhant.bhosale commentedComment #3
kristen polUnassigning since it's been awhile.
Comment #4
urvashi_vora commentedHi,
Please review the patch, I tried fixing coding standards using PHPCS.
Comment #5
tmaiochi commentedComment #6
tmaiochi commentedHi @urvashi_vora, I got this errors/warnings in PHPCS.
Comment #7
victoria-marina commentedI'll work on this.
Comment #8
victoria-marina commentedHere is a patch. Kindly review it.
Comment #9
kristen polThanks for the patch. I didn't review all the items but I did see there are lots of extra spaces at the end of lines that need to be removed.
Comment #10
victoria-marina commented@kristen-pol Thank you! I'll work on that.
Comment #11
victoria-marina commentedHere is a new patch.
Comment #12
tmaiochi commentedI'll review this
Comment #13
tmaiochi commentedHey @victoria-marina. The patch fixed all errors/warnings from PHPCS, except by
Comment #14
kristen polThis should be against the latest version 3.0.0-alpha1 so that shouldn’t be necessary.
Comment #15
kristen polComment #16
joshua1234511Tried the patch provided in #11. Could not apply it against 3.0.0-alpha1.

Patch provided against v3.0.0-alpha1
Comment #17
victoria-marina commentedI'll review this.
Comment #18
victoria-marina commented@joshua1234511 Thank you for the patch!
After the #16 I still got the errors below and I made a patch for them.
Comment #19
victoria-marina commentedI made a typo on the last one. Here is the correct patch.
Comment #20
tmaiochi commentedI'll review this!
Comment #21
tmaiochi commentedSteps performed:
(1) Installed module
(2) Reproduced the issue.
(3) Applied patch.
(4) Code review on changes.
(5) Tested again with patch, issue resolved.
This patch in #19 fixed all messages from PHPCS, and the module is working fine as far as I can test.
Comment #22
kristen polThanks for updating the patch @victoria-marina and for reviewing the patch @tmaiochi.
@tmaiochi Would you add a comment how you tested the module?
I didn't review the whole patch but there are still some comment oddities like the items below. It would be good to do a final pass and get the comments as close to (but not over) 80 characters. Thanks.
Nitpick: Doesn't look like things made it as close to 80 chars as possible.
Same as above.
Comment #23
lucienchalom commentedI tried to work on #22 request, to go as close to 80 characters on readme
I also found 3 "Use null coalesce operator instead of ternary operator." and changed them.
I could not run tests locally because the module refers to purge_ui.
Comment #24
kristen polAssigning to Yusuf.
Comment #25
yusufhmThere is no phpcs error anymore, but just two minor changes.
When I tried to
git applythe patch at #23 I got the following even though the patch was correctly applied:I've gotten rid of those two whitespaces and created a new patch for it.
Comment #26
kristen polGiven Yusuf doesn't see any code style issues anymore, moving to RTBC.
@yusufhm Would you get this merged in please?
Comment #28
kristen pol@yusufhm Thanks for committing.