Coder suggested some simple formatting changes. I am doing the clean-up and will upload my patch here.

Here are the suggestions from coder:

File: @file block missing (Drupal Docs) [comment_docblock_file]

Line 439: The $message argument to watchdog() should NOT be enclosed within t(), so that it can be properly translated at display time. [i18n_9]
watchdog('mail', t('%name-from sent an e-mail at %form.', array('%name-from' => $form_state['values']['name'], '%form' => url($_GET['q'], array('absolute' => TRUE)))));

Line 453: Arrays should be formatted with a space separating each element and assignment operator [style_array_spacing]
$message['body'][] = t('@name sent a message using the contact form at @url.', array('@name' => $params['name'], '@url' => $params['url']), array('langcode' =>$language->language));

CommentFileSizeAuthor
#1 email-coder_cleanup-2144857.patch1.42 KBzhuber

Comments

zhuber’s picture

Assigned: zhuber » Unassigned
Status: Needs work » Needs review
StatusFileSize
new1.42 KB

Here is the patch, the email module now passes through coder 100%.

If this patch is committed, please attribute correctly. (http://www.bywombats.com/blog/09-06-2011/giving-credit-where-credit-due)

Here is my author info:
--author="zhuber <zhuber@1437276.no-reply.drupal.org>"

hurtonypeter’s picture

reviewed

hurtonypeter’s picture

Status: Needs review » Reviewed & tested by the community

reviewed

mh86’s picture

Status: Reviewed & tested by the community » Fixed

Thanks for the patch, committed (incl. git attributions :))!

  • Commit 25dd1a4 on 7.x-1.x authored by zhuber, committed by mh86:
    Issue #2144857 by zhuber: Fixed coder cleanup suggestions (minor...

Status: Fixed » Closed (fixed)

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