Passed
Push — scrutinizer-code-quality ( 09f5a1...c4c5fb )
by Adam
56:05 queued 14:08
created
modules/jjwg_Maps/views/view.map_display.php 2 patches
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  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) die('Not A Valid Entry Point');
4 4
 
5 5
 class Jjwg_MapsViewMap_Display extends SugarView {
6 6
 
@@ -11,9 +11,9 @@  discard block
 block discarded – undo
11 11
     /**
12 12
      * @deprecated deprecated since version 7.6, PHP4 Style Constructors are deprecated and will be remove in 7.8, please update your code, use __construct instead
13 13
      */
14
-    function Jjwg_MapsViewMap_Display(){
14
+    function Jjwg_MapsViewMap_Display() {
15 15
         $deprecatedMessage = 'PHP4 Style Constructors are deprecated and will be remove in 7.8, please update your code';
16
-        if(isset($GLOBALS['log'])) {
16
+        if (isset($GLOBALS['log'])) {
17 17
             $GLOBALS['log']->deprecated($deprecatedMessage);
18 18
         }
19 19
         else {
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
   function display() {
27 27
     // Limit URI query string parameters. Used to avoid URL length errors.
28 28
     $valid_names = array('action', 'module', 'entryPoint', 'submit', 'cron', 'geocoding_process', 'process_trigger', 'distance', 'unit_type', 'record', 'related_id', 'related_module', 'quick_address', 'display_module', 'list_id', 'uid', 'current_post');
29
-    $url = $GLOBALS['sugar_config']['site_url'] . '/index.php?module=' . $GLOBALS['currentModule'] . '&action=map_markers';
29
+    $url = $GLOBALS['sugar_config']['site_url'].'/index.php?module='.$GLOBALS['currentModule'].'&action=map_markers';
30 30
     foreach (array_keys($_REQUEST) as $key) {
31 31
       if (in_array($key, $valid_names) && !in_array($key, array('action', 'module', 'entryPoint'))) {
32 32
         $url .= '&'.$key.'='.urlencode($_REQUEST[$key]);
Please login to merge, or discard this patch.
Braces   +4 added lines, -3 removed lines patch added patch discarded remove patch
@@ -43,7 +43,9 @@  discard block
 block discarded – undo
43 43
  * Date: 06/03/15
44 44
  * Comments
45 45
  */
46
-if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
46
+if(!defined('sugarEntry') || !sugarEntry) {
47
+    die('Not A Valid Entry Point');
48
+}
47 49
 
48 50
 class CasesController extends SugarController {
49 51
 
@@ -90,8 +92,7 @@  discard block
 block discarded – undo
90 92
                 $count++;
91 93
             }
92 94
             echo '</table>';
93
-        }
94
-        else {
95
+        } else {
95 96
             echo $mod_strings['LBL_NO_SUGGESTIONS'];
96 97
         }
97 98
         die();
Please login to merge, or discard this patch.
modules/jjwg_Maps/views/view.config.php 2 patches
Spacing   +26 added lines, -49 removed lines patch added patch discarded remove patch
@@ -11,9 +11,9 @@  discard block
 block discarded – undo
11 11
     /**
12 12
      * @deprecated deprecated since version 7.6, PHP4 Style Constructors are deprecated and will be remove in 7.8, please update your code, use __construct instead
13 13
      */
14
-    function Jjwg_MapsViewConfig(){
14
+    function Jjwg_MapsViewConfig() {
15 15
         $deprecatedMessage = 'PHP4 Style Constructors are deprecated and will be remove in 7.8, please update your code';
16
-        if(isset($GLOBALS['log'])) {
16
+        if (isset($GLOBALS['log'])) {
17 17
             $GLOBALS['log']->deprecated($deprecatedMessage);
18 18
         }
19 19
         else {
@@ -96,8 +96,7 @@  discard block
 block discarded – undo
96 96
         <td><strong><?php echo $GLOBALS['mod_strings']['LBL_CONFIG_VALID_GEOCODE_MODULES']; ?> </strong></td>
97 97
         <td><input type="text" name="valid_geocode_modules" id="valid_geocode_modules"
98 98
             value="<?php echo (isset($GLOBALS['jjwg_config']['valid_geocode_modules'])) ?
99
-                htmlspecialchars(implode(', ', $GLOBALS['jjwg_config']['valid_geocode_modules'])) :
100
-                htmlspecialchars(implode(', ', $GLOBALS['jjwg_config_defaults']['valid_geocode_modules'])); ?>"
99
+                htmlspecialchars(implode(', ', $GLOBALS['jjwg_config']['valid_geocode_modules'])) : htmlspecialchars(implode(', ', $GLOBALS['jjwg_config_defaults']['valid_geocode_modules'])); ?>"
101 100
             title='' tabindex='107' size="100" maxlength="999"><br />
102 101
             &nbsp; <?php echo $GLOBALS['mod_strings']['LBL_CONFIG_DEFAULT']; ?>
103 102
                 <?php echo htmlspecialchars(implode(', ', $GLOBALS['jjwg_config_defaults']['valid_geocode_modules'])); ?>
@@ -107,8 +106,7 @@  discard block
 block discarded – undo
107 106
         <td><strong><?php echo $GLOBALS['mod_strings']['LBL_CONFIG_VALID_GEOCODE_TABLES']; ?> </strong></td>
108 107
         <td><input type="text" name="valid_geocode_tables" id="valid_geocode_tables"
109 108
             value="<?php echo (isset($GLOBALS['jjwg_config']['valid_geocode_tables'])) ?
110
-                htmlspecialchars(implode(', ', $GLOBALS['jjwg_config']['valid_geocode_tables'])) :
111
-                htmlspecialchars(implode(', ', $GLOBALS['jjwg_config_defaults']['valid_geocode_tables'])); ?>"
109
+                htmlspecialchars(implode(', ', $GLOBALS['jjwg_config']['valid_geocode_tables'])) : htmlspecialchars(implode(', ', $GLOBALS['jjwg_config_defaults']['valid_geocode_tables'])); ?>"
112 110
             title='' tabindex='108' size="100" maxlength="999"><br />
113 111
             &nbsp; <?php echo $GLOBALS['mod_strings']['LBL_CONFIG_DEFAULT']; ?>
114 112
                 <?php echo htmlspecialchars(implode(', ', $GLOBALS['jjwg_config_defaults']['valid_geocode_tables'])); ?>
@@ -295,8 +293,7 @@  discard block
 block discarded – undo
295 293
         <td><strong><?php echo $GLOBALS['mod_strings']['LBL_CONFIG_GROUP_FIELD_FOR_ACCOUNTS']; ?> </strong></td>
296 294
         <td><input type="text" name="grouping_field_Accounts" id="grouping_field_Accounts"
297 295
             value="<?php echo (isset($GLOBALS['jjwg_config']['map_markers_grouping_field']['Accounts'])) ?
298
-                htmlspecialchars($GLOBALS['jjwg_config']['map_markers_grouping_field']['Accounts']) :
299
-                htmlspecialchars($GLOBALS['jjwg_config_defaults']['map_markers_grouping_field']['Accounts']); ?>"
296
+                htmlspecialchars($GLOBALS['jjwg_config']['map_markers_grouping_field']['Accounts']) : htmlspecialchars($GLOBALS['jjwg_config_defaults']['map_markers_grouping_field']['Accounts']); ?>"
300 297
             title='' tabindex='121' size="25" maxlength="75">
301 298
             &nbsp; <?php echo $GLOBALS['mod_strings']['LBL_CONFIG_DEFAULT']; ?> <?php echo htmlspecialchars($GLOBALS['jjwg_config_defaults']['map_markers_grouping_field']['Accounts']); ?>
302 299
         </td>
@@ -305,18 +302,16 @@  discard block
 block discarded – undo
305 302
         <td><strong><?php echo $GLOBALS['mod_strings']['LBL_CONFIG_GROUP_FIELD_FOR_CONTACTS']; ?> </strong></td>
306 303
         <td><input type="text" name="grouping_field_Contacts" id="grouping_field_Contacts"
307 304
             value="<?php echo (isset($GLOBALS['jjwg_config']['map_markers_grouping_field']['Contacts'])) ?
308
-                htmlspecialchars($GLOBALS['jjwg_config']['map_markers_grouping_field']['Contacts']) :
309
-                htmlspecialchars($GLOBALS['jjwg_config_defaults']['map_markers_grouping_field']['Contacts']); ?>"
305
+                htmlspecialchars($GLOBALS['jjwg_config']['map_markers_grouping_field']['Contacts']) : htmlspecialchars($GLOBALS['jjwg_config_defaults']['map_markers_grouping_field']['Contacts']); ?>"
310 306
             title='' tabindex='122' size="25" maxlength="32">
311 307
             &nbsp; <?php echo $GLOBALS['mod_strings']['LBL_CONFIG_DEFAULT']; ?> <?php echo htmlspecialchars($GLOBALS['jjwg_config_defaults']['map_markers_grouping_field']['Contacts']); ?>
312 308
         </td>
313 309
     </tr>
314 310
     <tr>
315
-        <td><strong><?php echo $GLOBALS['mod_strings']['LBL_CONFIG_GROUP_FIELD_FOR_LEADS'];?> </strong></td>
311
+        <td><strong><?php echo $GLOBALS['mod_strings']['LBL_CONFIG_GROUP_FIELD_FOR_LEADS']; ?> </strong></td>
316 312
         <td><input type="text" name="grouping_field_Leads" id="grouping_field_Leads"
317 313
             value="<?php echo (isset($GLOBALS['jjwg_config']['map_markers_grouping_field']['Leads'])) ?
318
-                htmlspecialchars($GLOBALS['jjwg_config']['map_markers_grouping_field']['Leads']) :
319
-                htmlspecialchars($GLOBALS['jjwg_config_defaults']['map_markers_grouping_field']['Leads']); ?>"
314
+                htmlspecialchars($GLOBALS['jjwg_config']['map_markers_grouping_field']['Leads']) : htmlspecialchars($GLOBALS['jjwg_config_defaults']['map_markers_grouping_field']['Leads']); ?>"
320 315
             title='' tabindex='123' size="25" maxlength="32">
321 316
             &nbsp; <?php echo $GLOBALS['mod_strings']['LBL_CONFIG_DEFAULT']; ?> <?php echo htmlspecialchars($GLOBALS['jjwg_config_defaults']['map_markers_grouping_field']['Leads']); ?>
322 317
         </td>
@@ -325,8 +320,7 @@  discard block
 block discarded – undo
325 320
         <td><strong><?php echo $GLOBALS['mod_strings']['LBL_CONFIG_GROUP_FIELD_FOR_OPPORTUNITIES']; ?> </strong></td>
326 321
         <td><input type="text" name="grouping_field_Opportunities" id="grouping_field_Opportunities"
327 322
             value="<?php echo (isset($GLOBALS['jjwg_config']['map_markers_grouping_field']['Opportunities'])) ?
328
-                htmlspecialchars($GLOBALS['jjwg_config']['map_markers_grouping_field']['Opportunities']) :
329
-                htmlspecialchars($GLOBALS['jjwg_config_defaults']['map_markers_grouping_field']['Opportunities']); ?>"
323
+                htmlspecialchars($GLOBALS['jjwg_config']['map_markers_grouping_field']['Opportunities']) : htmlspecialchars($GLOBALS['jjwg_config_defaults']['map_markers_grouping_field']['Opportunities']); ?>"
330 324
             title='' tabindex='124' size="25" maxlength="32">
331 325
             &nbsp; <?php echo $GLOBALS['mod_strings']['LBL_CONFIG_DEFAULT']; ?> <?php echo htmlspecialchars($GLOBALS['jjwg_config_defaults']['map_markers_grouping_field']['Opportunities']); ?>
332 326
         </td>
@@ -335,8 +329,7 @@  discard block
 block discarded – undo
335 329
         <td><strong><?php echo $GLOBALS['mod_strings']['LBL_CONFIG_GROUP_FIELD_FOR_CASES']; ?> </strong></td>
336 330
         <td><input type="text" name="grouping_field_Cases" id="grouping_field_Cases"
337 331
             value="<?php echo (isset($GLOBALS['jjwg_config']['map_markers_grouping_field']['Cases'])) ?
338
-                htmlspecialchars($GLOBALS['jjwg_config']['map_markers_grouping_field']['Cases']) :
339
-                htmlspecialchars($GLOBALS['jjwg_config_defaults']['map_markers_grouping_field']['Cases']); ?>"
332
+                htmlspecialchars($GLOBALS['jjwg_config']['map_markers_grouping_field']['Cases']) : htmlspecialchars($GLOBALS['jjwg_config_defaults']['map_markers_grouping_field']['Cases']); ?>"
340 333
             title='' tabindex='125' size="25" maxlength="32">
341 334
             &nbsp; <?php echo $GLOBALS['mod_strings']['LBL_CONFIG_DEFAULT']; ?> <?php echo htmlspecialchars($GLOBALS['jjwg_config_defaults']['map_markers_grouping_field']['Cases']); ?>
342 335
         </td>
@@ -345,8 +338,7 @@  discard block
 block discarded – undo
345 338
         <td><strong><?php echo $GLOBALS['mod_strings']['LBL_CONFIG_GROUP_FIELD_FOR_PROJECTS']; ?> </strong></td>
346 339
         <td><input type="text" name="grouping_field_Project" id="grouping_field_Project"
347 340
             value="<?php echo (isset($GLOBALS['jjwg_config']['map_markers_grouping_field']['Project'])) ?
348
-                htmlspecialchars($GLOBALS['jjwg_config']['map_markers_grouping_field']['Project']) :
349
-                htmlspecialchars($GLOBALS['jjwg_config_defaults']['map_markers_grouping_field']['Project']); ?>"
341
+                htmlspecialchars($GLOBALS['jjwg_config']['map_markers_grouping_field']['Project']) : htmlspecialchars($GLOBALS['jjwg_config_defaults']['map_markers_grouping_field']['Project']); ?>"
350 342
             title='' tabindex='126' size="25" maxlength="32">
351 343
             &nbsp; <?php echo $GLOBALS['mod_strings']['LBL_CONFIG_DEFAULT']; ?> <?php echo htmlspecialchars($GLOBALS['jjwg_config_defaults']['map_markers_grouping_field']['Project']); ?>
352 344
         </td>
@@ -355,8 +347,7 @@  discard block
 block discarded – undo
355 347
         <td><strong><?php echo $GLOBALS['mod_strings']['LBL_CONFIG_GROUP_FIELD_FOR_MEETINGS']; ?> </strong></td>
356 348
         <td><input type="text" name="grouping_field_Meetings" id="grouping_field_Meetings"
357 349
             value="<?php echo (isset($GLOBALS['jjwg_config']['map_markers_grouping_field']['Meetings'])) ?
358
-                htmlspecialchars($GLOBALS['jjwg_config']['map_markers_grouping_field']['Meetings']) :
359
-                htmlspecialchars($GLOBALS['jjwg_config_defaults']['map_markers_grouping_field']['Meetings']); ?>"
350
+                htmlspecialchars($GLOBALS['jjwg_config']['map_markers_grouping_field']['Meetings']) : htmlspecialchars($GLOBALS['jjwg_config_defaults']['map_markers_grouping_field']['Meetings']); ?>"
360 351
             title='' tabindex='127' size="25" maxlength="32">
361 352
             &nbsp; <?php echo $GLOBALS['mod_strings']['LBL_CONFIG_DEFAULT']; ?> <?php echo htmlspecialchars($GLOBALS['jjwg_config_defaults']['map_markers_grouping_field']['Meetings']); ?>
362 353
             &nbsp; (Limited to Meetings Module Fields)
@@ -366,8 +357,7 @@  discard block
 block discarded – undo
366 357
         <td><strong><?php echo $GLOBALS['mod_strings']['LBL_CONFIG_GROUP_FIELD_FOR_PROSPECTS']; ?> </strong></td>
367 358
         <td><input type="text" name="grouping_field_Prospects" id="grouping_field_Prospects"
368 359
             value="<?php echo (isset($GLOBALS['jjwg_config']['map_markers_grouping_field']['Prospects'])) ?
369
-                htmlspecialchars($GLOBALS['jjwg_config']['map_markers_grouping_field']['Prospects']) :
370
-                htmlspecialchars($GLOBALS['jjwg_config_defaults']['map_markers_grouping_field']['Prospects']); ?>"
360
+                htmlspecialchars($GLOBALS['jjwg_config']['map_markers_grouping_field']['Prospects']) : htmlspecialchars($GLOBALS['jjwg_config_defaults']['map_markers_grouping_field']['Prospects']); ?>"
371 361
             title='' tabindex='128' size="25" maxlength="32">
372 362
             &nbsp; <?php echo $GLOBALS['mod_strings']['LBL_CONFIG_DEFAULT']; ?> <?php echo htmlspecialchars($GLOBALS['jjwg_config_defaults']['map_markers_grouping_field']['Prospects']); ?>
373 363
         </td>
@@ -380,8 +370,7 @@  discard block
 block discarded – undo
380 370
             <td><strong><?php echo $GLOBALS['mod_strings']['LBL_CONFIG_GROUP_FIELD_FOR'].' '.$module.':'; ?> </strong></td>
381 371
             <td><input type="text" name="grouping_field_<?php echo $module; ?>" id="grouping_field_<?php echo $module; ?>"
382 372
                 value="<?php echo (isset($GLOBALS['jjwg_config']['map_markers_grouping_field'][$module])) ?
383
-                    htmlspecialchars($GLOBALS['jjwg_config']['map_markers_grouping_field'][$module]) :
384
-                    htmlspecialchars($GLOBALS['jjwg_config_defaults']['map_markers_grouping_field']['Contacts']); ?>"
373
+                    htmlspecialchars($GLOBALS['jjwg_config']['map_markers_grouping_field'][$module]) : htmlspecialchars($GLOBALS['jjwg_config_defaults']['map_markers_grouping_field']['Contacts']); ?>"
385 374
                 title='' tabindex='128' size="25" maxlength="32">
386 375
                 &nbsp; <?php echo $GLOBALS['mod_strings']['LBL_CONFIG_DEFAULT']; ?>
387 376
                     <?php echo htmlspecialchars($GLOBALS['jjwg_config_defaults']['map_markers_grouping_field']['Contacts']); ?>
@@ -403,8 +392,7 @@  discard block
 block discarded – undo
403 392
         <td><strong><?php echo $GLOBALS['mod_strings']['LBL_CONFIG_GEOCODING_API_URL_TITLE']; ?> </strong></td>
404 393
         <td><input type="text" name="geocoding_api_url" id="geocoding_api_url"
405 394
             value="<?php echo (isset($GLOBALS['jjwg_config']['geocoding_api_url'])) ?
406
-                htmlspecialchars($GLOBALS['jjwg_config']['geocoding_api_url']) :
407
-                htmlspecialchars($GLOBALS['jjwg_config_defaults']['geocoding_api_url']); ?>"
395
+                htmlspecialchars($GLOBALS['jjwg_config']['geocoding_api_url']) : htmlspecialchars($GLOBALS['jjwg_config_defaults']['geocoding_api_url']); ?>"
408 396
             title='' tabindex='139' size="70" maxlength="255">
409 397
             <br />
410 398
             <?php echo $GLOBALS['mod_strings']['LBL_CONFIG_DEFAULT']; ?>
@@ -418,8 +406,7 @@  discard block
 block discarded – undo
418 406
         <td><strong><?php echo $GLOBALS['mod_strings']['LBL_CONFIG_GEOCODING_API_SECRET_TITLE']; ?> </strong></td>
419 407
         <td><input type="text" name="geocoding_api_secret" id="geocoding_api_secret"
420 408
             value="<?php echo (isset($GLOBALS['jjwg_config']['geocoding_api_secret'])) ?
421
-                htmlspecialchars($GLOBALS['jjwg_config']['geocoding_api_secret']) :
422
-                htmlspecialchars($GLOBALS['jjwg_config_defaults']['geocoding_api_secret']); ?>"
409
+                htmlspecialchars($GLOBALS['jjwg_config']['geocoding_api_secret']) : htmlspecialchars($GLOBALS['jjwg_config_defaults']['geocoding_api_secret']); ?>"
423 410
             title='' tabindex='140' size="25" maxlength="32">
424 411
             &nbsp; <?php echo $GLOBALS['mod_strings']['LBL_CONFIG_DEFAULT']; ?>
425 412
                 <?php echo htmlspecialchars($GLOBALS['jjwg_config_defaults']['geocoding_api_secret']) ?>
@@ -432,8 +419,7 @@  discard block
 block discarded – undo
432 419
         <td><strong><?php echo $GLOBALS['mod_strings']['LBL_CONFIG_GEOCODING_LIMIT_TITLE']; ?> </strong></td>
433 420
         <td><input type="text" name="geocoding_limit" id="geocoding_limit"
434 421
             value="<?php echo (isset($GLOBALS['jjwg_config']['geocoding_limit'])) ?
435
-                htmlspecialchars($GLOBALS['jjwg_config']['geocoding_limit']) :
436
-                htmlspecialchars($GLOBALS['jjwg_config_defaults']['geocoding_limit']); ?>"
422
+                htmlspecialchars($GLOBALS['jjwg_config']['geocoding_limit']) : htmlspecialchars($GLOBALS['jjwg_config_defaults']['geocoding_limit']); ?>"
437 423
             title='' tabindex='141' size="10" maxlength="25">
438 424
             &nbsp; <?php echo $GLOBALS['mod_strings']['LBL_CONFIG_DEFAULT']; ?>
439 425
                 <?php echo htmlspecialchars($GLOBALS['jjwg_config_defaults']['geocoding_limit']) ?>
@@ -446,8 +432,7 @@  discard block
 block discarded – undo
446 432
         <td><strong><?php echo $GLOBALS['mod_strings']['LBL_CONFIG_GOOGLE_GEOCODING_LIMIT_TITLE']; ?> </strong></td>
447 433
         <td><input type="text" name="google_geocoding_limit" id="google_geocoding_limit"
448 434
             value="<?php echo (isset($GLOBALS['jjwg_config']['google_geocoding_limit'])) ?
449
-                htmlspecialchars($GLOBALS['jjwg_config']['google_geocoding_limit']) :
450
-                htmlspecialchars($GLOBALS['jjwg_config_defaults']['google_geocoding_limit']); ?>"
435
+                htmlspecialchars($GLOBALS['jjwg_config']['google_geocoding_limit']) : htmlspecialchars($GLOBALS['jjwg_config_defaults']['google_geocoding_limit']); ?>"
451 436
             title='' tabindex='142' size="10" maxlength="25">
452 437
             &nbsp; <?php echo $GLOBALS['mod_strings']['LBL_CONFIG_DEFAULT']; ?>
453 438
                 <?php echo htmlspecialchars($GLOBALS['jjwg_config_defaults']['google_geocoding_limit']) ?>
@@ -478,8 +463,7 @@  discard block
 block discarded – undo
478 463
         <td><strong><?php echo $GLOBALS['mod_strings']['LBL_CONFIG_EXPORT_ADDRESSES_LIMIT_TITLE']; ?> </strong></td>
479 464
         <td><input type="text" name="export_addresses_limit" id="export_addresses_limit"
480 465
             value="<?php echo (isset($GLOBALS['jjwg_config']['export_addresses_limit'])) ?
481
-                htmlspecialchars($GLOBALS['jjwg_config']['export_addresses_limit']) :
482
-                htmlspecialchars($GLOBALS['jjwg_config_defaults']['export_addresses_limit']); ?>"
466
+                htmlspecialchars($GLOBALS['jjwg_config']['export_addresses_limit']) : htmlspecialchars($GLOBALS['jjwg_config_defaults']['export_addresses_limit']); ?>"
483 467
             title='' tabindex='144' size="10" maxlength="25">
484 468
             &nbsp; <?php echo $GLOBALS['mod_strings']['LBL_CONFIG_DEFAULT']; ?>
485 469
                 <?php echo htmlspecialchars($GLOBALS['jjwg_config_defaults']['export_addresses_limit']) ?>
@@ -582,8 +566,7 @@  discard block
 block discarded – undo
582 566
         <td><strong><?php echo $GLOBALS['mod_strings']['LBL_CONFIG_MAP_MARKERS_LIMIT_TITLE']; ?> </strong></td>
583 567
         <td><input type="text" name="map_markers_limit" id="map_markers_limit"
584 568
             value="<?php echo (isset($GLOBALS['jjwg_config']['map_markers_limit'])) ?
585
-                htmlspecialchars($GLOBALS['jjwg_config']['map_markers_limit']) :
586
-                htmlspecialchars($GLOBALS['jjwg_config_defaults']['map_markers_limit']); ?>"
569
+                htmlspecialchars($GLOBALS['jjwg_config']['map_markers_limit']) : htmlspecialchars($GLOBALS['jjwg_config_defaults']['map_markers_limit']); ?>"
587 570
             title='' tabindex='150' size="10" maxlength="25">
588 571
             &nbsp; <?php echo $GLOBALS['mod_strings']['LBL_CONFIG_DEFAULT']; ?> <?php echo htmlspecialchars($GLOBALS['jjwg_config_defaults']['map_markers_limit']) ?>
589 572
         </td>
@@ -595,8 +578,7 @@  discard block
 block discarded – undo
595 578
         <td><strong><?php echo $GLOBALS['mod_strings']['LBL_CONFIG_MAP_DEFAULT_CENTER_LATITUDE_TITLE']; ?> </strong></td>
596 579
         <td><input type="text" name="map_default_center_latitude" id="map_default_center_latitude"
597 580
             value="<?php echo (isset($GLOBALS['jjwg_config']['map_default_center_latitude'])) ?
598
-                htmlspecialchars($GLOBALS['jjwg_config']['map_default_center_latitude']) :
599
-                htmlspecialchars($GLOBALS['jjwg_config_defaults']['map_default_center_latitude']); ?>"
581
+                htmlspecialchars($GLOBALS['jjwg_config']['map_default_center_latitude']) : htmlspecialchars($GLOBALS['jjwg_config_defaults']['map_default_center_latitude']); ?>"
600 582
             title='' tabindex='151' size="10" maxlength="25">
601 583
             &nbsp; <?php echo $GLOBALS['mod_strings']['LBL_CONFIG_DEFAULT']; ?> <?php echo htmlspecialchars($GLOBALS['jjwg_config_defaults']['map_default_center_latitude']) ?>
602 584
         </td>
@@ -608,8 +590,7 @@  discard block
 block discarded – undo
608 590
         <td><strong><?php echo $GLOBALS['mod_strings']['LBL_CONFIG_MAP_DEFAULT_CENTER_LONGITUDE_TITLE']; ?> </strong></td>
609 591
         <td><input type="text" name="map_default_center_longitude" id="map_default_center_longitude"
610 592
             value="<?php echo (isset($GLOBALS['jjwg_config']['map_default_center_longitude'])) ?
611
-                htmlspecialchars($GLOBALS['jjwg_config']['map_default_center_longitude']) :
612
-                htmlspecialchars($GLOBALS['jjwg_config_defaults']['map_default_center_longitude']); ?>"
593
+                htmlspecialchars($GLOBALS['jjwg_config']['map_default_center_longitude']) : htmlspecialchars($GLOBALS['jjwg_config_defaults']['map_default_center_longitude']); ?>"
613 594
             title='' tabindex='152' size="10" maxlength="25">
614 595
             &nbsp; <?php echo $GLOBALS['mod_strings']['LBL_CONFIG_DEFAULT']; ?> <?php echo htmlspecialchars($GLOBALS['jjwg_config_defaults']['map_default_center_longitude']) ?>
615 596
         </td>
@@ -638,8 +619,7 @@  discard block
 block discarded – undo
638 619
         <td><strong><?php echo $GLOBALS['mod_strings']['LBL_CONFIG_MAP_DEFAULT_DISTANCE_TITLE']; ?> </strong></td>
639 620
         <td><input type="text" name="map_default_distance" id="map_default_distance"
640 621
             value="<?php echo (isset($GLOBALS['jjwg_config']['map_default_distance'])) ?
641
-                htmlspecialchars($GLOBALS['jjwg_config']['map_default_distance']) :
642
-                htmlspecialchars($GLOBALS['jjwg_config_defaults']['map_default_distance']); ?>"
622
+                htmlspecialchars($GLOBALS['jjwg_config']['map_default_distance']) : htmlspecialchars($GLOBALS['jjwg_config_defaults']['map_default_distance']); ?>"
643 623
             title='' tabindex='154' size="10" maxlength="25">
644 624
             &nbsp; <?php echo $GLOBALS['mod_strings']['LBL_CONFIG_DEFAULT']; ?> <?php echo htmlspecialchars($GLOBALS['jjwg_config_defaults']['map_default_distance']) ?>
645 625
         </td>
@@ -651,8 +631,7 @@  discard block
 block discarded – undo
651 631
         <td><strong><?php echo $GLOBALS['mod_strings']['LBL_CONFIG_MAP_DUPLICATE_MARKER_ADJUSTMENT_TITLE']; ?> </strong></td>
652 632
         <td><input type="text" name="map_duplicate_marker_adjustment" id="map_duplicate_marker_adjustment"
653 633
             value="<?php echo (isset($GLOBALS['jjwg_config']['map_duplicate_marker_adjustment'])) ?
654
-                rtrim(number_format($GLOBALS['jjwg_config']['map_duplicate_marker_adjustment'], 8), '0.') :
655
-                rtrim(number_format($GLOBALS['jjwg_config_defaults']['map_duplicate_marker_adjustment'], 8), '0.'); ?>"
634
+                rtrim(number_format($GLOBALS['jjwg_config']['map_duplicate_marker_adjustment'], 8), '0.') : rtrim(number_format($GLOBALS['jjwg_config_defaults']['map_duplicate_marker_adjustment'], 8), '0.'); ?>"
656 635
             title='' tabindex='155' size="10" maxlength="25">
657 636
             &nbsp; <?php echo $GLOBALS['mod_strings']['LBL_CONFIG_DEFAULT']; ?> <?php echo rtrim(number_format($GLOBALS['jjwg_config_defaults']['map_duplicate_marker_adjustment'], 8), '0.'); ?>
658 637
         </td>
@@ -664,8 +643,7 @@  discard block
 block discarded – undo
664 643
         <td><strong><?php echo $GLOBALS['mod_strings']['LBL_CONFIG_MAP_CLUSTER_GRID_SIZE_TITLE']; ?> </strong></td>
665 644
         <td><input type="text" name="map_clusterer_grid_size" id="map_clusterer_grid_size"
666 645
             value="<?php echo (isset($GLOBALS['jjwg_config']['map_clusterer_grid_size'])) ?
667
-                htmlspecialchars($GLOBALS['jjwg_config']['map_clusterer_grid_size']) :
668
-                htmlspecialchars($GLOBALS['jjwg_config_defaults']['map_clusterer_grid_size']); ?>"
646
+                htmlspecialchars($GLOBALS['jjwg_config']['map_clusterer_grid_size']) : htmlspecialchars($GLOBALS['jjwg_config_defaults']['map_clusterer_grid_size']); ?>"
669 647
             title='' tabindex='156' size="10" maxlength="25">
670 648
             &nbsp; <?php echo $GLOBALS['mod_strings']['LBL_CONFIG_DEFAULT']; ?> <?php echo htmlspecialchars($GLOBALS['jjwg_config_defaults']['map_clusterer_grid_size']) ?>
671 649
         </td>
@@ -677,8 +655,7 @@  discard block
 block discarded – undo
677 655
         <td><strong><?php echo $GLOBALS['mod_strings']['LBL_CONFIG_MAP_MARKERS_CLUSTERER_MAX_ZOOM_TITLE']; ?> </strong></td>
678 656
         <td><input type="text" name="map_clusterer_max_zoom" id="map_clusterer_max_zoom"
679 657
             value="<?php echo (isset($GLOBALS['jjwg_config']['map_clusterer_max_zoom'])) ?
680
-                htmlspecialchars($GLOBALS['jjwg_config']['map_clusterer_max_zoom']) :
681
-                htmlspecialchars($GLOBALS['jjwg_config_defaults']['map_clusterer_max_zoom']); ?>"
658
+                htmlspecialchars($GLOBALS['jjwg_config']['map_clusterer_max_zoom']) : htmlspecialchars($GLOBALS['jjwg_config_defaults']['map_clusterer_max_zoom']); ?>"
682 659
             title='' tabindex='157' size="10" maxlength="25">
683 660
             &nbsp; <?php echo $GLOBALS['mod_strings']['LBL_CONFIG_DEFAULT']; ?> <?php echo htmlspecialchars($GLOBALS['jjwg_config_defaults']['map_clusterer_max_zoom']) ?>
684 661
         </td>
Please login to merge, or discard this 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/jjwg_Maps/views/view.donate.php 2 patches
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  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) die('Not A Valid Entry Point');
4 4
 
5 5
 class Jjwg_MapsViewDonate extends SugarView {
6 6
 
@@ -11,9 +11,9 @@  discard block
 block discarded – undo
11 11
     /**
12 12
      * @deprecated deprecated since version 7.6, PHP4 Style Constructors are deprecated and will be remove in 7.8, please update your code, use __construct instead
13 13
      */
14
-    function Jjwg_MapsViewDonate(){
14
+    function Jjwg_MapsViewDonate() {
15 15
         $deprecatedMessage = 'PHP4 Style Constructors are deprecated and will be remove in 7.8, please update your code';
16
-        if(isset($GLOBALS['log'])) {
16
+        if (isset($GLOBALS['log'])) {
17 17
             $GLOBALS['log']->deprecated($deprecatedMessage);
18 18
         }
19 19
         else {
Please login to merge, or discard this patch.
Braces   +4 added lines, -3 removed lines patch added patch discarded remove patch
@@ -43,7 +43,9 @@  discard block
 block discarded – undo
43 43
  * Date: 06/03/15
44 44
  * Comments
45 45
  */
46
-if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
46
+if(!defined('sugarEntry') || !sugarEntry) {
47
+    die('Not A Valid Entry Point');
48
+}
47 49
 
48 50
 class CasesController extends SugarController {
49 51
 
@@ -90,8 +92,7 @@  discard block
 block discarded – undo
90 92
                 $count++;
91 93
             }
92 94
             echo '</table>';
93
-        }
94
-        else {
95
+        } else {
95 96
             echo $mod_strings['LBL_NO_SUGGESTIONS'];
96 97
         }
97 98
         die();
Please login to merge, or discard this patch.
modules/jjwg_Maps/views/view.map_markers.php 2 patches
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  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) die('Not A Valid Entry Point');
4 4
 
5 5
 class Jjwg_MapsViewMap_Markers extends SugarView {
6 6
 
@@ -11,9 +11,9 @@  discard block
 block discarded – undo
11 11
     /**
12 12
      * @deprecated deprecated since version 7.6, PHP4 Style Constructors are deprecated and will be remove in 7.8, please update your code, use __construct instead
13 13
      */
14
-    function Jjwg_MapsViewMap_Markers(){
14
+    function Jjwg_MapsViewMap_Markers() {
15 15
         $deprecatedMessage = 'PHP4 Style Constructors are deprecated and will be remove in 7.8, please update your code';
16
-        if(isset($GLOBALS['log'])) {
16
+        if (isset($GLOBALS['log'])) {
17 17
             $GLOBALS['log']->deprecated($deprecatedMessage);
18 18
         }
19 19
         else {
@@ -154,7 +154,7 @@  discard block
 block discarded – undo
154 154
     // Define Custom Markers Dir and Common Icons
155 155
     $custom_markers_dir = 'custom/themes/default/images/jjwg_Markers/';
156 156
     $custom_markers_icons = array();
157
-    foreach($this->bean->custom_markers as $marker) {
157
+    foreach ($this->bean->custom_markers as $marker) {
158 158
       $custom_markers_icons[] = $marker['image'];
159 159
     }
160 160
     $num_custom_markers = count($this->bean->custom_markers);
@@ -919,7 +919,7 @@  discard block
 block discarded – undo
919 919
 ?>
920 920
   <!-- <b><?php echo $GLOBALS['mod_strings']['LBL_MAP_USER_GROUPS']; ?> </b><br/> -->
921 921
 <?php
922
-  foreach($group_name_to_num as $group_name => $group_number) {
922
+  foreach ($group_name_to_num as $group_name => $group_number) {
923 923
 ?>
924 924
     <img src="<?php echo './'.$icons_dir.'/marker_'.$group_number.'.png'; ?>"
925 925
          rel="<?php echo $group_number; ?>" align="middle" />
Please login to merge, or discard this patch.
Braces   +13 added lines, -6 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_MapsViewMap_Markers 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();
@@ -113,8 +114,12 @@  discard block
 block discarded – undo
113 114
         // Define default point as map center
114 115
         $this->bean->map_center['lat'] = $GLOBALS['jjwg_config']['map_default_center_latitude'];
115 116
         $this->bean->map_center['lng'] = $GLOBALS['jjwg_config']['map_default_center_longitude'];
116
-        if (!isset($this->bean->map_center['html'])) $this->bean->map_center['html'] = $GLOBALS['mod_strings']['LBL_DEFAULT'];
117
-        if (!isset($this->bean->map_center['name'])) $this->bean->map_center['name'] = $GLOBALS['mod_strings']['LBL_DEFAULT'];
117
+        if (!isset($this->bean->map_center['html'])) {
118
+            $this->bean->map_center['html'] = $GLOBALS['mod_strings']['LBL_DEFAULT'];
119
+        }
120
+        if (!isset($this->bean->map_center['name'])) {
121
+            $this->bean->map_center['name'] = $GLOBALS['mod_strings']['LBL_DEFAULT'];
122
+        }
118 123
     }
119 124
 }
120 125
 ?>
@@ -127,7 +132,9 @@  discard block
 block discarded – undo
127 132
     // Define Map Data
128 133
     $num_markers = count($this->bean->map_markers);
129 134
     $num_groups = count($this->bean->map_markers_groups);
130
-    if ($num_groups > 216) $num_groups = 216;
135
+    if ($num_groups > 216) {
136
+        $num_groups = 216;
137
+    }
131 138
     $group_name_to_num = array();
132 139
     $i = 1;
133 140
     // Define Group Name to Icon Number Mapping 1-216(max)
Please login to merge, or discard this patch.
modules/AOS_PDF_Templates/AOS_PDF_Templates.php 2 patches
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -30,16 +30,16 @@
 block discarded – undo
30 30
 require_once('modules/AOS_PDF_Templates/AOS_PDF_Templates_sugar.php');
31 31
 class AOS_PDF_Templates extends AOS_PDF_Templates_sugar {
32 32
 
33
-	function __construct(){
33
+	function __construct() {
34 34
 		parent::__construct();
35 35
 	}
36 36
 
37 37
     /**
38 38
      * @deprecated deprecated since version 7.6, PHP4 Style Constructors are deprecated and will be remove in 7.8, please update your code, use __construct instead
39 39
      */
40
-    function AOS_PDF_Templates(){
40
+    function AOS_PDF_Templates() {
41 41
         $deprecatedMessage = 'PHP4 Style Constructors are deprecated and will be remove in 7.8, please update your code';
42
-        if(isset($GLOBALS['log'])) {
42
+        if (isset($GLOBALS['log'])) {
43 43
             $GLOBALS['log']->deprecated($deprecatedMessage);
44 44
         }
45 45
         else {
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -23,8 +23,7 @@
 block discarded – undo
23 23
         $deprecatedMessage = 'PHP4 Style Constructors are deprecated and will be remove in 7.8, please update your code';
24 24
         if(isset($GLOBALS['log'])) {
25 25
             $GLOBALS['log']->deprecated($deprecatedMessage);
26
-        }
27
-        else {
26
+        } else {
28 27
             trigger_error($deprecatedMessage, E_USER_DEPRECATED);
29 28
         }
30 29
         self::__construct($seed, $module, $subPanel, $options);
Please login to merge, or discard this patch.
modules/AOS_PDF_Templates/AOS_PDF_Templates_sugar.php 2 patches
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
 	var $table_name = 'aos_pdf_templates';
39 39
 	var $importable = true;
40 40
 
41
-	var $disable_row_level_security = true ; // to ensure that modules created and deployed under CE will continue to function under team security if the instance is upgraded to PRO
41
+	var $disable_row_level_security = true; // to ensure that modules created and deployed under CE will continue to function under team security if the instance is upgraded to PRO
42 42
 
43 43
 		var $id;
44 44
 		var $name;
@@ -61,16 +61,16 @@  discard block
 block discarded – undo
61 61
 
62 62
 
63 63
 
64
-	function __construct(){
64
+	function __construct() {
65 65
 		parent::__construct();
66 66
 	}
67 67
 
68 68
     /**
69 69
      * @deprecated deprecated since version 7.6, PHP4 Style Constructors are deprecated and will be remove in 7.8, please update your code, use __construct instead
70 70
      */
71
-    function AOS_PDF_Templates_sugar(){
71
+    function AOS_PDF_Templates_sugar() {
72 72
         $deprecatedMessage = 'PHP4 Style Constructors are deprecated and will be remove in 7.8, please update your code';
73
-        if(isset($GLOBALS['log'])) {
73
+        if (isset($GLOBALS['log'])) {
74 74
             $GLOBALS['log']->deprecated($deprecatedMessage);
75 75
         }
76 76
         else {
@@ -80,8 +80,8 @@  discard block
 block discarded – undo
80 80
     }
81 81
 
82 82
 
83
-	function bean_implements($interface){
84
-		switch($interface){
83
+	function bean_implements($interface) {
84
+		switch ($interface) {
85 85
 			case 'ACL': return true;
86 86
 		}
87 87
 		return false;
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -23,8 +23,7 @@
 block discarded – undo
23 23
         $deprecatedMessage = 'PHP4 Style Constructors are deprecated and will be remove in 7.8, please update your code';
24 24
         if(isset($GLOBALS['log'])) {
25 25
             $GLOBALS['log']->deprecated($deprecatedMessage);
26
-        }
27
-        else {
26
+        } else {
28 27
             trigger_error($deprecatedMessage, E_USER_DEPRECATED);
29 28
         }
30 29
         self::__construct($seed, $module, $subPanel, $options);
Please login to merge, or discard this patch.
modules/Accounts/views/view.detail.php 2 patches
Spacing   +26 added lines, -26 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
 /*********************************************************************************
5 5
  * SugarCRM is a customer relationship management program developed by
@@ -41,16 +41,16 @@  discard block
 block discarded – undo
41 41
 class AccountsViewDetail extends ViewDetail {
42 42
 
43 43
 
44
- 	function __construct(){
44
+ 	function __construct() {
45 45
  		parent::__construct();
46 46
  	}
47 47
 
48 48
     /**
49 49
      * @deprecated deprecated since version 7.6, PHP4 Style Constructors are deprecated and will be remove in 7.8, please update your code, use __construct instead
50 50
      */
51
-    function AccountsViewDetail(){
51
+    function AccountsViewDetail() {
52 52
         $deprecatedMessage = 'PHP4 Style Constructors are deprecated and will be remove in 7.8, please update your code';
53
-        if(isset($GLOBALS['log'])) {
53
+        if (isset($GLOBALS['log'])) {
54 54
             $GLOBALS['log']->deprecated($deprecatedMessage);
55 55
         }
56 56
         else {
@@ -68,9 +68,9 @@  discard block
 block discarded – undo
68 68
  	 * include/SugarFields/Fields/Address/DetailView.tpl (default).  If it's a English U.S.
69 69
  	 * locale then it'll use file include/SugarFields/Fields/Address/en_us.DetailView.tpl.
70 70
  	 */
71
- 	function display(){
71
+ 	function display() {
72 72
 
73
-		if(empty($this->bean->id)){
73
+		if (empty($this->bean->id)) {
74 74
 			global $app_strings;
75 75
 			sugar_die($app_strings['ERROR_NO_RECORD']);
76 76
 		}
@@ -80,25 +80,25 @@  discard block
 block discarded – undo
80 80
 
81 81
 		$this->dv->process();
82 82
 		global $mod_strings;
83
-		if(ACLController::checkAccess('Contacts', 'edit', true)) {
84
-			$push_billing = '<input class="button" title="' . $mod_strings['LBL_PUSH_CONTACTS_BUTTON_LABEL'] .
85
-								 '" type="button" onclick=\'open_contact_popup("Contacts", 600, 600, "&account_name=' .
86
-								 $this->bean->name . '&html=change_address' .
87
-								 '&primary_address_street=' . str_replace(array("\rn", "\r", "\n"), array('','','<br>'), urlencode($this->bean->billing_address_street)) .
88
-								 '&primary_address_city=' . $this->bean->billing_address_city .
89
-								 '&primary_address_state=' . $this->bean->billing_address_state .
90
-								 '&primary_address_postalcode=' . $this->bean->billing_address_postalcode .
91
-								 '&primary_address_country=' . $this->bean->billing_address_country .
92
-								 '", true, false);\' value="' . $mod_strings['LBL_PUSH_CONTACTS_BUTTON_TITLE']. '">';
93
-			$push_shipping = '<input class="button" title="' . $mod_strings['LBL_PUSH_CONTACTS_BUTTON_LABEL'] .
94
-								 '" type="button" onclick=\'open_contact_popup("Contacts", 600, 600, "&account_name=' .
95
-								 $this->bean->name . '&html=change_address' .
96
-								 '&primary_address_street=' . str_replace(array("\rn", "\r", "\n"), array('','','<br>'), urlencode($this->bean->shipping_address_street)) .
97
-								 '&primary_address_city=' . $this->bean->shipping_address_city .
98
-								 '&primary_address_state=' . $this->bean->shipping_address_state .
99
-								 '&primary_address_postalcode=' . $this->bean->shipping_address_postalcode .
100
-								 '&primary_address_country=' . $this->bean->shipping_address_country .
101
-								 '", true, false);\' value="' . $mod_strings['LBL_PUSH_CONTACTS_BUTTON_TITLE'] . '">';
83
+		if (ACLController::checkAccess('Contacts', 'edit', true)) {
84
+			$push_billing = '<input class="button" title="'.$mod_strings['LBL_PUSH_CONTACTS_BUTTON_LABEL'].
85
+								 '" type="button" onclick=\'open_contact_popup("Contacts", 600, 600, "&account_name='.
86
+								 $this->bean->name.'&html=change_address'.
87
+								 '&primary_address_street='.str_replace(array("\rn", "\r", "\n"), array('', '', '<br>'), urlencode($this->bean->billing_address_street)).
88
+								 '&primary_address_city='.$this->bean->billing_address_city.
89
+								 '&primary_address_state='.$this->bean->billing_address_state.
90
+								 '&primary_address_postalcode='.$this->bean->billing_address_postalcode.
91
+								 '&primary_address_country='.$this->bean->billing_address_country.
92
+								 '", true, false);\' value="'.$mod_strings['LBL_PUSH_CONTACTS_BUTTON_TITLE'].'">';
93
+			$push_shipping = '<input class="button" title="'.$mod_strings['LBL_PUSH_CONTACTS_BUTTON_LABEL'].
94
+								 '" type="button" onclick=\'open_contact_popup("Contacts", 600, 600, "&account_name='.
95
+								 $this->bean->name.'&html=change_address'.
96
+								 '&primary_address_street='.str_replace(array("\rn", "\r", "\n"), array('', '', '<br>'), urlencode($this->bean->shipping_address_street)).
97
+								 '&primary_address_city='.$this->bean->shipping_address_city.
98
+								 '&primary_address_state='.$this->bean->shipping_address_state.
99
+								 '&primary_address_postalcode='.$this->bean->shipping_address_postalcode.
100
+								 '&primary_address_country='.$this->bean->shipping_address_country.
101
+								 '", true, false);\' value="'.$mod_strings['LBL_PUSH_CONTACTS_BUTTON_TITLE'].'">';
102 102
 		} else {
103 103
 			$push_billing = '';
104 104
 			$push_shipping = '';
@@ -107,7 +107,7 @@  discard block
 block discarded – undo
107 107
 		$this->ss->assign("custom_code_billing", $push_billing);
108 108
 		$this->ss->assign("custom_code_shipping", $push_shipping);
109 109
 
110
-        if(empty($this->bean->id)){
110
+        if (empty($this->bean->id)) {
111 111
 			global $app_strings;
112 112
 			sugar_die($app_strings['ERROR_NO_RECORD']);
113 113
 		}
Please login to merge, or discard this patch.
Braces   +4 added lines, -3 removed lines patch added patch discarded remove patch
@@ -43,7 +43,9 @@  discard block
 block discarded – undo
43 43
  * Date: 06/03/15
44 44
  * Comments
45 45
  */
46
-if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
46
+if(!defined('sugarEntry') || !sugarEntry) {
47
+    die('Not A Valid Entry Point');
48
+}
47 49
 
48 50
 class CasesController extends SugarController {
49 51
 
@@ -90,8 +92,7 @@  discard block
 block discarded – undo
90 92
                 $count++;
91 93
             }
92 94
             echo '</table>';
93
-        }
94
-        else {
95
+        } else {
95 96
             echo $mod_strings['LBL_NO_SUGGESTIONS'];
96 97
         }
97 98
         die();
Please login to merge, or discard this patch.
modules/Accounts/AccountsListViewSmarty.php 2 patches
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -5,7 +5,7 @@  discard block
 block discarded – undo
5 5
 
6 6
 class AccountsListViewSmarty extends ListViewSmarty {
7 7
 
8
-	function __construct(){
8
+	function __construct() {
9 9
 
10 10
 		parent::__construct();
11 11
 		$this->targetList = true;
@@ -15,9 +15,9 @@  discard block
 block discarded – undo
15 15
     /**
16 16
      * @deprecated deprecated since version 7.6, PHP4 Style Constructors are deprecated and will be remove in 7.8, please update your code, use __construct instead
17 17
      */
18
-    function AccountsListViewSmarty(){
18
+    function AccountsListViewSmarty() {
19 19
         $deprecatedMessage = 'PHP4 Style Constructors are deprecated and will be remove in 7.8, please update your code';
20
-        if(isset($GLOBALS['log'])) {
20
+        if (isset($GLOBALS['log'])) {
21 21
             $GLOBALS['log']->deprecated($deprecatedMessage);
22 22
         }
23 23
         else {
@@ -101,8 +101,8 @@  discard block
 block discarded – undo
101 101
  			}
102 102
  			open_popup('ProspectLists','600','400','',true,false,{ 'call_back_function':'set_return_and_save_targetlist', 'form_name':'targetlist_form','field_to_name_array':{'id':'prospect_list'}, 'passthru_data':{'do_contacts' : 1 }   } );
103 103
 EOF;
104
-		$js = str_replace(array("\r","\n"),'',$js);
105
-		return "<a href='javascript:void(0)' id=\"targetlist_listview_". $loc ." \" onclick=\"$js\">{$app_strings['LBL_ADD_TO_PROSPECT_LIST_BUTTON_LABEL_ACCOUNTS_CONTACTS']}</a>";
104
+		$js = str_replace(array("\r", "\n"), '', $js);
105
+		return "<a href='javascript:void(0)' id=\"targetlist_listview_".$loc." \" onclick=\"$js\">{$app_strings['LBL_ADD_TO_PROSPECT_LIST_BUTTON_LABEL_ACCOUNTS_CONTACTS']}</a>";
106 106
 	}
107 107
 
108 108
 
@@ -112,7 +112,7 @@  discard block
 block discarded – undo
112 112
 
113 113
 		parent::process($file, $data, $htmlVar);
114 114
 
115
-		if(!ACLController::checkAccess($this->seed->module_dir,'export',true) || !$this->export) {
115
+		if (!ACLController::checkAccess($this->seed->module_dir, 'export', true) || !$this->export) {
116 116
 			$this->ss->assign('exportLink', $this->buildExportLink());
117 117
 		}
118 118
 	}
@@ -128,7 +128,7 @@  discard block
 block discarded – undo
128 128
 			6 => 7,
129 129
 		);
130 130
 
131
-		foreach($replaces as $i => $j) {
131
+		foreach ($replaces as $i => $j) {
132 132
 			$tmp = $ret['buttons'][$j];
133 133
 			$ret['buttons'][$j] = $ret['buttons'][$i];
134 134
 			$ret['buttons'][$i] = $tmp;
@@ -137,20 +137,20 @@  discard block
 block discarded – undo
137 137
 		return $ret;
138 138
 	}
139 139
 	
140
-	function buildExportLink($id = 'export_link'){
140
+	function buildExportLink($id = 'export_link') {
141 141
 		global $app_strings;
142 142
 		global $sugar_config;
143 143
 
144 144
 		$script = "";
145
-		if(ACLController::checkAccess($this->seed->module_dir,'export',true)) {
146
-			if($this->export) {
145
+		if (ACLController::checkAccess($this->seed->module_dir, 'export', true)) {
146
+			if ($this->export) {
147 147
                 		$script = parent::buildExportLink($id);
148 148
             		}
149 149
         	}
150 150
 
151
-            $script .= "<a href='javascript:void(0)' id='map_listview_top' " .
152
-                    " onclick=\"return sListView.send_form(true, 'jjwg_Maps', " .
153
-                    "'index.php?entryPoint=jjwg_Maps&display_module={$_REQUEST['module']}', " .
151
+            $script .= "<a href='javascript:void(0)' id='map_listview_top' ".
152
+                    " onclick=\"return sListView.send_form(true, 'jjwg_Maps', ".
153
+                    "'index.php?entryPoint=jjwg_Maps&display_module={$_REQUEST['module']}', ".
154 154
                     "'{$app_strings['LBL_LISTVIEW_NO_SELECTED']}')\">{$app_strings['LBL_MAP']}</a>";
155 155
 
156 156
 		return formLetter::LVSmarty().$script;
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -23,8 +23,7 @@
 block discarded – undo
23 23
         $deprecatedMessage = 'PHP4 Style Constructors are deprecated and will be remove in 7.8, please update your code';
24 24
         if(isset($GLOBALS['log'])) {
25 25
             $GLOBALS['log']->deprecated($deprecatedMessage);
26
-        }
27
-        else {
26
+        } else {
28 27
             trigger_error($deprecatedMessage, E_USER_DEPRECATED);
29 28
         }
30 29
         self::__construct($seed, $module, $subPanel, $options);
Please login to merge, or discard this patch.
modules/Accounts/AccountsJjwg_MapsLogicHook.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -15,9 +15,9 @@
 block discarded – undo
15 15
     /**
16 16
      * @deprecated deprecated since version 7.6, PHP4 Style Constructors are deprecated and will be remove in 7.8, please update your code, use __construct instead
17 17
      */
18
-    function AccountsJjwg_MapsLogicHook(){
18
+    function AccountsJjwg_MapsLogicHook() {
19 19
         $deprecatedMessage = 'PHP4 Style Constructors are deprecated and will be remove in 7.8, please update your code';
20
-        if(isset($GLOBALS['log'])) {
20
+        if (isset($GLOBALS['log'])) {
21 21
             $GLOBALS['log']->deprecated($deprecatedMessage);
22 22
         }
23 23
         else {
Please login to merge, or discard this 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 OpportunitiesJjwg_MapsLogicHook {
7 8
 
@@ -17,8 +18,7 @@  discard block
 block discarded – undo
17 18
         $deprecatedMessage = 'PHP4 Style Constructors are deprecated and will be remove in 7.8, please update your code';
18 19
         if(isset($GLOBALS['log'])) {
19 20
             $GLOBALS['log']->deprecated($deprecatedMessage);
20
-        }
21
-        else {
21
+        } else {
22 22
             trigger_error($deprecatedMessage, E_USER_DEPRECATED);
23 23
         }
24 24
         self::__construct();
Please login to merge, or discard this patch.