Code Duplication    Length = 9-9 lines in 6 locations

catalog/includes/apps/paypal/hooks/admin/orders/action.php 1 location

@@ 141-149 (lines=9) @@
138
              break;
139
          }
140
141
          switch ( $response['AVSZIP'] ) {
142
            case 'Y':
143
              $result .= 'AVS ZIP: Match' . "\n";
144
              break;
145
146
            case 'N':
147
              $result .= 'AVS ZIP: No Match' . "\n";
148
              break;
149
          }
150
151
          switch ( $response['IAVS'] ) {
152
            case 'Y':

catalog/includes/modules/payment/paypal_pro_dp.php 4 locations

@@ 464-472 (lines=9) @@
461
        $result .= 'Pending Reason: ' . tep_output_string_protected($pending_reason) . "\n";
462
      }
463
464
      switch ( $response_array['AVSADDR'] ) {
465
        case 'Y':
466
          $result .= 'AVS Address: Match' . "\n";
467
          break;
468
469
        case 'N':
470
          $result .= 'AVS Address: No Match' . "\n";
471
          break;
472
      }
473
474
      switch ( $response_array['AVSZIP'] ) {
475
        case 'Y':
@@ 474-482 (lines=9) @@
471
          break;
472
      }
473
474
      switch ( $response_array['AVSZIP'] ) {
475
        case 'Y':
476
          $result .= 'AVS ZIP: Match' . "\n";
477
          break;
478
479
        case 'N':
480
          $result .= 'AVS ZIP: No Match' . "\n";
481
          break;
482
      }
483
484
      switch ( $response_array['IAVS'] ) {
485
        case 'Y':
@@ 484-492 (lines=9) @@
481
          break;
482
      }
483
484
      switch ( $response_array['IAVS'] ) {
485
        case 'Y':
486
          $result .= 'IAVS: International' . "\n";
487
          break;
488
489
        case 'N':
490
          $result .= 'IAVS: USA' . "\n";
491
          break;
492
      }
493
494
      switch ( $response_array['CVV2MATCH'] ) {
495
        case 'Y':
@@ 494-502 (lines=9) @@
491
          break;
492
      }
493
494
      switch ( $response_array['CVV2MATCH'] ) {
495
        case 'Y':
496
          $result .= 'CVV2: Match' . "\n";
497
          break;
498
499
        case 'N':
500
          $result .= 'CVV2: No Match' . "\n";
501
          break;
502
      }
503
504
      $sql_data_array = array('orders_id' => $insert_id,
505
                              'orders_status_id' => OSCOM_APP_PAYPAL_TRANSACTIONS_ORDER_STATUS_ID,

catalog/includes/modules/payment/paypal_express.php 1 location

@@ 523-531 (lines=9) @@
520
            break;
521
        }
522
523
        switch ( $response['AVSZIP'] ) {
524
          case 'Y':
525
            $result .= 'AVS ZIP: Match' . "\n";
526
            break;
527
528
          case 'N':
529
            $result .= 'AVS ZIP: No Match' . "\n";
530
            break;
531
        }
532
533
        switch ( $response['IAVS'] ) {
534
          case 'Y':