Fix for coder results of nodereference_asmselect.module

  1. nodereference_asmselect.module
  2.  
  3.     *
  4.       severity: normalLine 28: Use an indent of 2 spaces, with no tabs
  5.  
  6.                 // call node reference module, pass a dummy field so that a regular select field is returned
  7.  
  8.     *
  9.       severity: normalLine 30: Use an indent of 2 spaces, with no tabs
  10.  
  11.                 $nodereference_field['widget']['type'] = 'nodereference_select';
  12.  
  13.     *
  14.       severity: normalLine 31: Use an indent of 2 spaces, with no tabs
  15.  
  16.                 $ret = nodereference_widget($op, $node, $nodereference_field, $items);
  17.  
  18.     *
  19.       severity: normalLine 32: Use an indent of 2 spaces, with no tabs
  20.  
  21.                
  22.  
  23.     *
  24.       severity: normalLine 33: Use an indent of 2 spaces, with no tabs
  25.  
  26.                 if ($op == 'form') {
  27.  
  28.     *
  29.       severity: normalLine 34: Use an indent of 2 spaces, with no tabs
  30.  
  31.                   // set new id
  32.  
  33.     *
  34.       severity: normalLine 35: Use an indent of 2 spaces, with no tabs
  35.  
  36.                   $id = form_clean_id('edit-' . $field['field_name'] . '-nids');
  37.  
  38.     *
  39.       severity: normalLine 35: string concatenation should be formatted without a space separating the operators (dot .) and a quote
  40.  
  41.                   $id = form_clean_id('edit-' . $field['field_name'] . '-nids');
  42.  
  43.     *
  44.       severity: normalLine 36: Use an indent of 2 spaces, with no tabs
  45.  
  46.                        
  47.  
  48.     *
  49.       severity: normalLine 38: Use an indent of 2 spaces, with no tabs
  50.  
  51.                        
  52.  
  53.     *
  54.       severity: normalLine 39: Use an indent of 2 spaces, with no tabs
  55.  
  56.           $path = drupal_get_path('module', 'nodereference_asmselect');
  57.  
  58.     *
  59.       severity: normalLine 40: Use an indent of 2 spaces, with no tabs
  60.  
  61.                
  62.  
  63.     *
  64.       severity: normalLine 41: Use an indent of 2 spaces, with no tabs
  65.  
  66.           drupal_add_js($path . '/asmselect/jquery.asmselect.js');
  67.  
  68.     *
  69.       severity: normalLine 41: string concatenation should be formatted without a space separating the operators (dot .) and a quote
  70.  
  71.           drupal_add_js($path . '/asmselect/jquery.asmselect.js');
  72.  
  73.     *
  74.       severity: normalLine 42: Use an indent of 2 spaces, with no tabs
  75.  
  76.           drupal_add_css($path . '/asmselect/jquery.asmselect.css');
  77.  
  78.     *
  79.       severity: normalLine 42: string concatenation should be formatted without a space separating the operators (dot .) and a quote
  80.  
  81.           drupal_add_css($path . '/asmselect/jquery.asmselect.css');
  82.  
  83.     *
  84.       severity: normalLine 43: Use an indent of 2 spaces, with no tabs
  85.  
  86.          
  87.  
  88.     *
  89.       severity: normalLine 44: Use an indent of 2 spaces, with no tabs
  90.  
  91.           if ($field['widget']['sortable']) {
  92.  
  93.     *
  94.       severity: normalLine 45: Use an indent of 2 spaces, with no tabs
  95.  
  96.             // add list sorting
  97.  
  98.     *
  99.       severity: normalLine 46: Use an indent of 2 spaces, with no tabs
  100.  
  101.               jquery_ui_add(array('ui.draggable', 'ui.droppable', 'ui.sortable'));             
  102.  
  103.     *
  104.       severity: normalLine 47: Use an indent of 2 spaces, with no tabs
  105.  
  106.           }
  107.  
  108.     *
  109.       severity: normalLine 48: Use an indent of 2 spaces, with no tabs
  110.  
  111.                
  112.  
  113.     *
  114.       severity: normalLine 49: Use an indent of 2 spaces, with no tabs
  115.  
  116.           // add sortable multiple select widget
  117.  
  118.     *
  119.       severity: normalLine 50: Use an indent of 2 spaces, with no tabs
  120.  
  121.           drupal_add_js("
  122.  
  123.    *
  124.      severity: normalLine 52: string concatenation should be formatted without a space separating the operators (dot .) and a quote
  125.  
  126.                   $('#" . $id . "').asmSelect({
  127.  
  128.    *
  129.      severity: normalLine 53: string concatenation should be formatted without a space separating the operators (dot .) and a quote
  130.  
  131.                     addItemTarget: '" . $field['widget']['add_item_target'] . "',
  132.  
  133.    *
  134.      severity: normalLine 57: string concatenation should be formatted without a space separating the operators (dot .) and a quote
  135.  
  136.                 removeLabel: '" . t('Remove') . "',
  137.  
  138.    *
  139.      severity: normalLine 58: string concatenation should be formatted without a space separating the operators (dot .) and a quote
  140.  
  141.                  highlightAddedLabel: '" . t('Added') . "',
  142.  
  143.    *
  144.      severity: normalLine 59: string concatenation should be formatted without a space separating the operators (dot .) and a quote
  145.  
  146.                  highlightRemovedLabel: '" . t('Removed') . "'
  147.  
  148.    *
  149.      severity: normalLine 62: Use an indent of 2 spaces, with no tabs
  150.  
  151.               'inline');       
  152.  
  153.    *
  154.      severity: normalLine 78: Functions should be called with no spaces between the function name and opening parentheses
  155.  
  156.            $form['asm_settings'] = array (
  157.  
  158.    *
  159.      severity: normalLine 83: Functions should be called with no spaces between the function name and opening parentheses
  160.  
  161.            $form['asm_settings']['add_item_target'] = array (
  162.  
  163.    *
  164.      severity: normalLine 95: Functions should be called with no spaces between the function name and opening parentheses
  165.  
  166.            $form['asm_settings']['sortable'] = array (
  167.  
  168.    *
  169.      severity: normalLine 102: Functions should be called with no spaces between the function name and opening parentheses
  170.  
  171.            $form['asm_settings']['animate'] = array (
  172.  
  173.    *
  174.      severity: normalLine 109: Functions should be called with no spaces between the function name and opening parentheses
  175.  
  176.            $form['asm_settings']['highlight'] = array (

Submit Fix

Any tags you'd like to associate with your code, delimitered by commas (example: Views, CCK, Module, etc).
Select the syntax highlighting mode to use.