Since this module is lacking in coding standards, after #548594: VAT-ID is optional, not a must. is tested and committed I'll do some cleanup and submit the proper patch in this issue. For the future, though, I recommend using the Coder module to check that the code complies at least minimally to Drupal's standards.

CommentFileSizeAuthor
#4 1055960.patch829 bytesantiorario
#1 uc_vat_number-1055960.patch22.3 KBantiorario

Comments

antiorario’s picture

Status: Active » Needs review
StatusFileSize
new22.3 KB

Here's the cleanup against the latest DRUPAL-6--2. It includes fixes to the coding standards (I won't list what they are—they just follow the Coder module's suggestions), except this, which I'm sure is totally fine

Line 74: global variables should start with a single underscore followed by the module and another underscore
    global $soapclient_LIBRARY;

and the query on line 622 (line number after the application of the patch), which is also fine the way it is.

I also changed a couple of English mistakes and the wording in some of the translatable strings (which means some translations will be broken). Specifically, I changed links set on words such as "here" and "this website" to something more meaningful.

wimh’s picture

Status: Needs review » Fixed

Thanks, this looks good. I applied it to 2.x-dev.

See #757566: Support the current SOAP Client 6.x-1.x-dev snapshot for the leading underscore in $soapclient_LIBRARY: looks like they changed it themselves, we'll probably best check both versions.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

antiorario’s picture

Status: Closed (fixed) » Needs review
StatusFileSize
new829 bytes

I'm attaching a patch to 6.x-2.x-dev to fix a database query I wrote that didn't use db_placeholders() but should have. So now it's secure and all.

wimh’s picture

Status: Needs review » Fixed

Looks good, committed.
I'm also making a new beta release for 2.x including this fix.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.