In an effort to help push this module to a release #1777184: Create a beta release, I've created a patch that cleans up code to match Drupal standards and updated all of the comments. I've also removed commented code that is no longer in use or has not yet been completed.
See: http://ventral.org/pareview/httpgitdrupalorgprojectcommerceupsgit
| Comment | File | Size | Author |
|---|---|---|---|
| #16 | 1789220-drupal-coding-stardard-16.patch | 15.69 KB | darol100 |
| #14 | interdiff-14.txt | 1.98 KB | joshi.rohit100 |
| #14 | 1789220-drupal-coding-stardard-14.patch | 15.48 KB | joshi.rohit100 |
| #8 | 1789220-drupal-coding-stardard-2.patch | 16.06 KB | darol100 |
| #5 | 1789220-drupal-coding-stardard.patch | 17.23 KB | darol100 |
Comments
Comment #1
ultimikeAndy,
One of us needs to re-roll this patch - I've made a bunch of commits and have broke it (sorry!)
I'll get to it this week if you don't get to it first.
Thanks,
-mike
Comment #2
ultimikeIf you love Coder module, then this is an easy patch for you!
We need a re-roll for the 2.x branch.
Thanks,
-mike
Comment #3
darol100 commented@ultimike
I got this....
Comment #4
ultimikeAwesome! Thanks for jumping in!
Thanks,
-mike
Comment #5
darol100 commentedHere is the patch.
I only have two warnings and I believe that I can not fix it because this is the XML call that goes to UPS. Changing the tag name will have and effect on UPS end (I believe, correct me if I'm wrong). Because XML is case sensitive.
Other than warning this patch should be able to make this Drupal Coding Standards friendly.
Comment #6
darol100 commentedComment #7
ultimikeDarryl,
Great job so far! I found a few issues though...
I think we want to stay with the t() function for translations.
This should remain with a l() not changed to a t() function.
Whoops - surely there shouldn't be a space between "& $option"...
Looks like you mistakenly remove the l() function here...
Should be /**
While we're here, this should probably refer to the "Commerce UPS" module, not "my module".
I think we can probably remove the comment completely.
Thanks,
-mike
Comment #8
darol100 commented@Mike,
I have made all the changes that you request. Does changes cause some warning/errors in the code. And I just wanted to make sure that you are aware of them.....
commerce_ups.module
commerce_ups.admin.inc
Anyway here is the patch... Please let me know if you find something wrong.
Comment #9
darol100 commentedDuplicated Post Sorry...
Comment #10
darol100 commentedComment #11
aramboyajyan commentedOne minor note: the link to AES settings page is not correct.
Instead of
admin/settings/aesit should beadmin/config/system/aes.Thanks for the work guys!
Comment #12
aramboyajyan commentedActually there are some other issues with AES settings form, so I will post that together in a separate patch.
Comment #13
joelpittetFew little nitpicks but this looks like a great clean-up thank you!
Minor nitpick, this should be a Capitol I in If as the start of a sentence.
This change is not part of the drupal standards.
Capitalize 'this' and put a period at the end.
Should be wrapped on 80 characters and likely should be inline commenting styles. Also what is mta?
Comment #14
joshi.rohit100I have accomodate all changes as per #13 except 2 as it is not clear to me.
Comment #15
joelpittetOh sorry about point 2, that is totally not clear, lol.
I meant the space between the reference ampersand and the variable there.
&$ is the convention we follow.
Thanks for the cleanup!
Comment #16
darol100 commented@joelpittet,
I have added a patch that does not have space between &$.
Comment #17
joelpittetVery nice cleanup, thanks @darol100!
Comment #18
jcherbert commentedShouldn't this:
be:
Comment #19
joelpittet@jcherbert yes you are right, feel free to roll that into the patch or the maintainer can fix that on commit.
Comment #21
joelpittetThanks these have been committed.