Passed
Push — scrutinizer-code-quality ( 27193c...09f5a1 )
by Adam
51:28
created
modules/UpgradeWizard/populateColumns.php 3 patches
Indentation   +21 added lines, -21 removed lines patch added patch discarded remove patch
@@ -38,10 +38,10 @@  discard block
 block discarded – undo
38 38
  * display the words  "Powered by SugarCRM" and "Supercharged by SuiteCRM".
39 39
  ********************************************************************************/
40 40
 
41
- //Request object must have these property values:
42
- //		Module: module name, this module should have a file called TreeData.php
43
- //		Function: name of the function to be called in TreeData.php, the function will be called statically.
44
- //		PARAM prefixed properties: array of these property/values will be passed to the function as parameter.
41
+    //Request object must have these property values:
42
+    //		Module: module name, this module should have a file called TreeData.php
43
+    //		Function: name of the function to be called in TreeData.php, the function will be called statically.
44
+    //		PARAM prefixed properties: array of these property/values will be passed to the function as parameter.
45 45
 
46 46
 require_once('include/JSON.php');
47 47
 require_once('include/entryPoint.php');
@@ -52,25 +52,25 @@  discard block
 block discarded – undo
52 52
 
53 53
 $json = getJSONobj();
54 54
 $selectedTable = $json->decode(html_entity_decode($_REQUEST['selectedTable']));
55
- if(isset($tagArticleIds['jsonObject']) && $tagArticleIds['jsonObject'] != null){
56
-	$selectedTable = $selectedTable['jsonObject'];
57
-  }
55
+    if(isset($tagArticleIds['jsonObject']) && $tagArticleIds['jsonObject'] != null){
56
+    $selectedTable = $selectedTable['jsonObject'];
57
+    }
58 58
 $GLOBALS['log']->fatal('************ comes here *********');
59 59
 //$GLOBALS['log']->fatal($_REQUEST['selectedTable']);
60 60
 function tableColumns($table_name){
61
-	$GLOBALS['log']->fatal('********TABLE PASSED******* '.$table_name);
62
-	global $sugar_config;
63
-	global $setup_db_database_name;
61
+    $GLOBALS['log']->fatal('********TABLE PASSED******* '.$table_name);
62
+    global $sugar_config;
63
+    global $setup_db_database_name;
64 64
     global $setup_db_host_name;
65 65
     global $setup_db_host_instance;
66 66
     global $setup_db_admin_user_name;
67 67
     global $setup_db_admin_password;
68 68
     
69
-	//$db = &DBManagerFactory::getInstance('information_schema');
69
+    //$db = &DBManagerFactory::getInstance('information_schema');
70 70
 
71
-	$db_name= $sugar_config['dbconfig']['db_name'];
72
-	$setup_db_host_name = $sugar_config['dbconfig']['db_host_name'];
73
-  	$setup_db_admin_user_name = $sugar_config['dbconfig']['db_user_name'];
71
+    $db_name= $sugar_config['dbconfig']['db_name'];
72
+    $setup_db_host_name = $sugar_config['dbconfig']['db_host_name'];
73
+        $setup_db_admin_user_name = $sugar_config['dbconfig']['db_user_name'];
74 74
     $setup_db_host_instance = $sugar_config['dbconfig']['db_host_instance'];
75 75
     $setup_db_admin_password = $sugar_config['dbconfig']['db_password'];
76 76
 
@@ -78,27 +78,27 @@  discard block
 block discarded – undo
78 78
     mysql_select_db('information_schema');
79 79
 
80 80
     $qu="SELECT column_name FROM information_schema.columns WHERE table_schema = '".$db_name."' AND table_name = '".$table_name."'";
81
-	$ct =mysql_query($qu,$link);
81
+    $ct =mysql_query($qu,$link);
82 82
     //$cols= '';
83 83
     $colsDrop = array();
84 84
     while($row = mysql_fetch_assoc($ct)){
85
-    	 $colsDrop[] =$row['column_name'];
85
+            $colsDrop[] =$row['column_name'];
86 86
     }
87 87
     return $colsDrop;
88 88
 }
89 89
 
90 90
 $colsDrop = tableColumns($_REQUEST['selectedTable']);
91 91
 if($colsDrop != null){
92
-	$colsDropDown = "<option value=".$_REQUEST['selectedTable']." Columns>".$_REQUEST['selectedTable']." Columns</option>";
93
-	foreach($colsDrop as $col){
94
-		$colsDropDown .="<option value={$col}>{$col}</option>";
95
-	}
92
+    $colsDropDown = "<option value=".$_REQUEST['selectedTable']." Columns>".$_REQUEST['selectedTable']." Columns</option>";
93
+    foreach($colsDrop as $col){
94
+        $colsDropDown .="<option value={$col}>{$col}</option>";
95
+    }
96 96
 }
97 97
 //$response = "<script>document.getElementById('select_column').innerHTML=$colsDropDown</script>";
98 98
 $response = $colsDropDown;
99 99
 
100 100
 if (!empty($response)) {
101
-	echo $response;
101
+    echo $response;
102 102
 }
103 103
 sugar_cleanup();
104 104
 exit();
Please login to merge, or discard this patch.
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
1 1
 <?php
2
-if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
2
+if (!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
3 3
 /*********************************************************************************
4 4
  * SugarCRM Community Edition is a customer relationship management program developed by
5 5
  * SugarCRM, Inc. Copyright (C) 2004-2013 SugarCRM Inc.
@@ -52,12 +52,12 @@  discard block
 block discarded – undo
52 52
 
53 53
 $json = getJSONobj();
54 54
 $selectedTable = $json->decode(html_entity_decode($_REQUEST['selectedTable']));
55
- if(isset($tagArticleIds['jsonObject']) && $tagArticleIds['jsonObject'] != null){
55
+ if (isset($tagArticleIds['jsonObject']) && $tagArticleIds['jsonObject'] != null) {
56 56
 	$selectedTable = $selectedTable['jsonObject'];
57 57
   }
58 58
 $GLOBALS['log']->fatal('************ comes here *********');
59 59
 //$GLOBALS['log']->fatal($_REQUEST['selectedTable']);
60
-function tableColumns($table_name){
60
+function tableColumns($table_name) {
61 61
 	$GLOBALS['log']->fatal('********TABLE PASSED******* '.$table_name);
62 62
 	global $sugar_config;
63 63
 	global $setup_db_database_name;
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
     
69 69
 	//$db = &DBManagerFactory::getInstance('information_schema');
70 70
 
71
-	$db_name= $sugar_config['dbconfig']['db_name'];
71
+	$db_name = $sugar_config['dbconfig']['db_name'];
72 72
 	$setup_db_host_name = $sugar_config['dbconfig']['db_host_name'];
73 73
   	$setup_db_admin_user_name = $sugar_config['dbconfig']['db_user_name'];
74 74
     $setup_db_host_instance = $sugar_config['dbconfig']['db_host_instance'];
@@ -77,21 +77,21 @@  discard block
 block discarded – undo
77 77
     $link = @mysql_connect($setup_db_host_name, $setup_db_admin_user_name, $setup_db_admin_password);
78 78
     mysql_select_db('information_schema');
79 79
 
80
-    $qu="SELECT column_name FROM information_schema.columns WHERE table_schema = '".$db_name."' AND table_name = '".$table_name."'";
81
-	$ct =mysql_query($qu,$link);
80
+    $qu = "SELECT column_name FROM information_schema.columns WHERE table_schema = '".$db_name."' AND table_name = '".$table_name."'";
81
+	$ct = mysql_query($qu, $link);
82 82
     //$cols= '';
83 83
     $colsDrop = array();
84
-    while($row = mysql_fetch_assoc($ct)){
85
-    	 $colsDrop[] =$row['column_name'];
84
+    while ($row = mysql_fetch_assoc($ct)) {
85
+    	 $colsDrop[] = $row['column_name'];
86 86
     }
87 87
     return $colsDrop;
88 88
 }
89 89
 
90 90
 $colsDrop = tableColumns($_REQUEST['selectedTable']);
91
-if($colsDrop != null){
91
+if ($colsDrop != null) {
92 92
 	$colsDropDown = "<option value=".$_REQUEST['selectedTable']." Columns>".$_REQUEST['selectedTable']." Columns</option>";
93
-	foreach($colsDrop as $col){
94
-		$colsDropDown .="<option value={$col}>{$col}</option>";
93
+	foreach ($colsDrop as $col) {
94
+		$colsDropDown .= "<option value={$col}>{$col}</option>";
95 95
 	}
96 96
 }
97 97
 //$response = "<script>document.getElementById('select_column').innerHTML=$colsDropDown</script>";
Please login to merge, or discard this patch.
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,7 @@
 block discarded – undo
1 1
 <?php
2
-if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
2
+if(!defined('sugarEntry') || !sugarEntry) {
3
+    die('Not A Valid Entry Point');
4
+}
3 5
 /*********************************************************************************
4 6
  * SugarCRM Community Edition is a customer relationship management program developed by
5 7
  * SugarCRM, Inc. Copyright (C) 2004-2013 SugarCRM Inc.
Please login to merge, or discard this patch.
modules/UpgradeWizard/silentUpgrade.php 2 patches
Indentation   +36 added lines, -36 removed lines patch added patch discarded remove patch
@@ -35,29 +35,29 @@  discard block
 block discarded – undo
35 35
  ********************************************************************************/
36 36
 
37 37
 function build_argument_string($arguments=array()) {
38
-   if(!is_array($arguments)) {
39
-   	  return '';
40
-   }
38
+    if(!is_array($arguments)) {
39
+            return '';
40
+    }
41 41
 
42
-   $argument_string = '';
43
-   $count = 0;
44
-   foreach($arguments as $arg) {
45
-   	   if($count != 0)
46
-   	   {
47
-   	   	  //If current directory or parent directory is specified, substitute with full path
48
-   	   	  if($arg == '.')
49
-   	   	  {
50
-   	   	  	 $arg = getcwd();
51
-   	   	  } else if ($arg == '..') {
52
-   	   	  	 $dir = getcwd();
53
-			 $arg = substr($dir, 0, strrpos($dir, DIRECTORY_SEPARATOR));
54
-   	   	  }
55
-          $argument_string .= ' ' . escapeshellarg($arg);
56
-   	   }
57
-   	   $count++;
58
-   }
42
+    $argument_string = '';
43
+    $count = 0;
44
+    foreach($arguments as $arg) {
45
+            if($count != 0)
46
+            {
47
+                //If current directory or parent directory is specified, substitute with full path
48
+                if($arg == '.')
49
+                {
50
+                        $arg = getcwd();
51
+                } else if ($arg == '..') {
52
+                        $dir = getcwd();
53
+                $arg = substr($dir, 0, strrpos($dir, DIRECTORY_SEPARATOR));
54
+                }
55
+            $argument_string .= ' ' . escapeshellarg($arg);
56
+            }
57
+            $count++;
58
+    }
59 59
 
60
-   return $argument_string;
60
+    return $argument_string;
61 61
 }
62 62
 
63 63
 //Bug 52872. Dies if the request does not come from CLI.
@@ -75,8 +75,8 @@  discard block
 block discarded – undo
75 75
                 $run_dce_upgrade = true;
76 76
                 //set the php path if found
77 77
                 if(is_file($argv[7].'dce_config.php')){
78
-                   include($argv[7].'dce_config.php');
79
-                   $php_path = $dce_config['client_php_path'].'/';
78
+                    include($argv[7].'dce_config.php');
79
+                    $php_path = $dce_config['client_php_path'].'/';
80 80
                 }
81 81
 }
82 82
 
@@ -92,25 +92,25 @@  discard block
 block discarded – undo
92 92
 $has_error = $output == 0 ? false : true;
93 93
 
94 94
 if(!$has_error) {
95
-	if($run_dce_upgrade) {
96
-		$step2 = $php_path."php -f {$php_dir}silentUpgrade_dce_step1.php " . build_argument_string($argv);
97
-		passthru($step2, $output);
98
-	} else {
99
-		$step2 = "php -f {$php_dir}silentUpgrade_step2.php " . build_argument_string($argv);
100
-		passthru($step2, $output);
101
-	}
95
+    if($run_dce_upgrade) {
96
+        $step2 = $php_path."php -f {$php_dir}silentUpgrade_dce_step1.php " . build_argument_string($argv);
97
+        passthru($step2, $output);
98
+    } else {
99
+        $step2 = "php -f {$php_dir}silentUpgrade_step2.php " . build_argument_string($argv);
100
+        passthru($step2, $output);
101
+    }
102 102
 }
103 103
 
104 104
 if($run_dce_upgrade) {
105
-	$has_error = $output == 0 ? false : true;
106
-	if(!$has_error) {
107
-	   $step3 = $php_path."php -f {$php_dir}silentUpgrade_dce_step2.php " . build_argument_string($argv);
108
-	   passthru($step3, $output);
109
-	}
105
+    $has_error = $output == 0 ? false : true;
106
+    if(!$has_error) {
107
+        $step3 = $php_path."php -f {$php_dir}silentUpgrade_dce_step2.php " . build_argument_string($argv);
108
+        passthru($step3, $output);
109
+    }
110 110
 }
111 111
 
112 112
 if($output != 0) {
113
-   echo "***************         silentupgrade failed         ***************: $output\n";
113
+    echo "***************         silentupgrade failed         ***************: $output\n";
114 114
 }
115 115
 exit($output);
116 116
 ?>
Please login to merge, or discard this patch.
Spacing   +19 added lines, -19 removed lines patch added patch discarded remove patch
@@ -34,25 +34,25 @@  discard block
 block discarded – undo
34 34
  * "Powered by SugarCRM".
35 35
  ********************************************************************************/
36 36
 
37
-function build_argument_string($arguments=array()) {
38
-   if(!is_array($arguments)) {
37
+function build_argument_string($arguments = array()) {
38
+   if (!is_array($arguments)) {
39 39
    	  return '';
40 40
    }
41 41
 
42 42
    $argument_string = '';
43 43
    $count = 0;
44
-   foreach($arguments as $arg) {
45
-   	   if($count != 0)
44
+   foreach ($arguments as $arg) {
45
+   	   if ($count != 0)
46 46
    	   {
47 47
    	   	  //If current directory or parent directory is specified, substitute with full path
48
-   	   	  if($arg == '.')
48
+   	   	  if ($arg == '.')
49 49
    	   	  {
50 50
    	   	  	 $arg = getcwd();
51 51
    	   	  } else if ($arg == '..') {
52 52
    	   	  	 $dir = getcwd();
53 53
 			 $arg = substr($dir, 0, strrpos($dir, DIRECTORY_SEPARATOR));
54 54
    	   	  }
55
-          $argument_string .= ' ' . escapeshellarg($arg);
55
+          $argument_string .= ' '.escapeshellarg($arg);
56 56
    	   }
57 57
    	   $count++;
58 58
    }
@@ -69,12 +69,12 @@  discard block
 block discarded – undo
69 69
 
70 70
 $php_path = '';
71 71
 $run_dce_upgrade = false;
72
-if(isset($argv[3]) && is_dir($argv[3]) && file_exists($argv[3]."/ini_setup.php")) {
72
+if (isset($argv[3]) && is_dir($argv[3]) && file_exists($argv[3]."/ini_setup.php")) {
73 73
                 //this is a dce call, set the dce flag
74 74
                 chdir($argv[3]);
75 75
                 $run_dce_upgrade = true;
76 76
                 //set the php path if found
77
-                if(is_file($argv[7].'dce_config.php')){
77
+                if (is_file($argv[7].'dce_config.php')) {
78 78
                    include($argv[7].'dce_config.php');
79 79
                    $php_path = $dce_config['client_php_path'].'/';
80 80
                 }
@@ -82,34 +82,34 @@  discard block
 block discarded – undo
82 82
 
83 83
 $php_file = $argv[0];
84 84
 $p_info = pathinfo($php_file);
85
-$php_dir = (isset($p_info['dirname']) && $p_info['dirname'] != '.') ?  $p_info['dirname'] . '/' : '';
85
+$php_dir = (isset($p_info['dirname']) && $p_info['dirname'] != '.') ? $p_info['dirname'].'/' : '';
86 86
 
87
-$step1 = $php_path."php -f {$php_dir}silentUpgrade_step1.php " . build_argument_string($argv);
87
+$step1 = $php_path."php -f {$php_dir}silentUpgrade_step1.php ".build_argument_string($argv);
88 88
 passthru($step1, $output);
89
-if($output != 0) {
89
+if ($output != 0) {
90 90
     echo "***************         step1 failed         ***************: $output\n";
91 91
 }
92 92
 $has_error = $output == 0 ? false : true;
93 93
 
94
-if(!$has_error) {
95
-	if($run_dce_upgrade) {
96
-		$step2 = $php_path."php -f {$php_dir}silentUpgrade_dce_step1.php " . build_argument_string($argv);
94
+if (!$has_error) {
95
+	if ($run_dce_upgrade) {
96
+		$step2 = $php_path."php -f {$php_dir}silentUpgrade_dce_step1.php ".build_argument_string($argv);
97 97
 		passthru($step2, $output);
98 98
 	} else {
99
-		$step2 = "php -f {$php_dir}silentUpgrade_step2.php " . build_argument_string($argv);
99
+		$step2 = "php -f {$php_dir}silentUpgrade_step2.php ".build_argument_string($argv);
100 100
 		passthru($step2, $output);
101 101
 	}
102 102
 }
103 103
 
104
-if($run_dce_upgrade) {
104
+if ($run_dce_upgrade) {
105 105
 	$has_error = $output == 0 ? false : true;
106
-	if(!$has_error) {
107
-	   $step3 = $php_path."php -f {$php_dir}silentUpgrade_dce_step2.php " . build_argument_string($argv);
106
+	if (!$has_error) {
107
+	   $step3 = $php_path."php -f {$php_dir}silentUpgrade_dce_step2.php ".build_argument_string($argv);
108 108
 	   passthru($step3, $output);
109 109
 	}
110 110
 }
111 111
 
112
-if($output != 0) {
112
+if ($output != 0) {
113 113
    echo "***************         silentupgrade failed         ***************: $output\n";
114 114
 }
115 115
 exit($output);
Please login to merge, or discard this patch.
modules/AOR_Reports/vardefs.php 2 patches
Indentation   +56 added lines, -56 removed lines patch added patch discarded remove patch
@@ -38,45 +38,45 @@  discard block
 block discarded – undo
38 38
  ********************************************************************************/
39 39
 
40 40
 $dictionary['AOR_Report'] = array(
41
-	'table'=>'aor_reports',
42
-	'audited'=>true,
43
-	'duplicate_merge'=>true,
44
-	'fields'=>array (
45
-	  'report_module' => 
46
-	  array (
47
-		'required' => true,
48
-		'name' => 'report_module',
49
-		'vname' => 'LBL_REPORT_MODULE',
50
-		'type' => 'enum',
51
-		'massupdate' => 0,
52
-		'default' => '',
53
-		'no_default' => false,
54
-		'comments' => '',
55
-		'help' => '',
56
-		'importable' => 'true',
57
-		'duplicate_merge' => 'disabled',
58
-		'duplicate_merge_dom_value' => '0',
59
-		'audited' => true,
60
-		'reportable' => true,
61
-		'unified_search' => false,
62
-		'merge_filter' => 'disabled',
63
-		'len' => 100,
64
-		'size' => '20',
65
-		'options' => 'aor_moduleList',
66
-		'studio' => 'visible',
67
-		'dependency' => false,
68
-	  ),
41
+    'table'=>'aor_reports',
42
+    'audited'=>true,
43
+    'duplicate_merge'=>true,
44
+    'fields'=>array (
45
+        'report_module' => 
46
+        array (
47
+        'required' => true,
48
+        'name' => 'report_module',
49
+        'vname' => 'LBL_REPORT_MODULE',
50
+        'type' => 'enum',
51
+        'massupdate' => 0,
52
+        'default' => '',
53
+        'no_default' => false,
54
+        'comments' => '',
55
+        'help' => '',
56
+        'importable' => 'true',
57
+        'duplicate_merge' => 'disabled',
58
+        'duplicate_merge_dom_value' => '0',
59
+        'audited' => true,
60
+        'reportable' => true,
61
+        'unified_search' => false,
62
+        'merge_filter' => 'disabled',
63
+        'len' => 100,
64
+        'size' => '20',
65
+        'options' => 'aor_moduleList',
66
+        'studio' => 'visible',
67
+        'dependency' => false,
68
+        ),
69 69
 
70
-	'graphs_per_row' =>
71
-	array (
72
-		'required' => true,
73
-		'name' => 'graphs_per_row',
74
-		'vname' => 'LBL_GRAPHS_PER_ROW',
75
-		'type' => 'int',
76
-		'massupdate' => 0,
77
-		'default' => 2,
78
-		'no_default' => false,
79
-	),
70
+    'graphs_per_row' =>
71
+    array (
72
+        'required' => true,
73
+        'name' => 'graphs_per_row',
74
+        'vname' => 'LBL_GRAPHS_PER_ROW',
75
+        'type' => 'int',
76
+        'massupdate' => 0,
77
+        'default' => 2,
78
+        'no_default' => false,
79
+    ),
80 80
 
81 81
     'field_lines' =>
82 82
     array (
@@ -118,8 +118,8 @@  discard block
 block discarded – undo
118 118
             'include' => 'modules/AOR_Conditions/conditionLines.php'
119 119
         ),
120 120
     ),
121
-  'aor_fields' =>
122
-  array (
121
+    'aor_fields' =>
122
+    array (
123 123
     'name' => 'aor_fields',
124 124
     'type' => 'link',
125 125
     'relationship' => 'aor_reports_aor_fields',
@@ -127,26 +127,26 @@  discard block
 block discarded – undo
127 127
     'bean_name'=>'AOR_Field',
128 128
     'source'=>'non-db',
129 129
     'id_name' => 'aor_report_id',
130
-  ),
131
-  'aor_conditions' =>
132
-  array (
133
-     'name' => 'aor_conditions',
134
-     'type' => 'link',
135
-     'relationship' => 'aor_reports_aor_conditions',
136
-     'module'=>'AOR_Conditions',
137
-     'bean_name'=>'AOR_Condition',
138
-     'source'=>'non-db',
139
-  ),
140
-  'aor_charts' =>
141
-      array (
130
+    ),
131
+    'aor_conditions' =>
132
+    array (
133
+        'name' => 'aor_conditions',
134
+        'type' => 'link',
135
+        'relationship' => 'aor_reports_aor_conditions',
136
+        'module'=>'AOR_Conditions',
137
+        'bean_name'=>'AOR_Condition',
138
+        'source'=>'non-db',
139
+    ),
140
+    'aor_charts' =>
141
+        array (
142 142
         'name' => 'aor_charts',
143 143
         'type' => 'link',
144 144
         'relationship' => 'aor_charts_aor_reports',
145 145
         'source' => 'non-db',
146 146
         'id_name' => 'aor_report_id',
147 147
         'vname' => 'LBL_AOR_CHARTS',
148
-      ),
149
-  'aor_scheduled_reports' =>
148
+        ),
149
+    'aor_scheduled_reports' =>
150 150
     array (
151 151
         'name' => 'aor_scheduled_reports',
152 152
         'type' => 'link',
@@ -188,8 +188,8 @@  discard block
 block discarded – undo
188 188
         'relationship_type'=>'one-to-many',
189 189
     ),
190 190
 ),
191
-	'optimistic_locking'=>true,
192
-	'unified_search'=>true,
191
+    'optimistic_locking'=>true,
192
+    'unified_search'=>true,
193 193
 );
194 194
 
195 195
 if (!class_exists('VardefManager')){
Please login to merge, or discard this patch.
Spacing   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -41,9 +41,9 @@  discard block
 block discarded – undo
41 41
 	'table'=>'aor_reports',
42 42
 	'audited'=>true,
43 43
 	'duplicate_merge'=>true,
44
-	'fields'=>array (
44
+	'fields'=>array(
45 45
 	  'report_module' => 
46
-	  array (
46
+	  array(
47 47
 		'required' => true,
48 48
 		'name' => 'report_module',
49 49
 		'vname' => 'LBL_REPORT_MODULE',
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
 	  ),
69 69
 
70 70
 	'graphs_per_row' =>
71
-	array (
71
+	array(
72 72
 		'required' => true,
73 73
 		'name' => 'graphs_per_row',
74 74
 		'vname' => 'LBL_GRAPHS_PER_ROW',
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
 	),
80 80
 
81 81
     'field_lines' =>
82
-    array (
82
+    array(
83 83
         'required' => false,
84 84
         'name' => 'field_lines',
85 85
         'vname' => 'LBL_FIELD_LINES',
@@ -92,14 +92,14 @@  discard block
 block discarded – undo
92 92
         'audited' => false,
93 93
         'reportable' => false,
94 94
         'function' =>
95
-        array (
95
+        array(
96 96
             'name' => 'display_field_lines',
97 97
             'returns' => 'html',
98 98
             'include' => 'modules/AOR_Fields/fieldLines.php'
99 99
         ),
100 100
     ),
101 101
     'condition_lines' =>
102
-    array (
102
+    array(
103 103
         'required' => false,
104 104
         'name' => 'condition_lines',
105 105
         'vname' => 'LBL_CONDITION_LINES',
@@ -112,14 +112,14 @@  discard block
 block discarded – undo
112 112
         'audited' => false,
113 113
         'reportable' => false,
114 114
         'function' =>
115
-        array (
115
+        array(
116 116
             'name' => 'display_condition_lines',
117 117
             'returns' => 'html',
118 118
             'include' => 'modules/AOR_Conditions/conditionLines.php'
119 119
         ),
120 120
     ),
121 121
   'aor_fields' =>
122
-  array (
122
+  array(
123 123
     'name' => 'aor_fields',
124 124
     'type' => 'link',
125 125
     'relationship' => 'aor_reports_aor_fields',
@@ -129,7 +129,7 @@  discard block
 block discarded – undo
129 129
     'id_name' => 'aor_report_id',
130 130
   ),
131 131
   'aor_conditions' =>
132
-  array (
132
+  array(
133 133
      'name' => 'aor_conditions',
134 134
      'type' => 'link',
135 135
      'relationship' => 'aor_reports_aor_conditions',
@@ -138,7 +138,7 @@  discard block
 block discarded – undo
138 138
      'source'=>'non-db',
139 139
   ),
140 140
   'aor_charts' =>
141
-      array (
141
+      array(
142 142
         'name' => 'aor_charts',
143 143
         'type' => 'link',
144 144
         'relationship' => 'aor_charts_aor_reports',
@@ -147,7 +147,7 @@  discard block
 block discarded – undo
147 147
         'vname' => 'LBL_AOR_CHARTS',
148 148
       ),
149 149
   'aor_scheduled_reports' =>
150
-    array (
150
+    array(
151 151
         'name' => 'aor_scheduled_reports',
152 152
         'type' => 'link',
153 153
         'relationship' => 'aor_scheduled_reports_aor_reports',
@@ -157,7 +157,7 @@  discard block
 block discarded – undo
157 157
     ),
158 158
 
159 159
 ),
160
-'relationships'=>array (
160
+'relationships'=>array(
161 161
     'aor_reports_aor_fields' =>
162 162
     array(
163 163
         'lhs_module'=> 'AOR_Reports',
@@ -178,7 +178,7 @@  discard block
 block discarded – undo
178 178
         'rhs_key' => 'aor_report_id',
179 179
         'relationship_type'=>'one-to-many',
180 180
     ),
181
-    "aor_scheduled_reports_aor_reports" => array (
181
+    "aor_scheduled_reports_aor_reports" => array(
182 182
         'lhs_module'=> 'AOR_Reports',
183 183
         'lhs_table'=> 'aor_reports',
184 184
         'lhs_key' => 'id',
@@ -192,8 +192,8 @@  discard block
 block discarded – undo
192 192
 	'unified_search'=>true,
193 193
 );
194 194
 
195
-if (!class_exists('VardefManager')){
195
+if (!class_exists('VardefManager')) {
196 196
         require_once('include/SugarObjects/VardefManager.php');
197 197
 }
198
-VardefManager::createVardef('AOR_Reports','AOR_Report', array('basic','assignable','security_groups'));
198
+VardefManager::createVardef('AOR_Reports', 'AOR_Report', array('basic', 'assignable', 'security_groups'));
199 199
 
Please login to merge, or discard this patch.
modules/AOR_Reports/language/en_us.lang.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
22 22
  * @author SalesAgility <[email protected]>
23 23
  */
24 24
 
25
-$mod_strings = array (
25
+$mod_strings = array(
26 26
   'LBL_ASSIGNED_TO_ID' => 'Assigned User Id',
27 27
   'LBL_ASSIGNED_TO_NAME' => 'Assigned to',
28 28
   'LBL_ID' => 'ID',
Please login to merge, or discard this patch.
Indentation   +58 added lines, -58 removed lines patch added patch discarded remove patch
@@ -23,66 +23,66 @@
 block discarded – undo
23 23
  */
24 24
 
25 25
 $mod_strings = array (
26
-  'LBL_ASSIGNED_TO_ID' => 'Assigned User Id',
27
-  'LBL_ASSIGNED_TO_NAME' => 'Assigned to',
28
-  'LBL_ID' => 'ID',
29
-  'LBL_DATE_ENTERED' => 'Date Created',
30
-  'LBL_DATE_MODIFIED' => 'Date Modified',
31
-  'LBL_MODIFIED' => 'Modified By',
32
-  'LBL_MODIFIED_ID' => 'Modified By Id',
33
-  'LBL_MODIFIED_NAME' => 'Modified By Name',
34
-  'LBL_CREATED' => 'Created By',
35
-  'LBL_CREATED_ID' => 'Created By Id',
36
-  'LBL_DESCRIPTION' => 'Description',
37
-  'LBL_DELETED' => 'Deleted',
38
-  'LBL_NAME' => 'Name',
39
-  'LBL_CREATED_USER' => 'Created by User',
40
-  'LBL_MODIFIED_USER' => 'Modified by User',
41
-  'LBL_LIST_NAME' => 'Name',
42
-  'LBL_EDIT_BUTTON' => 'Edit',
43
-  'LBL_REMOVE' => 'Remove',
44
-  'LBL_LIST_FORM_TITLE' => 'Reports List',
45
-  'LBL_MODULE_NAME' => 'Reports',
46
-  'LBL_MODULE_TITLE' => 'Reports',
47
-  'LBL_HOMEPAGE_TITLE' => 'My Reports',
48
-  'LNK_NEW_RECORD' => 'Create Report',
49
-  'LNK_LIST' => 'View Reports',
50
-  'LNK_IMPORT_AOR_REPORTS' => 'Import Reports',
51
-  'LBL_SEARCH_FORM_TITLE' => 'Search Reports',
52
-  'LBL_HISTORY_SUBPANEL_TITLE' => 'View History',
53
-  'LBL_ACTIVITIES_SUBPANEL_TITLE' => 'Activities',
54
-  'LBL_AOR_REPORTS_SUBPANEL_TITLE' => 'Reports',
55
-  'LBL_NEW_FORM_TITLE' => 'New Reports',
56
-  'LBL_REPORT_MODULE' => 'Report Module',
26
+    'LBL_ASSIGNED_TO_ID' => 'Assigned User Id',
27
+    'LBL_ASSIGNED_TO_NAME' => 'Assigned to',
28
+    'LBL_ID' => 'ID',
29
+    'LBL_DATE_ENTERED' => 'Date Created',
30
+    'LBL_DATE_MODIFIED' => 'Date Modified',
31
+    'LBL_MODIFIED' => 'Modified By',
32
+    'LBL_MODIFIED_ID' => 'Modified By Id',
33
+    'LBL_MODIFIED_NAME' => 'Modified By Name',
34
+    'LBL_CREATED' => 'Created By',
35
+    'LBL_CREATED_ID' => 'Created By Id',
36
+    'LBL_DESCRIPTION' => 'Description',
37
+    'LBL_DELETED' => 'Deleted',
38
+    'LBL_NAME' => 'Name',
39
+    'LBL_CREATED_USER' => 'Created by User',
40
+    'LBL_MODIFIED_USER' => 'Modified by User',
41
+    'LBL_LIST_NAME' => 'Name',
42
+    'LBL_EDIT_BUTTON' => 'Edit',
43
+    'LBL_REMOVE' => 'Remove',
44
+    'LBL_LIST_FORM_TITLE' => 'Reports List',
45
+    'LBL_MODULE_NAME' => 'Reports',
46
+    'LBL_MODULE_TITLE' => 'Reports',
47
+    'LBL_HOMEPAGE_TITLE' => 'My Reports',
48
+    'LNK_NEW_RECORD' => 'Create Report',
49
+    'LNK_LIST' => 'View Reports',
50
+    'LNK_IMPORT_AOR_REPORTS' => 'Import Reports',
51
+    'LBL_SEARCH_FORM_TITLE' => 'Search Reports',
52
+    'LBL_HISTORY_SUBPANEL_TITLE' => 'View History',
53
+    'LBL_ACTIVITIES_SUBPANEL_TITLE' => 'Activities',
54
+    'LBL_AOR_REPORTS_SUBPANEL_TITLE' => 'Reports',
55
+    'LBL_NEW_FORM_TITLE' => 'New Reports',
56
+    'LBL_REPORT_MODULE' => 'Report Module',
57 57
     'LBL_GRAPHS_PER_ROW' => 'Charts per row',
58
-  'LBL_FIELD_LINES' => 'Display Fields',
59
-  'LBL_ADD_FIELD' => 'Add Field',
60
-  'LBL_CONDITION_LINES' => 'Conditions',
61
-  'LBL_ADD_CONDITION' => 'Add Condition',
62
-  'LBL_EXPORT' => 'Export',
63
-  'LBL_DOWNLOAD_PDF' => 'Download PDF',
64
-  'LBL_ADD_TO_PROSPECT_LIST' => 'Add To Target List',
65
-  'LBL_AOR_MODULETREE_SUBPANEL_TITLE' => 'Module tree',
66
-  'LBL_AOR_FIELDS_SUBPANEL_TITLE' => 'Fields',
67
-  'LBL_AOR_CONDITIONS_SUBPANEL_TITLE' => 'Conditions',
68
-  'LBL_TOTAL' => 'Total',
69
-  'LBL_AOR_CHARTS_SUBPANEL_TITLE' => 'Charts',
70
-  'LBL_ADD_CHART' => 'Add chart',
58
+    'LBL_FIELD_LINES' => 'Display Fields',
59
+    'LBL_ADD_FIELD' => 'Add Field',
60
+    'LBL_CONDITION_LINES' => 'Conditions',
61
+    'LBL_ADD_CONDITION' => 'Add Condition',
62
+    'LBL_EXPORT' => 'Export',
63
+    'LBL_DOWNLOAD_PDF' => 'Download PDF',
64
+    'LBL_ADD_TO_PROSPECT_LIST' => 'Add To Target List',
65
+    'LBL_AOR_MODULETREE_SUBPANEL_TITLE' => 'Module tree',
66
+    'LBL_AOR_FIELDS_SUBPANEL_TITLE' => 'Fields',
67
+    'LBL_AOR_CONDITIONS_SUBPANEL_TITLE' => 'Conditions',
68
+    'LBL_TOTAL' => 'Total',
69
+    'LBL_AOR_CHARTS_SUBPANEL_TITLE' => 'Charts',
70
+    'LBL_ADD_CHART' => 'Add chart',
71 71
     'LBL_ADD_PARENTHESIS' => 'Drop parenthesis',
72
-  'LBL_CHART_TITLE' => 'Title',
73
-  'LBL_CHART_TYPE' => 'Type',
74
-  'LBL_CHART_X_FIELD' => 'X Axis',
75
-  'LBL_CHART_Y_FIELD' => 'Y Axis',
76
-  'LBL_AOR_REPORTS_DASHLET' => 'Reports',
77
-  'LBL_DASHLET_TITLE' => 'Title',
78
-  'LBL_DASHLET_REPORT' => 'Report',
79
-  'LBL_DASHLET_CHOOSE_REPORT' => 'Please choose a report',
80
-  'LBL_DASHLET_SAVE' => 'Save',
81
-  'LBL_DASHLET_CHARTS' => 'Charts',
82
-  'LBL_DASHLET_ONLY_CHARTS' => 'Only show charts',
83
-  'LBL_AOR_SCHEDULED_REPORTS_AOR_REPORTS_FROM_AOR_SCHEDULED_REPORTS_TITLE' => 'Scheduled Reports',
84
-  'LBL_UPDATE_PARAMETERS' => 'Update',
85
-  'LBL_PARAMETERS' => 'Parameters',
72
+    'LBL_CHART_TITLE' => 'Title',
73
+    'LBL_CHART_TYPE' => 'Type',
74
+    'LBL_CHART_X_FIELD' => 'X Axis',
75
+    'LBL_CHART_Y_FIELD' => 'Y Axis',
76
+    'LBL_AOR_REPORTS_DASHLET' => 'Reports',
77
+    'LBL_DASHLET_TITLE' => 'Title',
78
+    'LBL_DASHLET_REPORT' => 'Report',
79
+    'LBL_DASHLET_CHOOSE_REPORT' => 'Please choose a report',
80
+    'LBL_DASHLET_SAVE' => 'Save',
81
+    'LBL_DASHLET_CHARTS' => 'Charts',
82
+    'LBL_DASHLET_ONLY_CHARTS' => 'Only show charts',
83
+    'LBL_AOR_SCHEDULED_REPORTS_AOR_REPORTS_FROM_AOR_SCHEDULED_REPORTS_TITLE' => 'Scheduled Reports',
84
+    'LBL_UPDATE_PARAMETERS' => 'Update',
85
+    'LBL_PARAMETERS' => 'Parameters',
86 86
     'LBL_TOOLTIP_DRAG_DROP_ELEMS' => 'Drag and drop elements into field or condition area',
87 87
     'LBL_MAIN_GROUPS' => 'Main Group:',
88 88
 );
Please login to merge, or discard this patch.
modules/AOR_Reports/metadata/editviewdefs.php 2 patches
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -23,21 +23,21 @@  discard block
 block discarded – undo
23 23
  */
24 24
 
25 25
 $viewdefs ['AOR_Reports'] =
26
-array (
26
+array(
27 27
   'EditView' => 
28
-  array (
28
+  array(
29 29
     'templateMeta' => 
30
-    array (
30
+    array(
31 31
       'maxColumns' => '2',
32 32
       'widths' => 
33
-      array (
33
+      array(
34 34
         0 => 
35
-        array (
35
+        array(
36 36
           'label' => '10',
37 37
           'field' => '30',
38 38
         ),
39 39
         1 => 
40
-        array (
40
+        array(
41 41
           'label' => '10',
42 42
           'field' => '30',
43 43
         ),
@@ -49,18 +49,18 @@  discard block
 block discarded – undo
49 49
         ),
50 50
     ),
51 51
     'panels' => 
52
-    array (
52
+    array(
53 53
       'default' => 
54
-      array (
54
+      array(
55 55
         0 => 
56
-        array (
56
+        array(
57 57
           0 => 'name',
58 58
           1 => 'assigned_user_name',
59 59
         ),
60 60
         1 => 
61
-        array (
61
+        array(
62 62
           0 => 
63
-          array (
63
+          array(
64 64
             'name' => 'report_module',
65 65
             'studio' => 'visible',
66 66
             'label' => 'LBL_REPORT_MODULE',
@@ -68,9 +68,9 @@  discard block
 block discarded – undo
68 68
           1 => '',
69 69
         ),
70 70
           2 =>
71
-              array (
71
+              array(
72 72
                   0 =>
73
-                      array (
73
+                      array(
74 74
                           'name' => 'graphs_per_row',
75 75
                           'label' => 'LBL_GRAPHS_PER_ROW',
76 76
                       ),
Please login to merge, or discard this patch.
Indentation   +30 added lines, -30 removed lines patch added patch discarded remove patch
@@ -24,25 +24,25 @@  discard block
 block discarded – undo
24 24
 
25 25
 $viewdefs ['AOR_Reports'] =
26 26
 array (
27
-  'EditView' => 
28
-  array (
27
+    'EditView' => 
28
+    array (
29 29
     'templateMeta' => 
30 30
     array (
31
-      'maxColumns' => '2',
32
-      'widths' => 
33
-      array (
31
+        'maxColumns' => '2',
32
+        'widths' => 
33
+        array (
34 34
         0 => 
35 35
         array (
36
-          'label' => '10',
37
-          'field' => '30',
36
+            'label' => '10',
37
+            'field' => '30',
38 38
         ),
39 39
         1 => 
40 40
         array (
41
-          'label' => '10',
42
-          'field' => '30',
41
+            'label' => '10',
42
+            'field' => '30',
43
+        ),
43 44
         ),
44
-      ),
45
-      'useTabs' => false,
45
+        'useTabs' => false,
46 46
         'form' => array(
47 47
             'headerTpl' => 'modules/AOR_Reports/tpls/EditViewHeader.tpl',
48 48
             'footerTpl' => 'modules/AOR_Reports/tpls/EditViewFooter.tpl',
@@ -50,38 +50,38 @@  discard block
 block discarded – undo
50 50
     ),
51 51
     'panels' => 
52 52
     array (
53
-      'default' => 
54
-      array (
53
+        'default' => 
54
+        array (
55 55
         0 => 
56 56
         array (
57
-          0 => 'name',
58
-          1 => 'assigned_user_name',
57
+            0 => 'name',
58
+            1 => 'assigned_user_name',
59 59
         ),
60 60
         1 => 
61 61
         array (
62
-          0 => 
63
-          array (
62
+            0 => 
63
+            array (
64 64
             'name' => 'report_module',
65 65
             'studio' => 'visible',
66 66
             'label' => 'LBL_REPORT_MODULE',
67
-          ),
68
-          1 => '',
67
+            ),
68
+            1 => '',
69 69
         ),
70
-          2 =>
71
-              array (
72
-                  0 =>
73
-                      array (
74
-                          'name' => 'graphs_per_row',
75
-                          'label' => 'LBL_GRAPHS_PER_ROW',
76
-                      ),
77
-                  1 => '',
78
-              ),
70
+            2 =>
71
+                array (
72
+                    0 =>
73
+                        array (
74
+                            'name' => 'graphs_per_row',
75
+                            'label' => 'LBL_GRAPHS_PER_ROW',
76
+                        ),
77
+                    1 => '',
78
+                ),
79 79
 //        2 =>
80 80
 //        array (
81 81
 //          0 => 'description',
82 82
 //        ),
83
-      ),
83
+        ),
84
+    ),
84 85
     ),
85
-  ),
86 86
 );
87 87
 ?>
Please login to merge, or discard this patch.
modules/AOR_Reports/metadata/popupdefs.php 3 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
1 1
 <?php
2
-if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
2
+if (!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
3 3
 /**
4 4
  * Advanced OpenReports, SugarCRM Reporting.
5 5
  * @package Advanced OpenReports for SugarCRM
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
 						'whereClauses' => 
30 30
 							array('name' => 'aor_reports.name', 
31 31
 								),
32
-						    'searchInputs'=> array('aor_reports_number', 'name', 'priority','status'),
32
+						    'searchInputs'=> array('aor_reports_number', 'name', 'priority', 'status'),
33 33
 							
34 34
 						);
35 35
 ?>
Please login to merge, or discard this patch.
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -24,14 +24,14 @@
 block discarded – undo
24 24
  */
25 25
 
26 26
 $popupMeta = array('moduleMain' => 'AOR_Reports',
27
-						'varName' => 'AOR_Report',
28
-						'orderBy' => 'aor_reports.name',
29
-						'whereClauses' => 
30
-							array('name' => 'aor_reports.name', 
31
-								),
32
-						    'searchInputs'=> array('aor_reports_number', 'name', 'priority','status'),
27
+                        'varName' => 'AOR_Report',
28
+                        'orderBy' => 'aor_reports.name',
29
+                        'whereClauses' => 
30
+                            array('name' => 'aor_reports.name', 
31
+                                ),
32
+                            'searchInputs'=> array('aor_reports_number', 'name', 'priority','status'),
33 33
 							
34
-						);
34
+                        );
35 35
 ?>
36 36
  
37 37
  
Please login to merge, or discard this patch.
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,7 @@
 block discarded – undo
1 1
 <?php
2
-if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
2
+if(!defined('sugarEntry') || !sugarEntry) {
3
+    die('Not A Valid Entry Point');
4
+}
3 5
 /*********************************************************************************
4 6
  * SugarCRM Community Edition is a customer relationship management program developed by
5 7
  * SugarCRM, Inc. Copyright (C) 2004-2013 SugarCRM Inc.
Please login to merge, or discard this patch.
modules/AOR_Reports/metadata/SearchFields.php 3 patches
Indentation   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -24,18 +24,18 @@
 block discarded – undo
24 24
  */
25 25
 
26 26
 $searchFields['AOR_Reports'] = 
27
-	array (
28
-		'name' => array( 'query_type'=>'default'),
29
-		'current_user_only'=> array('query_type'=>'default','db_field'=>array('assigned_user_id'),'my_items'=>true, 'vname' => 'LBL_CURRENT_USER_FILTER', 'type' => 'bool'),
30
-		'assigned_user_id'=> array('query_type'=>'default'),
27
+    array (
28
+        'name' => array( 'query_type'=>'default'),
29
+        'current_user_only'=> array('query_type'=>'default','db_field'=>array('assigned_user_id'),'my_items'=>true, 'vname' => 'LBL_CURRENT_USER_FILTER', 'type' => 'bool'),
30
+        'assigned_user_id'=> array('query_type'=>'default'),
31 31
 	    
32
-		//Range Search Support 
33
-	   'range_date_entered' => array ('query_type' => 'default', 'enable_range_search' => true, 'is_date_field' => true),
34
-	   'start_range_date_entered' => array ('query_type' => 'default', 'enable_range_search' => true, 'is_date_field' => true),
35
-	   'end_range_date_entered' => array ('query_type' => 'default', 'enable_range_search' => true, 'is_date_field' => true),
36
-	   'range_date_modified' => array ('query_type' => 'default', 'enable_range_search' => true, 'is_date_field' => true),
37
-	   'start_range_date_modified' => array ('query_type' => 'default', 'enable_range_search' => true, 'is_date_field' => true),
38
-       'end_range_date_modified' => array ('query_type' => 'default', 'enable_range_search' => true, 'is_date_field' => true),	
39
-	    //Range Search Support 		
40
-	);
32
+        //Range Search Support 
33
+        'range_date_entered' => array ('query_type' => 'default', 'enable_range_search' => true, 'is_date_field' => true),
34
+        'start_range_date_entered' => array ('query_type' => 'default', 'enable_range_search' => true, 'is_date_field' => true),
35
+        'end_range_date_entered' => array ('query_type' => 'default', 'enable_range_search' => true, 'is_date_field' => true),
36
+        'range_date_modified' => array ('query_type' => 'default', 'enable_range_search' => true, 'is_date_field' => true),
37
+        'start_range_date_modified' => array ('query_type' => 'default', 'enable_range_search' => true, 'is_date_field' => true),
38
+        'end_range_date_modified' => array ('query_type' => 'default', 'enable_range_search' => true, 'is_date_field' => true),	
39
+        //Range Search Support 		
40
+    );
41 41
 ?>
Please login to merge, or discard this patch.
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
1 1
 <?php
2
-if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
2
+if (!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
3 3
 /**
4 4
  * Advanced OpenReports, SugarCRM Reporting.
5 5
  * @package Advanced OpenReports for SugarCRM
@@ -24,18 +24,18 @@  discard block
 block discarded – undo
24 24
  */
25 25
 
26 26
 $searchFields['AOR_Reports'] = 
27
-	array (
28
-		'name' => array( 'query_type'=>'default'),
29
-		'current_user_only'=> array('query_type'=>'default','db_field'=>array('assigned_user_id'),'my_items'=>true, 'vname' => 'LBL_CURRENT_USER_FILTER', 'type' => 'bool'),
27
+	array(
28
+		'name' => array('query_type'=>'default'),
29
+		'current_user_only'=> array('query_type'=>'default', 'db_field'=>array('assigned_user_id'), 'my_items'=>true, 'vname' => 'LBL_CURRENT_USER_FILTER', 'type' => 'bool'),
30 30
 		'assigned_user_id'=> array('query_type'=>'default'),
31 31
 	    
32 32
 		//Range Search Support 
33
-	   'range_date_entered' => array ('query_type' => 'default', 'enable_range_search' => true, 'is_date_field' => true),
34
-	   'start_range_date_entered' => array ('query_type' => 'default', 'enable_range_search' => true, 'is_date_field' => true),
35
-	   'end_range_date_entered' => array ('query_type' => 'default', 'enable_range_search' => true, 'is_date_field' => true),
36
-	   'range_date_modified' => array ('query_type' => 'default', 'enable_range_search' => true, 'is_date_field' => true),
37
-	   'start_range_date_modified' => array ('query_type' => 'default', 'enable_range_search' => true, 'is_date_field' => true),
38
-       'end_range_date_modified' => array ('query_type' => 'default', 'enable_range_search' => true, 'is_date_field' => true),	
33
+	   'range_date_entered' => array('query_type' => 'default', 'enable_range_search' => true, 'is_date_field' => true),
34
+	   'start_range_date_entered' => array('query_type' => 'default', 'enable_range_search' => true, 'is_date_field' => true),
35
+	   'end_range_date_entered' => array('query_type' => 'default', 'enable_range_search' => true, 'is_date_field' => true),
36
+	   'range_date_modified' => array('query_type' => 'default', 'enable_range_search' => true, 'is_date_field' => true),
37
+	   'start_range_date_modified' => array('query_type' => 'default', 'enable_range_search' => true, 'is_date_field' => true),
38
+       'end_range_date_modified' => array('query_type' => 'default', 'enable_range_search' => true, 'is_date_field' => true),	
39 39
 	    //Range Search Support 		
40 40
 	);
41 41
 ?>
Please login to merge, or discard this patch.
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,7 @@
 block discarded – undo
1 1
 <?php
2
-if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
2
+if(!defined('sugarEntry') || !sugarEntry) {
3
+    die('Not A Valid Entry Point');
4
+}
3 5
 /*********************************************************************************
4 6
  * SugarCRM Community Edition is a customer relationship management program developed by
5 7
  * SugarCRM, Inc. Copyright (C) 2004-2013 SugarCRM Inc.
Please login to merge, or discard this patch.
modules/AOR_Reports/metadata/detailviewdefs.php 2 patches
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -29,13 +29,13 @@  discard block
 block discarded – undo
29 29
             'EDIT',
30 30
             'DUPLICATE',
31 31
             'DELETE',
32
-            array (
32
+            array(
33 33
                 'customCode' => '<input type="button" class="button" id="download_csv_button_old" value="{$MOD.LBL_EXPORT}">',
34 34
             ),
35
-            array (
35
+            array(
36 36
                 'customCode' => '<input type="button" class="button" id="download_pdf_button_old" value="{$MOD.LBL_DOWNLOAD_PDF}">',
37 37
             ),
38
-            array (
38
+            array(
39 39
                 'customCode' => '<input type="button" class="button" onClick="openProspectPopup();" value="{$MOD.LBL_ADD_TO_PROSPECT_LIST}">',
40 40
             ),
41 41
         ),
@@ -50,37 +50,37 @@  discard block
 block discarded – undo
50 50
         array('file'=>'modules/AOR_Reports/AOR_Report.js'),
51 51
     ),
52 52
     'tabDefs' =>
53
-        array (
53
+        array(
54 54
             'DEFAULT' =>
55
-                array (
55
+                array(
56 56
                     'newTab' => false,
57 57
                     'panelDefault' => 'collapsed',
58 58
                 ),
59 59
         ),
60 60
 ),
61 61
 
62
-'panels' =>array (
62
+'panels' =>array(
63 63
     'default' =>
64
-    array (
65
-  array (
64
+    array(
65
+  array(
66 66
     'name',
67 67
     'assigned_user_name',
68 68
   ),
69 69
 
70
-  array (
71
-	array (
70
+  array(
71
+	array(
72 72
       'name' => 'date_entered',
73 73
       'customCode' => '{$fields.date_entered.value} {$APP.LBL_BY} {$fields.created_by_name.value}',
74 74
       'label' => 'LBL_DATE_ENTERED',
75 75
     ),
76
-    array (
76
+    array(
77 77
       'name' => 'date_modified',
78 78
       'customCode' => '{$fields.date_modified.value} {$APP.LBL_BY} {$fields.modified_by_name.value}',
79 79
       'label' => 'LBL_DATE_MODIFIED',
80 80
     ),
81 81
   ),
82 82
 
83
-  array (
83
+  array(
84 84
     'description',
85 85
   ),
86 86
     ),
Please login to merge, or discard this patch.
Indentation   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -62,27 +62,27 @@
 block discarded – undo
62 62
 'panels' =>array (
63 63
     'default' =>
64 64
     array (
65
-  array (
65
+    array (
66 66
     'name',
67 67
     'assigned_user_name',
68
-  ),
68
+    ),
69 69
 
70
-  array (
71
-	array (
72
-      'name' => 'date_entered',
73
-      'customCode' => '{$fields.date_entered.value} {$APP.LBL_BY} {$fields.created_by_name.value}',
74
-      'label' => 'LBL_DATE_ENTERED',
70
+    array (
71
+    array (
72
+        'name' => 'date_entered',
73
+        'customCode' => '{$fields.date_entered.value} {$APP.LBL_BY} {$fields.created_by_name.value}',
74
+        'label' => 'LBL_DATE_ENTERED',
75 75
     ),
76 76
     array (
77
-      'name' => 'date_modified',
78
-      'customCode' => '{$fields.date_modified.value} {$APP.LBL_BY} {$fields.modified_by_name.value}',
79
-      'label' => 'LBL_DATE_MODIFIED',
77
+        'name' => 'date_modified',
78
+        'customCode' => '{$fields.date_modified.value} {$APP.LBL_BY} {$fields.modified_by_name.value}',
79
+        'label' => 'LBL_DATE_MODIFIED',
80
+    ),
80 81
     ),
81
-  ),
82 82
 
83
-  array (
83
+    array (
84 84
     'description',
85
-  ),
85
+    ),
86 86
     ),
87 87
 )
88 88
 );
Please login to merge, or discard this patch.
modules/AOR_Reports/metadata/quickcreatedefs.php 2 patches
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -31,15 +31,15 @@
 block discarded – undo
31 31
                                             ),
32 32
                                             
33 33
                                             
34
- 'panels' =>array (
35
-  'default' => 
36
-  array (
34
+    'panels' =>array (
35
+    'default' => 
36
+    array (
37 37
     
38 38
     array (
39
-      'name',
40
-      'assigned_user_name',
39
+        'name',
40
+        'assigned_user_name',
41
+    ),
41 42
     ),
42
-  ),
43 43
                                                     
44 44
 ),
45 45
                         
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -31,11 +31,11 @@
 block discarded – undo
31 31
                                             ),
32 32
                                             
33 33
                                             
34
- 'panels' =>array (
34
+ 'panels' =>array(
35 35
   'default' => 
36
-  array (
36
+  array(
37 37
     
38
-    array (
38
+    array(
39 39
       'name',
40 40
       'assigned_user_name',
41 41
     ),
Please login to merge, or discard this patch.