Reviewed & tested by the community
Project:
Commerce Coupon (D7)
Version:
7.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
10 Jul 2014 at 16:38 UTC
Updated:
22 Sep 2021 at 08:20 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
joelpittetComment #3
joelpittetLooks like most of this was cleaned up somewhere else
Comment #4
chishah92 commentedComment #5
chishah92 commentedComment #6
rasikap commentedComment #7
rasikap commentedPlease find the patch.
Comment #8
rasikap commentedComment #9
joelpittetThese indenting look incorrect, why were they changed?
Comment #10
chishah92 commentedReverted with the correct indentation
~Chirag
Comment #11
joelpittetSorry there were a lot more where that one came from, can you check all the spots where there are 4 spaces changed and make sure they are 2? Thanks for updating the patch @chishah92
This change is 4 spaces instead of 2.
This change doesn't need to happen.
This should be fine at 2 spaces, too.
same here, 2 spaces not 4, but the 3 is incorrect.
This should be 2 spaces not 4
This was correct before at 2 spaces.
Can you point to the rule for this change? I think it was correct before.
These may be correct but need to be 2 spaces instead of 4... there is a pattern forming here...
Extra space got added by accident.
2 spaces
Comment #12
chishah92 commentedWill add all the corrections in the next patch.
~Chirag
Comment #13
chishah92 commentedPlease Review , and need guidance on point 8 (unclear)
Comment #15
joelpittetI don't think 8) is needed, there is no reference in the coding standards to that case.
https://www.drupal.org/docs/develop/standards/coding-standards#indenting
Looks like something went awry with #13
Comment #16
chishah92 commentedAdding a new patch
Comment #17
joelpittetThere are still 4 space tabs left in this patch, setting this to needs work to remove those.
Comment #18
chishah92 commentedCan you show me with screenshot where these corrections has to be made . Is it the query part ?
Please Advice
~Chirag
Comment #19
joelpittetHere's a list if that helps but even better is to run PHPCodeSniffer with
phpcbfwhich can auto-do a lot of this for you.https://www.drupal.org/node/1419988
These should be comined on the same line as )); and in the same indent as $rule->condition
This should be left alone
This should likely just go on one line or leave it alone
Same
don't think the space is needed between the = and &
This was correct before.
Extra whitespace added
Comment #20
chishah92 commentedThanks joelpittet , will submit the patch on the same
~Chirag
Comment #21
chishah92 commentedMade all the changes in this new patch.
Thanks!
~Chirag
Comment #22
joelpittetThat's looking better, did you try the PHPCFB?
Here's another review
This should be left as is, because that is how we do this.
This should be left how it was as well, escaped the ending )); indent is correct.
Same here the ending )); indent is correct the but the -> should be left at 2 spaces
Comment #23
chishah92 commentedAdded the new changes
~Chirag
Comment #24
joelpittetthese changes dont need to happen
Comment #25
chishah92 commentedI did this according this suggestion "Same here the ending )); indent is correct the but the -> should be left at 2 spaces"
Please Advice
~Chirag
Comment #26
chishah92 commentedDone with the changes . Please review
~Chirag
Comment #27
joelpittetSorry if I'm not being clear, everything looks fine except this:
These can be left alone, remove these changes.
Comment #28
yogeshmpawarI have rerolled the patch as per changes mentioned in #27
Comment #29
joelpittet@Yogesh Pawar thanks that's looks right. Thanks to both of you for your patience
Comment #30
yogeshmpawarAny update on this issue ?
Comment #31
yogeshmpawar@maintainers - please look into this issue.