Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Pavan B S created an issue. See original summary.

Pavan B S’s picture

Assigned: Pavan B S » Unassigned
Status: Active » Needs review
FileSize
6.5 KB

Applying the patch, please review.

riddhi.addweb’s picture

Thanks @Pavan for patch, I have checked patch on simplytest.me with the help of coder module and it solves all critical and normal warnings. PFA Screenshots.

riddhi.addweb’s picture

Status: Needs review » Reviewed & tested by the community
oadaeh’s picture

Status: Reviewed & tested by the community » Needs work

Thank you for submitting the patch. However, some of your changes are not correct.

In the last 7 hunks, you actually make the module worse by removing the calls to t() and replacing them with check_plain(), because now none of that text can be translated on the site. All of those !placeholders that you were warned about were created in code and have no user input, so there is no reason to run them through check_plain().

If you will notice the text of the error, it says they are "potential" problems. Understanding the code and what is happening and what can happen is important. Blindly following a machine and making changes without understanding them is not a good idea.

I will not accept or commit the patch as submitted.

Pavan B S’s picture

@oadeh sorry for the mistake in the patch, i was not knowing about that issue, i will revert the patch, by removing the check_plain()

Pavan B S’s picture

Status: Needs work » Needs review
FileSize
1.91 KB
4.14 KB

Re applying the patch, please review

  • oadaeh committed a0e0154 on 7.x-1.x authored by Pavan B S
    Issue #2868508 by Pavan B S, Jigar.addweb, oadaeh: Fix coding standards
    
oadaeh’s picture

Status: Needs review » Fixed

Thanks for updating the patch. It is committed, so I'm marking this as fixed.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.