Completed
Push — develop ( 7c1bda...edae1e )
by Adam
18:38 queued 03:14
created
modules/jjwg_Maps/views/view.geocoding_test.php 1 patch
Braces   +8 added lines, -5 removed lines patch added patch discarded remove patch
@@ -1,6 +1,8 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
3
+if(!defined('sugarEntry') || !sugarEntry) {
4
+    die('Not A Valid Entry Point');
5
+}
4 6
 
5 7
 class Jjwg_MapsViewGeocoding_Test extends SugarView {
6 8
 
@@ -15,8 +17,7 @@  discard block
 block discarded – undo
15 17
         $deprecatedMessage = 'PHP4 Style Constructors are deprecated and will be remove in 7.8, please update your code';
16 18
         if(isset($GLOBALS['log'])) {
17 19
             $GLOBALS['log']->deprecated($deprecatedMessage);
18
-        }
19
-        else {
20
+        } else {
20 21
             trigger_error($deprecatedMessage, E_USER_DEPRECATED);
21 22
         }
22 23
         self::__construct();
@@ -25,8 +26,10 @@  discard block
 block discarded – undo
25 26
 
26 27
 	function display() {
27 28
 
28
-        if (!isset($_REQUEST['geocoding_address'])) $_REQUEST['geocoding_address'] = '';
29
-?>
29
+        if (!isset($_REQUEST['geocoding_address'])) {
30
+            $_REQUEST['geocoding_address'] = '';
31
+        }
32
+        ?>
30 33
 
31 34
 <div class="moduleTitle"><h2><?php echo $GLOBALS['mod_strings']['LBL_MAP_ADDRESS_TEST']; ?></h2><div class="clear"></div></div>
32 35
 <div class="clear"></div>
Please login to merge, or discard this patch.
modules/jjwg_Maps/views/view.config.php 1 patch
Braces   +46 added lines, -17 removed lines patch added patch discarded remove patch
@@ -1,6 +1,8 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-if (!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
3
+if (!defined('sugarEntry') || !sugarEntry) {
4
+    die('Not A Valid Entry Point');
5
+}
4 6
 
5 7
 class Jjwg_MapsViewConfig extends SugarView {
6 8
 
@@ -15,8 +17,7 @@  discard block
 block discarded – undo
15 17
         $deprecatedMessage = 'PHP4 Style Constructors are deprecated and will be remove in 7.8, please update your code';
16 18
         if(isset($GLOBALS['log'])) {
17 19
             $GLOBALS['log']->deprecated($deprecatedMessage);
18
-        }
19
-        else {
20
+        } else {
20 21
             trigger_error($deprecatedMessage, E_USER_DEPRECATED);
21 22
         }
22 23
         self::__construct();
@@ -128,7 +129,9 @@  discard block
 block discarded – undo
128 129
                 name="address_type_Accounts" title="">
129 130
                 <?php foreach ($address_types_billing_or_shipping as $key=>$value) { ?>
130 131
                     <option value="<?php echo htmlspecialchars($key); ?>" <?php
131
-                    if ($key == $GLOBALS['jjwg_config']['geocode_modules_to_address_type']['Accounts']) echo 'selected="selected"';
132
+                    if ($key == $GLOBALS['jjwg_config']['geocode_modules_to_address_type']['Accounts']) {
133
+                        echo 'selected="selected"';
134
+                    }
132 135
                     ?>><?php echo htmlspecialchars($value); ?></option>
133 136
                 <?php } ?>
134 137
             </select>
@@ -145,7 +148,9 @@  discard block
 block discarded – undo
145 148
                 name="address_type_Contacts" title="">
146 149
                 <?php foreach ($address_types_primary_or_alt as $key=>$value) { ?>
147 150
                     <option value="<?php echo htmlspecialchars($key); ?>" <?php
148
-                    if ($key == $GLOBALS['jjwg_config']['geocode_modules_to_address_type']['Contacts']) echo 'selected="selected"';
151
+                    if ($key == $GLOBALS['jjwg_config']['geocode_modules_to_address_type']['Contacts']) {
152
+                        echo 'selected="selected"';
153
+                    }
149 154
                     ?>><?php echo htmlspecialchars($value); ?></option>
150 155
                 <?php } ?>
151 156
             </select>
@@ -162,7 +167,9 @@  discard block
 block discarded – undo
162 167
                 name="address_type_Leads" title="">
163 168
                 <?php foreach ($address_types_primary_or_alt as $key=>$value) { ?>
164 169
                     <option value="<?php echo htmlspecialchars($key); ?>" <?php
165
-                    if ($key == $GLOBALS['jjwg_config']['geocode_modules_to_address_type']['Leads']) echo 'selected="selected"';
170
+                    if ($key == $GLOBALS['jjwg_config']['geocode_modules_to_address_type']['Leads']) {
171
+                        echo 'selected="selected"';
172
+                    }
166 173
                     ?>><?php echo htmlspecialchars($value); ?></option>
167 174
                 <?php } ?>
168 175
             </select>
@@ -179,7 +186,9 @@  discard block
 block discarded – undo
179 186
                 name="address_type_Opportunities" title="">
180 187
                 <?php foreach ($address_types_billing_or_shipping as $key=>$value) { ?>
181 188
                     <option value="<?php echo htmlspecialchars($key); ?>" <?php
182
-                    if ($key == $GLOBALS['jjwg_config']['geocode_modules_to_address_type']['Opportunities']) echo 'selected="selected"';
189
+                    if ($key == $GLOBALS['jjwg_config']['geocode_modules_to_address_type']['Opportunities']) {
190
+                        echo 'selected="selected"';
191
+                    }
183 192
                     ?>><?php echo htmlspecialchars($value); ?></option>
184 193
                 <?php } ?>
185 194
             </select>
@@ -197,7 +206,9 @@  discard block
 block discarded – undo
197 206
                 name="address_type_Cases" title="">
198 207
                 <?php foreach ($address_types_billing_or_shipping as $key=>$value) { ?>
199 208
                     <option value="<?php echo htmlspecialchars($key); ?>" <?php
200
-                    if ($key == $GLOBALS['jjwg_config']['geocode_modules_to_address_type']['Cases']) echo 'selected="selected"';
209
+                    if ($key == $GLOBALS['jjwg_config']['geocode_modules_to_address_type']['Cases']) {
210
+                        echo 'selected="selected"';
211
+                    }
201 212
                     ?>><?php echo htmlspecialchars($value); ?></option>
202 213
                 <?php } ?>
203 214
             </select>
@@ -215,7 +226,9 @@  discard block
 block discarded – undo
215 226
                 name="address_type_Project" title="">
216 227
                 <?php foreach ($address_types_billing_or_shipping as $key=>$value) { ?>
217 228
                     <option value="<?php echo htmlspecialchars($key); ?>" <?php
218
-                    if ($key == $GLOBALS['jjwg_config']['geocode_modules_to_address_type']['Project']) echo 'selected="selected"';
229
+                    if ($key == $GLOBALS['jjwg_config']['geocode_modules_to_address_type']['Project']) {
230
+                        echo 'selected="selected"';
231
+                    }
219 232
                     ?>><?php echo htmlspecialchars($value); ?></option>
220 233
                 <?php } ?>
221 234
             </select>
@@ -233,7 +246,9 @@  discard block
 block discarded – undo
233 246
                 name="address_type_Meetings" title="">
234 247
                 <?php foreach ($address_types_flex_relate as $key=>$value) { ?>
235 248
                     <option value="<?php echo htmlspecialchars($key); ?>" <?php
236
-                    if ($key == $GLOBALS['jjwg_config']['geocode_modules_to_address_type']['Meetings']) echo 'selected="selected"';
249
+                    if ($key == $GLOBALS['jjwg_config']['geocode_modules_to_address_type']['Meetings']) {
250
+                        echo 'selected="selected"';
251
+                    }
237 252
                     ?>><?php echo htmlspecialchars($value); ?></option>
238 253
                 <?php } ?>
239 254
             </select>
@@ -249,7 +264,9 @@  discard block
 block discarded – undo
249 264
                 name="address_type_Prospects" title="">
250 265
                 <?php foreach ($address_types_primary_or_alt as $key=>$value) { ?>
251 266
                     <option value="<?php echo htmlspecialchars($key); ?>" <?php
252
-                    if ($key == $GLOBALS['jjwg_config']['geocode_modules_to_address_type']['Prospects']) echo 'selected="selected"';
267
+                    if ($key == $GLOBALS['jjwg_config']['geocode_modules_to_address_type']['Prospects']) {
268
+                        echo 'selected="selected"';
269
+                    }
253 270
                     ?>><?php echo htmlspecialchars($value); ?></option>
254 271
                 <?php } ?>
255 272
             </select>
@@ -270,7 +287,9 @@  discard block
 block discarded – undo
270 287
                 name="address_type_<?php echo $module; ?>" title="">
271 288
                 <?php foreach ($address_types_all as $key=>$value) { ?>
272 289
                     <option value="<?php echo htmlspecialchars($key); ?>" <?php
273
-                    if ($key == $GLOBALS['jjwg_config']['geocode_modules_to_address_type'][$module]) echo 'selected="selected"';
290
+                    if ($key == $GLOBALS['jjwg_config']['geocode_modules_to_address_type'][$module]) {
291
+                        echo 'selected="selected"';
292
+                    }
274 293
                     ?>><?php echo htmlspecialchars($value); ?></option>
275 294
                 <?php } ?>
276 295
             </select>
@@ -464,7 +483,9 @@  discard block
 block discarded – undo
464 483
                 name="allow_approximate_location_type" title="">
465 484
                 <?php foreach ($enabled_disabled as $key=>$value) { ?>
466 485
                     <option value="<?php echo htmlspecialchars($key); ?>" <?php
467
-                    if ($key == $enabled) echo 'selected="selected"';
486
+                    if ($key == $enabled) {
487
+                        echo 'selected="selected"';
488
+                    }
468 489
                     ?>><?php echo htmlspecialchars($value); ?>
469 490
                 <?php } ?>
470 491
             </select>
@@ -508,7 +529,9 @@  discard block
 block discarded – undo
508 529
                 name="address_cache_get_enabled" title="">
509 530
                 <?php foreach ($enabled_disabled as $key=>$value) { ?>
510 531
                     <option value="<?php echo htmlspecialchars($key); ?>" <?php
511
-                    if ($key == $enabled) echo 'selected="selected"';
532
+                    if ($key == $enabled) {
533
+                        echo 'selected="selected"';
534
+                    }
512 535
                     ?>><?php echo htmlspecialchars($value); ?>
513 536
                 <?php } ?>
514 537
             </select>
@@ -526,7 +549,9 @@  discard block
 block discarded – undo
526 549
                 name="address_cache_save_enabled" title="">
527 550
                 <?php foreach ($enabled_disabled as $key=>$value) { ?>
528 551
                     <option value="<?php echo htmlspecialchars($key); ?>" <?php
529
-                    if ($key == $enabled) echo 'selected="selected"';
552
+                    if ($key == $enabled) {
553
+                        echo 'selected="selected"';
554
+                    }
530 555
                     ?>><?php echo htmlspecialchars($value); ?>
531 556
                 <?php } ?>
532 557
             </select>
@@ -556,7 +581,9 @@  discard block
 block discarded – undo
556 581
                 name="logic_hooks_enabled" title="">
557 582
                 <?php foreach ($enabled_disabled as $key=>$value) { ?>
558 583
                     <option value="<?php echo htmlspecialchars($key); ?>" <?php
559
-                    if ($key == $enabled) echo 'selected="selected"';
584
+                    if ($key == $enabled) {
585
+                        echo 'selected="selected"';
586
+                    }
560 587
                     ?>><?php echo htmlspecialchars($value); ?>
561 588
                 <?php } ?>
562 589
             </select>
@@ -624,7 +651,9 @@  discard block
 block discarded – undo
624 651
                 name="map_default_unit_type" title="">
625 652
                 <?php foreach ($unit_types as $key=>$value) { ?>
626 653
                     <option value="<?php echo htmlspecialchars($key); ?>" <?php
627
-                    if ($key == $GLOBALS['jjwg_config']['map_default_unit_type']) echo 'selected="selected"';
654
+                    if ($key == $GLOBALS['jjwg_config']['map_default_unit_type']) {
655
+                        echo 'selected="selected"';
656
+                    }
628 657
                     ?>><?php echo htmlspecialchars($value); ?>
629 658
                 <?php } ?>
630 659
             </select>
Please login to merge, or discard this patch.
modules/Accounts/AccountsJjwg_MapsLogicHook.php 1 patch
Braces   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -2,8 +2,9 @@  discard block
 block discarded – undo
2 2
 
3 3
 // custom/modules/Accounts/AccountsJjwg_MapsLogicHook.php
4 4
 
5
-if (!defined('sugarEntry') || !sugarEntry)
5
+if (!defined('sugarEntry') || !sugarEntry) {
6 6
     die('Not A Valid Entry Point');
7
+}
7 8
 
8 9
 class AccountsJjwg_MapsLogicHook {
9 10
 
@@ -19,8 +20,7 @@  discard block
 block discarded – undo
19 20
         $deprecatedMessage = 'PHP4 Style Constructors are deprecated and will be remove in 7.8, please update your code';
20 21
         if(isset($GLOBALS['log'])) {
21 22
             $GLOBALS['log']->deprecated($deprecatedMessage);
22
-        }
23
-        else {
23
+        } else {
24 24
             trigger_error($deprecatedMessage, E_USER_DEPRECATED);
25 25
         }
26 26
         self::__construct();
Please login to merge, or discard this patch.
modules/Prospects/ProspectsJjwg_MapsLogicHook.php 1 patch
Braces   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,7 +1,8 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-if (!defined('sugarEntry') || !sugarEntry)
3
+if (!defined('sugarEntry') || !sugarEntry) {
4 4
     die('Not A Valid Entry Point');
5
+}
5 6
 
6 7
 class ProspectsJjwg_MapsLogicHook
7 8
 {
@@ -20,8 +21,7 @@  discard block
 block discarded – undo
20 21
         $deprecatedMessage = 'PHP4 Style Constructors are deprecated and will be remove in 7.8, please update your code';
21 22
         if(isset($GLOBALS['log'])) {
22 23
             $GLOBALS['log']->deprecated($deprecatedMessage);
23
-        }
24
-        else {
24
+        } else {
25 25
             trigger_error($deprecatedMessage, E_USER_DEPRECATED);
26 26
         }
27 27
         self::__construct();
Please login to merge, or discard this patch.
modules/SecurityGroups/SecurityGroupMessage.php 1 patch
Braces   +12 added lines, -8 removed lines patch added patch discarded remove patch
@@ -1,5 +1,7 @@  discard block
 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
 class SecurityGroupMessage extends Basic {
5 7
 	var $new_schema = true;
@@ -47,8 +49,7 @@  discard block
 block discarded – undo
47 49
         $deprecatedMessage = 'PHP4 Style Constructors are deprecated and will be remove in 7.8, please update your code';
48 50
         if(isset($GLOBALS['log'])) {
49 51
             $GLOBALS['log']->deprecated($deprecatedMessage);
50
-        }
51
-        else {
52
+        } else {
52 53
             trigger_error($deprecatedMessage, E_USER_DEPRECATED);
53 54
         }
54 55
         self::__construct();
@@ -106,7 +107,10 @@  discard block
 block discarded – undo
106 107
 			$securitygroup_id = null; //6.4.0
107 108
 		}
108 109
 		$message = new SecurityGroupMessage();
109
-		if(empty($text)) return; // || !$feed->ACLAccess('save', true) )return;
110
+		if(empty($text)) {
111
+		    return;
112
+		}
113
+		// || !$feed->ACLAccess('save', true) )return;
110 114
 
111 115
 		$text = strip_tags($text);
112 116
 		$message->name = '';
@@ -135,18 +139,18 @@  discard block
 block discarded – undo
135 139
 		if($weeks == 1){
136 140
 			$result = translate('LBL_TIME_LAST_WEEK','SugarFeed').' ';
137 141
 			return $result;
138
-		}else if($weeks > 1){
142
+		} else if($weeks > 1){
139 143
 			$result .= $weeks . ' '.translate('LBL_TIME_WEEKS','SugarFeed').' ';
140 144
 			if($days > 0) {
141 145
                 $result .= $days . ' '.translate('LBL_TIME_DAYS','SugarFeed').' ';
142 146
             }
143
-		}else{
147
+		} else{
144 148
 			if($days == 1){
145 149
 				$result = translate('LBL_TIME_YESTERDAY','SugarFeed').' ';
146 150
 				return $result;
147
-			}else if($days > 1){
151
+			} else if($days > 1){
148 152
 				$result .= $days . ' '. translate('LBL_TIME_DAYS','SugarFeed').' ';
149
-			}else{
153
+			} else{
150 154
 				if($hours == 1) {
151 155
                     $result .= $hours . ' '.translate('LBL_TIME_HOUR','SugarFeed').' ';
152 156
                 } else {
Please login to merge, or discard this patch.
modules/SecurityGroups/SecurityGroupUserRelationship.php 1 patch
Braces   +9 added lines, -7 removed lines patch added patch discarded remove patch
@@ -1,5 +1,7 @@  discard block
 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
 
5 7
 require_once('data/SugarBean.php');
@@ -55,8 +57,7 @@  discard block
 block discarded – undo
55 57
         $deprecatedMessage = 'PHP4 Style Constructors are deprecated and will be remove in 7.8, please update your code';
56 58
         if(isset($GLOBALS['log'])) {
57 59
             $GLOBALS['log']->deprecated($deprecatedMessage);
58
-        }
59
-        else {
60
+        } else {
60 61
             trigger_error($deprecatedMessage, E_USER_DEPRECATED);
61 62
         }
62 63
         self::__construct();
@@ -98,10 +99,11 @@  discard block
 block discarded – undo
98 99
         $query = "SELECT id, first_name, last_name, user_name FROM users ";
99 100
         $where_auto = "deleted=0";
100 101
 
101
-        if($where != "")
102
-            $query .= "where $where AND ".$where_auto;
103
-        else
104
-            $query .= "where ".$where_auto;
102
+        if($where != "") {
103
+                    $query .= "where $where AND ".$where_auto;
104
+        } else {
105
+                    $query .= "where ".$where_auto;
106
+        }
105 107
 
106 108
         $query .= " ORDER BY last_name, first_name";
107 109
 
Please login to merge, or discard this patch.
modules/AOR_Charts/AOR_Chart.php 1 patch
Braces   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -63,8 +63,7 @@  discard block
 block discarded – undo
63 63
         $deprecatedMessage = 'PHP4 Style Constructors are deprecated and will be remove in 7.8, please update your code';
64 64
         if(isset($GLOBALS['log'])) {
65 65
             $GLOBALS['log']->deprecated($deprecatedMessage);
66
-        }
67
-        else {
66
+        } else {
68 67
             trigger_error($deprecatedMessage, E_USER_DEPRECATED);
69 68
         }
70 69
         self::__construct();
@@ -226,7 +225,7 @@  discard block
 block discarded – undo
226 225
         $img = ob_get_clean();
227 226
         if($asDataURI){
228 227
             return 'data:image/png;base64,'.base64_encode($img);
229
-        }else{
228
+        } else{
230 229
             return $img;
231 230
         }
232 231
     }
@@ -359,8 +358,9 @@  discard block
 block discarded – undo
359 358
     {
360 359
         $dataArray = json_decode($chartDataValues);
361 360
         $grouping = 'grouped'; //$mainGroupField->label; //'grouped';
362
-        if(!$grouped)
363
-            $grouping='stacked';
361
+        if(!$grouped) {
362
+                    $grouping='stacked';
363
+        }
364 364
         if(!is_array($dataArray)||count($dataArray) < 1)
365 365
         {
366 366
             return "<h3>$this->noDataMessage</h3>";
@@ -639,9 +639,9 @@  discard block
 block discarded – undo
639 639
         if(strlen($label) > $maxLabelSize)
640 640
         {
641 641
             return substr($label,0,$maxLabelSize).'...';
642
+        } else {
643
+                    return $label;
642 644
         }
643
-        else
644
-            return $label;
645 645
     }
646 646
 
647 647
 
Please login to merge, or discard this patch.
modules/ACLRoles/ACLRole.php 1 patch
Braces   +15 added lines, -12 removed lines patch added patch discarded remove patch
@@ -1,5 +1,7 @@  discard block
 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.
@@ -63,8 +65,7 @@  discard block
 block discarded – undo
63 65
         $deprecatedMessage = 'PHP4 Style Constructors are deprecated and will be remove in 7.8, please update your code';
64 66
         if(isset($GLOBALS['log'])) {
65 67
             $GLOBALS['log']->deprecated($deprecatedMessage);
66
-        }
67
-        else {
68
+        } else {
68 69
             trigger_error($deprecatedMessage, E_USER_DEPRECATED);
69 70
         }
70 71
         self::__construct();
@@ -117,10 +118,11 @@  discard block
 block discarded – undo
117 118
         while($row = $GLOBALS['db']->fetchByAssoc($result) ){
118 119
             $role = new ACLRole();
119 120
             $role->populateFromRow($row);
120
-            if($getAsNameArray)
121
-                $user_roles[] = $role->name;
122
-            else
123
-                $user_roles[] = $role;
121
+            if($getAsNameArray) {
122
+                            $user_roles[] = $role->name;
123
+            } else {
124
+                            $user_roles[] = $role;
125
+            }
124 126
         }
125 127
 
126 128
         return $user_roles;
@@ -179,7 +181,7 @@  discard block
 block discarded – undo
179 181
             $role->populateFromRow($row);
180 182
             if($returnAsArray){
181 183
                 $roles[] = $role->toArray();
182
-            }else{
184
+            } else{
183 185
                 $roles[] = $role;
184 186
             }
185 187
 
@@ -221,7 +223,7 @@  discard block
 block discarded – undo
221 223
             $action->populateFromRow($row);
222 224
             if(!empty($row['access_override'])){
223 225
                 $action->aclaccess = $row['access_override'];
224
-            }else{
226
+            } else{
225 227
                 $action->aclaccess = ACL_ALLOW_DEFAULT;
226 228
 
227 229
             }
@@ -252,8 +254,9 @@  discard block
 block discarded – undo
252 254
         // Fallback to array key if translation is empty
253 255
         $a = empty($app_list_strings['moduleList'][$a]) ? $a : $app_list_strings['moduleList'][$a];
254 256
         $b = empty($app_list_strings['moduleList'][$b]) ? $b : $app_list_strings['moduleList'][$b];
255
-        if ($a == $b)
256
-            return 0;
257
+        if ($a == $b) {
258
+                    return 0;
259
+        }
257 260
         return ($a < $b) ? -1 : 1;
258 261
     }
259 262
 /**
@@ -283,7 +286,7 @@  discard block
 block discarded – undo
283 286
         foreach($array_fields as $field){
284 287
             if(isset($this->$field)){
285 288
                 $arr[$field] = $this->$field;
286
-            }else{
289
+            } else{
287 290
                 $arr[$field] = '';
288 291
             }
289 292
         }
Please login to merge, or discard this patch.
modules/Project/ProjectJjwg_MapsLogicHook.php 1 patch
Braces   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -2,8 +2,9 @@  discard block
 block discarded – undo
2 2
 
3 3
 // custom/modules/Project/ProjectJjwg_MapsLogicHook.php
4 4
 
5
-if (!defined('sugarEntry') || !sugarEntry)
5
+if (!defined('sugarEntry') || !sugarEntry) {
6 6
     die('Not A Valid Entry Point');
7
+}
7 8
 
8 9
 class ProjectJjwg_MapsLogicHook {
9 10
 
@@ -19,8 +20,7 @@  discard block
 block discarded – undo
19 20
         $deprecatedMessage = 'PHP4 Style Constructors are deprecated and will be remove in 7.8, please update your code';
20 21
         if(isset($GLOBALS['log'])) {
21 22
             $GLOBALS['log']->deprecated($deprecatedMessage);
22
-        }
23
-        else {
23
+        } else {
24 24
             trigger_error($deprecatedMessage, E_USER_DEPRECATED);
25 25
         }
26 26
         self::__construct();
Please login to merge, or discard this patch.