Code Duplication    Length = 10-10 lines in 2 locations

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

@@ 396-405 (lines=10) @@
393
    $address_format = tep_db_fetch_array($address_format_query);
394
395
    $company = tep_output_string_protected($address['company']);
396
    if (isset($address['firstname']) && tep_not_null($address['firstname'])) {
397
      $firstname = tep_output_string_protected($address['firstname']);
398
      $lastname = tep_output_string_protected($address['lastname']);
399
    } elseif (isset($address['name']) && tep_not_null($address['name'])) {
400
      $firstname = tep_output_string_protected($address['name']);
401
      $lastname = '';
402
    } else {
403
      $firstname = '';
404
      $lastname = '';
405
    }
406
    $street = tep_output_string_protected($address['street_address']);
407
    $suburb = tep_output_string_protected($address['suburb']);
408
    $city = tep_output_string_protected($address['city']);

catalog/includes/functions/general.php 1 location

@@ 453-462 (lines=10) @@
450
    $address_format = tep_db_fetch_array($address_format_query);
451
452
    $company = tep_output_string_protected($address['company']);
453
    if (isset($address['firstname']) && tep_not_null($address['firstname'])) {
454
      $firstname = tep_output_string_protected($address['firstname']);
455
      $lastname = tep_output_string_protected($address['lastname']);
456
    } elseif (isset($address['name']) && tep_not_null($address['name'])) {
457
      $firstname = tep_output_string_protected($address['name']);
458
      $lastname = '';
459
    } else {
460
      $firstname = '';
461
      $lastname = '';
462
    }
463
    $street = tep_output_string_protected($address['street_address']);
464
    $suburb = tep_output_string_protected($address['suburb']);
465
    $city = tep_output_string_protected($address['city']);