Closed (fixed)
Project:
Simple Image Popup
Version:
2.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
29 Dec 2017 at 13:03 UTC
Updated:
26 Sep 2020 at 09:39 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
astonvictor commentedMy patch:
1. Fixed all coding standards.
2. Used short array syntax [] instead of array().
3. Used $this->t() instead of t() in all classes.
4. Removed all unused classes.
Comment #3
astonvictor commentedComment #4
laravz commentedHi,
The patch was successfully applied to my project and most coding standard issues were resolved. Phpcs found the remaining errors (ignoring dependency injection):
Would it be possible for you to resolve these final errors and warnings?
Comment #5
swarad07Closed the duplicae #2758991: Fix coding standard issues. in favour of this issue. Adding updated patch here, the patch in #2 did not apply cleanly for me against 8.x-1.x.
I have intentionally not corrected,
They seem to be valid changes.
Comment #6
laravz commentedThis patch applies cleanly to the 8.x-1.x branch but not to the 8.x-1.x-dev branch. Do you happen to have other patches applied on that branch? When applied to the 8.x-1.x branch all errors (except the ones mentioned) are fixed for standard=Drupal. However, unlike the previous patch, some errors remain when using standard=DrupalPractice. That is, several t() functions have not been replaced with $this->t().
Comment #7
swarad07Hi,
I did not realize that there is a separate dev branch. I am not able to see it, are you sure you are checking it on " 8.x-1.x-dev" branch?
I updated my patch to include DrupalPractice fixes as well, few are pending will look into this tomorrow.
Comment #8
laravz commentedIt's called the 8.x-dev branch in git (8.x-1.x-dev is the version number in the metadata of this issue). I'll review it again tomorrow.
Comment #9
laravz commentedThe new patch fixes all issues with the exception of dependency injection (fixed in this issue) and the two form parameters (as discussed).
Comment #10
swarad07Great! this looks good to be committed.
Comment #11
rakesh.gectcrThe patch is not applying
Comment #12
rakesh.gectcrComment #13
kristen polFixing tags.
Comment #14
anisha.challa commentedHi,
Applied patch, please review.
Comment #15
jaykandariComment #16
jaykandariCoding standards are already fixed in https://www.drupal.org/project/image_popup/issues/2933506 ticket. Thus marking this as Fixed.
Thank you all for the contributions.