/[drupal]/contributions/modules/coder/coder_review/includes/coder_review_style.inc
ViewVC logotype

Diff of /contributions/modules/coder/coder_review/includes/coder_review_style.inc

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.8, Sun Oct 18 12:45:36 2009 UTC revision 1.9, Sun Oct 18 13:26:30 2009 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: coder_review_style.inc,v 1.7 2009/08/14 00:15:47 snpower Exp $  // $Id: coder_review_style.inc,v 1.8 2009/10/18 12:45:36 snpower Exp $
3    
4  /**  /**
5   * @file   * @file
# Line 26  function coder_review_style_reviews() { Line 26  function coder_review_style_reviews() {
26      ),      ),
27      array(      array(
28        '#type' => 'regex',        '#type' => 'regex',
29        '#value' => '\s(if|elseif|while|foreach|switch|return|for|catch)\(',        '#value' => '\s(if|elseif|while|foreach|switch|case|return|for|catch)\(',
30        '#warning' => 'Control statements should have one space between the control keyword and opening parenthesis',        '#warning' => 'Control statements should have one space between the control keyword and opening parenthesis',
31      ),      ),
32      array(      array(
33        '#type' => 'regex',        '#type' => 'regex',
34        '#value' => '[\s\(](\w+)\s\(',        '#value' => '[\s\(](\w+)\s\(',
35        '#not' => '^(if|elseif|while|foreach|switch|return|for|list|catch)$',        '#not' => '^(if|elseif|while|foreach|switch|case|return|for|list|catch)$',
36        '#warning' => 'Functions should be called with no spaces between the function name and opening parentheses',        '#warning' => 'Functions should be called with no spaces between the function name and opening parentheses',
37      ),      ),
38      array(      array(

Legend:
Removed from v.1.8  
changed lines
  Added in v.1.9

  ViewVC Help
Powered by ViewVC 1.1.2