Code Duplication    Length = 6-6 lines in 2 locations

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

@@ 347-352 (lines=6) @@
344
      '$country' => ''
345
    ];
346
347
    if (isset($address['firstname']) && tep_not_null($address['firstname'])) {
348
      $replace['$firstname'] = HTML::outputProtected($address['firstname']);
349
      $replace['$lastname'] = HTML::outputProtected($address['lastname']);
350
    } elseif (isset($address['name']) && tep_not_null($address['name'])) {
351
      $replace['$firstname'] = HTML::outputProtected($address['name']);
352
    }
353
354
    if (isset($address['country_id']) && tep_not_null($address['country_id'])) {
355
      $replace['$country'] = tep_get_country_name($address['country_id']);

catalog/includes/functions/general.php 1 location

@@ 443-448 (lines=6) @@
440
      '$country' => ''
441
    ];
442
443
    if (isset($address['firstname']) && tep_not_null($address['firstname'])) {
444
      $replace['$firstname'] = HTML::outputProtected($address['firstname']);
445
      $replace['$lastname'] = HTML::outputProtected($address['lastname']);
446
    } elseif (isset($address['name']) && tep_not_null($address['name'])) {
447
      $replace['$firstname'] = HTML::outputProtected($address['name']);
448
    }
449
450
    if (isset($address['country_id']) && tep_not_null($address['country_id'])) {
451
      $replace['$country'] = tep_get_country_name($address['country_id']);