Needs review
Project:
UC Payflow Pro
Version:
6.x-1.x-dev
Component:
Code
Priority:
Minor
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
3 Jan 2011 at 20:22 UTC
Updated:
3 Jan 2011 at 20:58 UTC
Jump to comment: Most recent file
When processing a single payment, this module:
- Calls uc_order_load three times.
- Passes the entire $order object 6 times.
uc_order_load should be called once and a reference to the order object should be passed.
Cheers,
Antoine
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | uc_payflowpro-1013710.patch | 7.47 KB | jantoine |
Comments
Comment #1
jantoine commentedA patch is attached that also has some code cleanup per http://drupal.org/coding-standards.
Cheers,
Antoine
Comment #2
kwinters commentedChanging priority to minor, since nothing is broken and it shouldn't have a significant performance impact (I'm pretty sure $order is static cached anyway). I'll still go over it when I get a chance.