Closed (fixed)
Project:
Examples for Developers
Version:
7.x-1.x-dev
Component:
XMLRPC Example
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
26 Sep 2012 at 13:16 UTC
Updated:
9 Nov 2012 at 18:40 UTC
Jump to comment: Most recent file
Comments
Comment #1
sanchi.girotra commentedI applied this patch locally on my system and it worked perfectly fine.
Patch looks fine.
Comment #2
mile23Looks like pareview.sh is a cool toolchain, and thanks for the effort.
Changes like these make me itch, however, because you're never quite sure what you're losing:
But it does pass tests, so... Maybe rfay can weigh in.
Comment #3
rfay/me finds it odd that the tool would need to change a variable name. However, I note that this is done consistently, and it's only in the test. You sure have good eyes, @Mile23. Hope they're not itching.
Comment #4
amitgoyal commented@rfay / @Mile23 - Not sure if anything else needs to be done here. Can you please apply this patch?
Comment #5
mile23@rfay: I think the premise with pareview.sh is to change things to a coding convention. So apparently there's a convention where camelCase is better.
@amitgoyal: I'm not sure there's really a convention that says camelCase is better. :-) Also, changing a protected property name is really not cool at all. It might not matter in this case (I seriously doubt that anyone is subclassing this example test case), but it could turn into a big deal pretty fast in other circumstances. Maybe the tool could add a TODO about the variable name instead of changing it, ideally with a link to the best-practices page about it.
I like the line length wrapping and the @param and @return cleanup, but we shouldn't specify a type, since this is for Drupal 7: http://drupal.org/node/1354#functions
Drupal 8 docs apparently want the type to be declared.
Thanks, and give it another try. :-)
Comment #6
mile23Ugh. Forgot to change the status. :-)
Comment #7
amitgoyal commented@Mile23 - Attaching here updated patch where I have ignored the issues like camelCase and type for @param / @return.
Please review and let me know if there are any more changes required.
Comment #8
sanchi.girotra commentedI tested the updated patch, it worked fine and also modified as suggested in #5.
Comment #9
mile23Good deal. Committed: http://drupalcode.org/project/examples.git/commitdiff/70b318fd592ea84dd1...
Thanks, amitgoyal and sanchi. :-)
Comment #10
rfay@amitgoyal++
@sanchi.girotra++
@Mile23++
Thanks so much for all your work on this, everybody.
@Mile23, so wonderful to see your care for this.
Comment #11
amitgoyal commentedThanks a lot @Mile23 and @rfay for applying the patch!!
I will check issues in other modules as well and provide patches.
Comment #12
mile23@amitgoya: Thanks!