Passed
Push — scrutinizer-code-quality ( eedb15...27193c )
by Adam
54:15 queued 15s
created
include/generic/SugarWidgets/SugarWidgetSubPanelActivitiesStatusField.php 1 patch
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
  * SugarCRM Community Edition is a customer relationship management program developed by
5 5
  * SugarCRM, Inc. Copyright (C) 2004-2013 SugarCRM Inc.
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
 		
54 54
 		$module = empty($layout_def['module']) ? '' : $layout_def['module'];
55 55
 		
56
-		if(isset($layout_def['varname']))
56
+		if (isset($layout_def['varname']))
57 57
 		{
58 58
 			$key = strtoupper($layout_def['varname']);
59 59
 		}
Please login to merge, or discard this patch.
generic/SugarWidgets/SugarWidgetSubPanelTopScheduleMeetingButton.php 1 patch
Spacing   +27 added lines, -27 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.
@@ -50,15 +50,15 @@  discard block
 block discarded – undo
50 50
 		global $app_strings;
51 51
 		global $currentModule;
52 52
 
53
-		$this->module="Meetings";
53
+		$this->module = "Meetings";
54 54
 		$this->subpanelDiv = "activities";
55 55
 
56 56
 		// Create the additional form fields with real values if they were not passed in
57
-		if(empty($additionalFormFields) && $this->additional_form_fields)
57
+		if (empty($additionalFormFields) && $this->additional_form_fields)
58 58
 		{
59
-			foreach($this->additional_form_fields as $key=>$value)
59
+			foreach ($this->additional_form_fields as $key=>$value)
60 60
 			{
61
-				if(!empty($defines['focus']->$value))
61
+				if (!empty($defines['focus']->$value))
62 62
 				{
63 63
 					$additionalFormFields[$key] = $defines['focus']->$value;
64 64
 				}
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
 			}
70 70
 		}
71 71
 
72
-		if(!empty($this->module))
72
+		if (!empty($this->module))
73 73
 		{
74 74
 			$defines['child_module_name'] = $this->module;
75 75
 		}
@@ -78,45 +78,45 @@  discard block
 block discarded – undo
78 78
 			$defines['child_module_name'] = $defines['module'];
79 79
 		}
80 80
 
81
-		if(!empty($this->subpanelDiv))
81
+		if (!empty($this->subpanelDiv))
82 82
 		{
83 83
 			$defines['subpanelDiv'] = $this->subpanelDiv;
84 84
 		}
85 85
 
86
-		$defines['parent_bean_name'] = get_class( $defines['focus']);
86
+		$defines['parent_bean_name'] = get_class($defines['focus']);
87 87
 
88
-		$form = 'form' . $defines['child_module_name'];
89
-		$button = '<form onsubmit="return SUGAR.subpanelUtils.sendAndRetrieve(this.id, \'subpanel_' . strtolower($defines['subpanelDiv']) . '\', \'' . addslashes($app_strings['LBL_LOADING']) . '\');" action="index.php" method="post" name="form" id="form' . $form . "\">\n";
88
+		$form = 'form'.$defines['child_module_name'];
89
+		$button = '<form onsubmit="return SUGAR.subpanelUtils.sendAndRetrieve(this.id, \'subpanel_'.strtolower($defines['subpanelDiv']).'\', \''.addslashes($app_strings['LBL_LOADING']).'\');" action="index.php" method="post" name="form" id="form'.$form."\">\n";
90 90
 
91 91
 		//module_button is used to override the value of module name
92 92
 		$button .= "<input type='hidden' name='target_module' value='".$defines['child_module_name']."'>\n";
93 93
 		$button .= "<input type='hidden' name='".strtolower($defines['parent_bean_name'])."_id' value='".$defines['focus']->id."'>\n";
94 94
 
95
-		if(isset($defines['focus']->name))
95
+		if (isset($defines['focus']->name))
96 96
 		{
97 97
 			$button .= "<input type='hidden' name='".strtolower($defines['parent_bean_name'])."_name' value='".$defines['focus']->name."'>";
98 98
 		}
99 99
 
100 100
 		$button .= '<input type="hidden" name="to_pdf" value="true" />';
101 101
         $button .= '<input type="hidden" name="tpl" value="QuickCreate.tpl" />';
102
-		$button .= '<input type="hidden" name="return_module" value="' . $currentModule . "\" />\n";
103
-		$button .= '<input type="hidden" name="return_action" value="' . $defines['action'] . "\" />\n";
104
-		$button .= '<input type="hidden" name="return_id" value="' . $defines['focus']->id . "\" />\n";
102
+		$button .= '<input type="hidden" name="return_module" value="'.$currentModule."\" />\n";
103
+		$button .= '<input type="hidden" name="return_action" value="'.$defines['action']."\" />\n";
104
+		$button .= '<input type="hidden" name="return_id" value="'.$defines['focus']->id."\" />\n";
105 105
 		$button .= '<input type="hidden" name="record" value="" />';
106 106
 
107 107
 		// TODO: move this out and get $additionalFormFields working properly
108
-		if(empty($additionalFormFields['parent_type']))
108
+		if (empty($additionalFormFields['parent_type']))
109 109
 		{
110
-			if($defines['focus']->object_name=='Contact') {
110
+			if ($defines['focus']->object_name == 'Contact') {
111 111
 				$additionalFormFields['parent_type'] = 'Accounts';
112 112
 			}
113 113
 			else {
114 114
 				$additionalFormFields['parent_type'] = $defines['focus']->module_dir;
115 115
 			}
116 116
 		}
117
-		if(empty($additionalFormFields['parent_name']))
117
+		if (empty($additionalFormFields['parent_name']))
118 118
 		{
119
-			if($defines['focus']->object_name=='Contact') {
119
+			if ($defines['focus']->object_name == 'Contact') {
120 120
 				$additionalFormFields['parent_name'] = $defines['focus']->account_name;
121 121
 				$additionalFormFields['account_name'] = $defines['focus']->account_name;
122 122
 			}
@@ -124,9 +124,9 @@  discard block
 block discarded – undo
124 124
 				$additionalFormFields['parent_name'] = $defines['focus']->name;
125 125
 			}
126 126
 		}
127
-		if(empty($additionalFormFields['parent_id']))
127
+		if (empty($additionalFormFields['parent_id']))
128 128
 		{
129
-			if($defines['focus']->object_name=='Contact') {
129
+			if ($defines['focus']->object_name == 'Contact') {
130 130
 				$additionalFormFields['parent_id'] = $defines['focus']->account_id;
131 131
 				$additionalFormFields['account_id'] = $defines['focus']->account_id;
132 132
 			}
@@ -135,16 +135,16 @@  discard block
 block discarded – undo
135 135
 			}
136 136
 		}
137 137
 
138
-		$button .= '<input type="hidden" name="action" value="SubpanelCreates" />' . "\n";
139
-		$button .= '<input type="hidden" name="module" value="Home" />' . "\n";
140
-		$button .= '<input type="hidden" name="target_action" value="QuickCreate" />' . "\n";
138
+		$button .= '<input type="hidden" name="action" value="SubpanelCreates" />'."\n";
139
+		$button .= '<input type="hidden" name="module" value="Home" />'."\n";
140
+		$button .= '<input type="hidden" name="target_action" value="QuickCreate" />'."\n";
141 141
 
142 142
 		// fill in additional form fields for all but action
143
-		foreach($additionalFormFields as $key => $value)
143
+		foreach ($additionalFormFields as $key => $value)
144 144
 		{
145
-			if($key != 'action')
145
+			if ($key != 'action')
146 146
 			{
147
-				$button .= '<input type="hidden" name="' . $key . '" value="' . $value . '" />' . "\n";
147
+				$button .= '<input type="hidden" name="'.$key.'" value="'.$value.'" />'."\n";
148 148
 			}
149 149
 		}
150 150
 		$button .= getVersionedScript('include/SugarFields/Fields/Datetimecombo/Datetimecombo.js')."\n";
@@ -156,7 +156,7 @@  discard block
 block discarded – undo
156 156
 	function display($defines, $additionalFormFields = null, $nonbutton = false)
157 157
 	{
158 158
 	    $focus = new Meeting;
159
-		if ( !$focus->ACLAccess('EditView') ) {
159
+		if (!$focus->ACLAccess('EditView')) {
160 160
 		    return '';
161 161
 	    }
162 162
 
Please login to merge, or discard this patch.
include/generic/SugarWidgets/SugarWidgetSubPanelCloseButton.php 1 patch
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
  * SugarCRM Community Edition is a customer relationship management program developed by
5 5
  * SugarCRM, Inc. Copyright (C) 2004-2013 SugarCRM Inc.
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
 		// calls and meetings are held.
59 59
 		$new_status = 'Held';
60 60
 		
61
-		switch($module_name)
61
+		switch ($module_name)
62 62
 		{
63 63
 			case 'Tasks':
64 64
 				$new_status = 'Completed';
Please login to merge, or discard this patch.
include/generic/SugarWidgets/SugarWidgetSubPanelDeleteButton.php 1 patch
Spacing   +4 added lines, -4 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.
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
 		// calls and meetings are held.
58 58
 		$new_status = 'Held';
59 59
 
60
-		switch($module_name)
60
+		switch ($module_name)
61 61
 		{
62 62
 			case 'Tasks':
63 63
 				$new_status = 'Completed';
@@ -65,12 +65,12 @@  discard block
 block discarded – undo
65 65
 		}
66 66
 		$subpanel = $layout_def['subpanel_id'];
67 67
 		if (isset($layout_def['linked_field_set']) && !empty($layout_def['linked_field_set'])) {
68
-			$linked_field= $layout_def['linked_field_set'] ;
68
+			$linked_field = $layout_def['linked_field_set'];
69 69
 		} else {
70 70
 			$linked_field = $layout_def['linked_field'];
71 71
 		}
72 72
 		$refresh_page = 0;
73
-		if(!empty($layout_def['refresh_page'])){
73
+		if (!empty($layout_def['refresh_page'])) {
74 74
 			$refresh_page = 1;
75 75
 		}
76 76
 
Please login to merge, or discard this patch.
include/generic/SugarWidgets/SugarWidgetFieldname.php 1 patch
Spacing   +29 added lines, -29 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.
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
 
55 55
 	function displayList(&$layout_def)
56 56
 	{
57
-		if(empty($layout_def['column_key']))
57
+		if (empty($layout_def['column_key']))
58 58
 		{
59 59
 			return $this->displayListPlain($layout_def);
60 60
 		}
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
 		$key = $this->_get_column_alias($layout_def);
66 66
 		$key = strtoupper($key);
67 67
 
68
-		if(empty($layout_def['fields'][$key]))
68
+		if (empty($layout_def['fields'][$key]))
69 69
 		{
70 70
 		  $layout_def['name'] = $name;
71 71
 			return $this->displayListPlain($layout_def);
@@ -91,7 +91,7 @@  discard block
 block discarded – undo
91 91
             $field_type = $field_def['type'];
92 92
             $str .= "</a>";
93 93
             if ($field_name == 'name')
94
-                $str .= "&nbsp;" .SugarThemeRegistry::current()->getImage("edit_inline","border='0' alt='Edit Layout' align='bottom' onClick='SUGAR.reportsInlineEdit.inlineEdit(\"$div_id\",\"$value\",\"$module\",\"$record\",\"$field_name\",\"$field_type\");'");
94
+                $str .= "&nbsp;".SugarThemeRegistry::current()->getImage("edit_inline", "border='0' alt='Edit Layout' align='bottom' onClick='SUGAR.reportsInlineEdit.inlineEdit(\"$div_id\",\"$value\",\"$module\",\"$record\",\"$field_name\",\"$field_type\");'");
95 95
             $str .= "</div>";
96 96
         }
97 97
 		return $str;
@@ -99,7 +99,7 @@  discard block
 block discarded – undo
99 99
 
100 100
 	function _get_normal_column_select($layout_def)
101 101
 	{
102
-        if ( isset($this->reporter->all_fields) ) {
102
+        if (isset($this->reporter->all_fields)) {
103 103
             $field_def = $this->reporter->all_fields[$layout_def['column_key']];
104 104
         } else {
105 105
             $field_def = array();
@@ -111,9 +111,9 @@  discard block
 block discarded – undo
111 111
 		}
112 112
 
113 113
 		//	 'fields' are the two fields to concatenate to create the name.
114
-		if ( ! empty($layout_def['table_alias'])) {
114
+		if (!empty($layout_def['table_alias'])) {
115 115
 		    $alias = $this->reporter->db->concat($layout_def['table_alias'], $field_def['fields']);
116
-		} elseif (! empty($layout_def['name'])) {
116
+		} elseif (!empty($layout_def['name'])) {
117 117
 			$alias = $layout_def['name'];
118 118
 		} else {
119 119
 			$alias = "*";
@@ -126,14 +126,14 @@  discard block
 block discarded – undo
126 126
 	{
127 127
 		global $locale, $current_user;
128 128
 
129
-        if ( isset($this->reporter->all_fields) ) {
129
+        if (isset($this->reporter->all_fields)) {
130 130
             $field_def = $this->reporter->all_fields[$layout_def['column_key']];
131 131
         } else {
132 132
             $field_def = array();
133 133
         }
134 134
 
135 135
         //	 'fields' are the two fields to concatenate to create the name
136
-        if(!isset($field_def['fields']))
136
+        if (!isset($field_def['fields']))
137 137
         {
138 138
 			return $this->_get_normal_column_select($layout_def);
139 139
         }
@@ -144,22 +144,22 @@  discard block
 block discarded – undo
144 144
 			return parent::_get_column_select($layout_def);
145 145
 		}
146 146
 
147
-		if ( ! empty($layout_def['table_alias'])) {
147
+		if (!empty($layout_def['table_alias'])) {
148 148
 		    $comps = preg_split("/([fl])/", $localeNameFormat, null, PREG_SPLIT_DELIM_CAPTURE);
149 149
 		    $name = array();
150
-		    foreach($comps as $val) {
151
-		        if($val == 'f') {
150
+		    foreach ($comps as $val) {
151
+		        if ($val == 'f') {
152 152
 		            $name[] = $this->reporter->db->convert($layout_def['table_alias'].".".$field_def['fields'][0], 'IFNULL', array("''"));
153
-		        } elseif($val == 'l') {
153
+		        } elseif ($val == 'l') {
154 154
 		            $name[] = $this->reporter->db->convert($layout_def['table_alias'].".".$field_def['fields'][1], 'IFNULL', array("''"));
155 155
 		        } else {
156
-		            if(!empty($val)) {
156
+		            if (!empty($val)) {
157 157
 		                $name[] = $this->reporter->db->quoted($val);
158 158
 		            }
159 159
 		        }
160 160
 		    }
161 161
 		    $alias = $this->reporter->db->convert($name, "CONCAT");
162
-		} elseif (! empty($layout_def['name']))	{
162
+		} elseif (!empty($layout_def['name'])) {
163 163
 			$alias = $layout_def['name'];
164 164
 		} else {
165 165
 			$alias = "*";
@@ -175,7 +175,7 @@  discard block
 block discarded – undo
175 175
 		$layout_def['type'] = 'id';
176 176
 		$input_name0 = $layout_def['input_name0'];
177 177
 
178
-		if ( is_array($layout_def['input_name0']))
178
+		if (is_array($layout_def['input_name0']))
179 179
 		{
180 180
 			$input_name0 = $layout_def['input_name0'][0];
181 181
 		}
@@ -195,7 +195,7 @@  discard block
 block discarded – undo
195 195
 		$layout_def['type'] = 'id';
196 196
 		$input_name0 = $layout_def['input_name0'];
197 197
 
198
-		if ( is_array($layout_def['input_name0']))
198
+		if (is_array($layout_def['input_name0']))
199 199
 		{
200 200
 			$input_name0 = $layout_def['input_name0'][0];
201 201
 		}
@@ -212,23 +212,23 @@  discard block
 block discarded – undo
212 212
 	function queryFilterone_of($layout_def, $rename_columns = true)
213 213
 	{
214 214
 
215
-        if($rename_columns) { // this was a hack to get reports working, sugarwidgets should not be renaming $name!
215
+        if ($rename_columns) { // this was a hack to get reports working, sugarwidgets should not be renaming $name!
216 216
     		$layout_def['name'] = 'id';
217 217
     		$layout_def['type'] = 'id';
218 218
         }
219 219
 		$arr = array();
220 220
 
221
-		foreach($layout_def['input_name0'] as $value)
221
+		foreach ($layout_def['input_name0'] as $value)
222 222
 		{
223 223
 			if ($value == 'Current User') {
224 224
 				global $current_user;
225
-				array_push($arr,$this->reporter->db->quoted($current_user->id));
225
+				array_push($arr, $this->reporter->db->quoted($current_user->id));
226 226
 			}
227 227
 			else
228
-				array_push($arr,$this->reporter->db->quoted($value));
228
+				array_push($arr, $this->reporter->db->quoted($value));
229 229
 		}
230 230
 
231
-		$str = implode(",",$arr);
231
+		$str = implode(",", $arr);
232 232
 
233 233
 		return SugarWidgetFieldid::_get_column_select($layout_def)." IN (".$str.")\n";
234 234
 	}
@@ -236,34 +236,34 @@  discard block
 block discarded – undo
236 236
 	function queryFilternot_one_of($layout_def, $rename_columns = true)
237 237
 	{
238 238
 
239
-        if($rename_columns) { // this was a hack to get reports working, sugarwidgets should not be renaming $name!
239
+        if ($rename_columns) { // this was a hack to get reports working, sugarwidgets should not be renaming $name!
240 240
     		$layout_def['name'] = 'id';
241 241
     		$layout_def['type'] = 'id';
242 242
         }
243 243
 		$arr = array();
244 244
 
245
-		foreach($layout_def['input_name0'] as $value)
245
+		foreach ($layout_def['input_name0'] as $value)
246 246
 		{
247 247
 			if ($value == 'Current User') {
248 248
 				global $current_user;
249
-				array_push($arr,$this->reporter->db->quoted($current_user->id));
249
+				array_push($arr, $this->reporter->db->quoted($current_user->id));
250 250
 			}
251 251
 			else
252
-				array_push($arr,$this->reporter->db->quoted($value));
252
+				array_push($arr, $this->reporter->db->quoted($value));
253 253
 		}
254 254
 
255
-		$str = implode(",",$arr);
255
+		$str = implode(",", $arr);
256 256
 
257 257
 		return SugarWidgetFieldid::_get_column_select($layout_def)." NOT IN (".$str.")\n";
258 258
 	}
259 259
 
260 260
 	function &queryGroupBy($layout_def)
261 261
 	{
262
-        if($layout_def['name'] == 'full_name') {
262
+        if ($layout_def['name'] == 'full_name') {
263 263
              $layout_def['name'] = 'id';
264 264
              $layout_def['type'] = 'id';
265 265
 
266
-             $group_by =  SugarWidgetFieldid::_get_column_select($layout_def)."\n";
266
+             $group_by = SugarWidgetFieldid::_get_column_select($layout_def)."\n";
267 267
         } else {
268 268
             // group by clause for user name passes through here.
269 269
              $group_by = $this->_get_column_select($layout_def)."\n";
Please login to merge, or discard this patch.
include/generic/SugarWidgets/SugarWidgetFieldurl.php 1 patch
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
  * SugarCRM Community Edition is a customer relationship management program developed by
5 5
  * SugarCRM, Inc. Copyright (C) 2004-2013 SugarCRM Inc.
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
     function displayList($layout_def) 
49 49
     {
50 50
         $urlValue = trim($this->_get_list_value($layout_def));
51
-        return '<a target="_blank" href="' . $urlValue . '">' . $urlValue . "</a>";
51
+        return '<a target="_blank" href="'.$urlValue.'">'.$urlValue."</a>";
52 52
     }
53 53
     
54 54
 }
Please login to merge, or discard this patch.
include/generic/SugarWidgets/SugarWidgetFieldimage.php 1 patch
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
  * SugarCRM Community Edition is a customer relationship management program developed by
5 5
  * SugarCRM, Inc. Copyright (C) 2004-2013 SugarCRM Inc.
@@ -45,6 +45,6 @@  discard block
 block discarded – undo
45 45
 	function displayListPlain($layout_def) {
46 46
 		$value = $this->_get_list_value($layout_def);
47 47
 		return "<a href=\"javascript:SUGAR.image.lightbox('index.php?entryPoint=download&id=$value&type=SugarFieldImage&isTempFile=1')\">"
48
-		       . translate("LBL_VIEW_IMAGE") . '</a>';
48
+		       . translate("LBL_VIEW_IMAGE").'</a>';
49 49
 	}
50 50
 }
51 51
\ No newline at end of file
Please login to merge, or discard this patch.
include/generic/SugarWidgets/SugarWidgetFieldcurrency_id.php 1 patch
Spacing   +3 added lines, -3 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.
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
         {
82 82
             $currency = new Currency();
83 83
             $currency->retrieve($value);
84
-            $currencies[$value] = $currency->symbol . ' ' . $currency->iso4217;
84
+            $currencies[$value] = $currency->symbol.' '.$currency->iso4217;
85 85
         }
86 86
         return $currencies[$value];
87 87
     }
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
         $list = array();
99 99
         foreach ($tmpList as $bean)
100 100
         {
101
-            $list[$bean->id] = $bean->symbol . ' ' . $bean->iso4217;
101
+            $list[$bean->id] = $bean->symbol.' '.$bean->iso4217;
102 102
         }
103 103
 
104 104
         $field_def = $this->reporter->all_fields[$layout_def['column_key']];
Please login to merge, or discard this patch.
include/generic/SugarWidgets/SugarWidgetSubPanelLoadSignedButton.php 1 patch
Spacing   +17 added lines, -17 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.
@@ -55,27 +55,27 @@  discard block
 block discarded – undo
55 55
 		global $app_strings;
56 56
 		
57 57
 
58
-		$href = 'index.php?module=' . 'Documents'
59
-			. '&action=' . 'EditView'
60
-			. '&record=' . $layout_def['fields']['ID']
61
-			. '&return_module=' . $_REQUEST['module']
62
-			. '&return_action=' . 'DetailView'
63
-			. '&return_id=' . $_REQUEST['record']
64
-			. '&load_signed_id=' . $layout_def['fields']['LINKED_ID']
65
-			. '&parent_id=' . $_REQUEST['record']			
66
-			. '&parent_name=' . $layout_def['fields']['CONTRACT_NAME']			
67
-			. '&parent_type=' . $_REQUEST['module']			
68
-			. '&selected_revision_id=' . $layout_def['fields']['SELECTED_REVISION_ID']	
58
+		$href = 'index.php?module='.'Documents'
59
+			. '&action='.'EditView'
60
+			. '&record='.$layout_def['fields']['ID']
61
+			. '&return_module='.$_REQUEST['module']
62
+			. '&return_action='.'DetailView'
63
+			. '&return_id='.$_REQUEST['record']
64
+			. '&load_signed_id='.$layout_def['fields']['LINKED_ID']
65
+			. '&parent_id='.$_REQUEST['record']			
66
+			. '&parent_name='.$layout_def['fields']['CONTRACT_NAME']			
67
+			. '&parent_type='.$_REQUEST['module']			
68
+			. '&selected_revision_id='.$layout_def['fields']['SELECTED_REVISION_ID']	
69 69
 			;
70 70
 
71
-		$edit_icon_html = SugarThemeRegistry::current()->getImage( 'loadSignedDocument','align="absmiddle" border="0"',null,null,'.gif',$app_strings['LNK_LOAD_SIGNED']);
71
+		$edit_icon_html = SugarThemeRegistry::current()->getImage('loadSignedDocument', 'align="absmiddle" border="0"', null, null, '.gif', $app_strings['LNK_LOAD_SIGNED']);
72 72
 		//if the contract state is executed or document is not a template hide this action.
73
-		if ((!empty($layout_def['fields']['CONTRACT_STATUS']) && $layout_def['fields']['CONTRACT_STATUS']=='executed') or
74
-			empty($layout_def['fields']['IS_TEMPLATE']) or $layout_def['fields']['IS_TEMPLATE']==0) {
73
+		if ((!empty($layout_def['fields']['CONTRACT_STATUS']) && $layout_def['fields']['CONTRACT_STATUS'] == 'executed') or
74
+			empty($layout_def['fields']['IS_TEMPLATE']) or $layout_def['fields']['IS_TEMPLATE'] == 0) {
75 75
 			return "";
76 76
 		}
77
-		return '<a href="' . $href . '"' . "title ='". $app_strings['LNK_LOAD_SIGNED_TOOLTIP']."'"
78
-			. 'class="listViewTdToolsS1">' . $edit_icon_html . '&nbsp;' . $app_strings['LNK_LOAD_SIGNED'] .'</a>&nbsp;';
77
+		return '<a href="'.$href.'"'."title ='".$app_strings['LNK_LOAD_SIGNED_TOOLTIP']."'"
78
+			. 'class="listViewTdToolsS1">'.$edit_icon_html.'&nbsp;'.$app_strings['LNK_LOAD_SIGNED'].'</a>&nbsp;';
79 79
 	}
80 80
 		
81 81
 }
Please login to merge, or discard this patch.