Code Duplication    Length = 19-19 lines in 2 locations

catalog/admin/includes/functions/general.php 1 location

@@ 424-442 (lines=19) @@
421
    $postcode = tep_output_string_protected($address['postcode']);
422
    $zip = $postcode;
423
424
    if ($html) {
425
// HTML Mode
426
      $HR = '<hr />';
427
      $hr = '<hr />';
428
      if ( ($boln == '') && ($eoln == "\n") ) { // Values not specified, use rational defaults
429
        $CR = '<br />';
430
        $cr = '<br />';
431
        $eoln = $cr;
432
      } else { // Use values supplied
433
        $CR = $eoln . $boln;
434
        $cr = $CR;
435
      }
436
    } else {
437
// Text Mode
438
      $CR = $eoln;
439
      $cr = $CR;
440
      $HR = '----------------------------------------';
441
      $hr = '----------------------------------------';
442
    }
443
444
    $statecomma = '';
445
    $streets = $street;

catalog/includes/functions/general.php 1 location

@@ 481-499 (lines=19) @@
478
    $postcode = tep_output_string_protected($address['postcode']);
479
    $zip = $postcode;
480
481
    if ($html) {
482
// HTML Mode
483
      $HR = '<hr />';
484
      $hr = '<hr />';
485
      if ( ($boln == '') && ($eoln == "\n") ) { // Values not specified, use rational defaults
486
        $CR = '<br />';
487
        $cr = '<br />';
488
        $eoln = $cr;
489
      } else { // Use values supplied
490
        $CR = $eoln . $boln;
491
        $cr = $CR;
492
      }
493
    } else {
494
// Text Mode
495
      $CR = $eoln;
496
      $cr = $CR;
497
      $HR = '----------------------------------------';
498
      $hr = '----------------------------------------';
499
    }
500
501
    $statecomma = '';
502
    $streets = $street;