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

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

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

@@ 537-545 (lines=9) @@
534
            break;
535
        }
536
537
        switch ( $response['AVSZIP'] ) {
538
          case 'Y':
539
            $result .= 'AVS ZIP: Match' . "\n";
540
            break;
541
542
          case 'N':
543
            $result .= 'AVS ZIP: No Match' . "\n";
544
            break;
545
        }
546
547
        switch ( $response['IAVS'] ) {
548
          case 'Y':