Come together with the global Drupal community in Rotterdam, 28 Sept – 1 Oct 2026. Sessions, contribution, connection, and Early Bird savings until 8 June.
I ran coder (code review) and it reported these issues, none of which appear to be important.
Line 3: New syntax for .info files, use dependencies[]
dependencies = search
severity: normalLine 14: string concatenation should be formatted without a space separating the operators (dot .) and a quote
$output .= '<p>'. t("OpenSearch provides browser search integration via the OpenSearch plugin protocal."). '</p>';
severity: normalLine 14: string concatenation should be formatted with a space separating the operators (dot .) and non-quote terms
$output .= '<p>'. t("OpenSearch provides browser search integration via the OpenSearch plugin protocal."). '</p>';
severity: normalLine 60: Functions should be called with no spaces between the function name
$form['image'] = array (
severity: normalLine 66: Functions should be called with no spaces between the function name
$form['image']['opensearchplugin_image'] = array (
severity: normalLine 72: Functions should be called with no spaces between the function name
$form['image']['opensearchplugin_image_width'] = array (
severity: normalLine 78: Functions should be called with no spaces between the function name
$form['image']['opensearchplugin_image_height'] = array (
severity: normalLine 108: Control statements should have one space between the control keyword and opening parenthesis
if(empty($icon)) {
severity: normalLine 111: Control statements should have one space between the control keyword and opening parenthesis
if(!empty($icon))
severity: normalLine 112: curly braces { should end a line, not start one
{
severity: normalLine 115: string concatenation should be formatted without a space separating the operators (dot .) and a quote
$icon = $url['scheme'] . '://' . $url['host'] . $icon;
severity: normalLine 119: Control statements should have one space between the control keyword and opening parenthesis
if(!empty($icon)) {
severity: normalLine 122: string concatenation should be formatted without a space separating the operators (dot .) and a quote
$icon = '<Image' . $iconwidth . $iconheight .'>'. $icon. '</Image>';
severity: normalLine 122: string concatenation should be formatted with a space separating the operators (dot .) and non-quote terms
$icon = '<Image' . $iconwidth . $iconheight .'>'. $icon. '</Image>';
severity: normalLine 127: string concatenation should be formatted without a space separating the operators (dot .) and a quote
$output = '<?xml version="1.0" encoding="UTF-8"?'. ">
Comments
Comment #1
reikiman commentedI ran coder (code review) and it reported these issues, none of which appear to be important.
Comment #2
reikiman commentedI changed the .info file to the following. This is due to the note here: http://drupal.org/node/114774#info .. the module appears to work properly.
Comment #3
robloachThanks for the note! I've stuck the changes in. The code formatting fixes should now be moved to the 5.x version.
Comment #4
robloachhttp://drupal.org/cvs?commit=101369
Comment #5
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.