Code Duplication    Length = 7-7 lines in 7 locations

catalog/includes/apps/paypal/modules/EC/EC.php 2 locations

@@ 280-286 (lines=7) @@
277
        $OSCOM_PayPal->deleteParameter('MODULE_PAYMENT_PAYPAL_PRO_PAYFLOW_EC_VERIFY_SSL');
278
      }
279
280
      if ( defined('MODULE_PAYMENT_PAYPAL_EXPRESS_PROXY') ) {
281
        if ( !defined('OSCOM_APP_PAYPAL_PROXY') ) {
282
          $OSCOM_PayPal->saveParameter('OSCOM_APP_PAYPAL_PROXY', MODULE_PAYMENT_PAYPAL_EXPRESS_PROXY);
283
        }
284
285
        $OSCOM_PayPal->deleteParameter('MODULE_PAYMENT_PAYPAL_EXPRESS_PROXY');
286
      }
287
288
      if ( defined('MODULE_PAYMENT_PAYPAL_PRO_PAYFLOW_EC_PROXY') ) {
289
        if ( !defined('OSCOM_APP_PAYPAL_PROXY') ) {
@@ 288-294 (lines=7) @@
285
        $OSCOM_PayPal->deleteParameter('MODULE_PAYMENT_PAYPAL_EXPRESS_PROXY');
286
      }
287
288
      if ( defined('MODULE_PAYMENT_PAYPAL_PRO_PAYFLOW_EC_PROXY') ) {
289
        if ( !defined('OSCOM_APP_PAYPAL_PROXY') ) {
290
          $OSCOM_PayPal->saveParameter('OSCOM_APP_PAYPAL_PROXY', MODULE_PAYMENT_PAYPAL_PRO_PAYFLOW_EC_PROXY);
291
        }
292
293
        $OSCOM_PayPal->deleteParameter('MODULE_PAYMENT_PAYPAL_PRO_PAYFLOW_EC_PROXY');
294
      }
295
296
      if ( defined('MODULE_PAYMENT_PAYPAL_EXPRESS_DEBUG_EMAIL') ) {
297
        $OSCOM_PayPal->deleteParameter('MODULE_PAYMENT_PAYPAL_EXPRESS_DEBUG_EMAIL');

catalog/includes/apps/paypal/modules/HS/HS.php 1 location

@@ 190-196 (lines=7) @@
187
        $OSCOM_PayPal->deleteParameter('MODULE_PAYMENT_PAYPAL_PRO_HS_VERIFY_SSL');
188
      }
189
190
      if ( defined('MODULE_PAYMENT_PAYPAL_PRO_HS_PROXY') ) {
191
        if ( !defined('OSCOM_APP_PAYPAL_PROXY') ) {
192
          $OSCOM_PayPal->saveParameter('OSCOM_APP_PAYPAL_PROXY', MODULE_PAYMENT_PAYPAL_PRO_HS_PROXY);
193
        }
194
195
        $OSCOM_PayPal->deleteParameter('MODULE_PAYMENT_PAYPAL_PRO_HS_PROXY');
196
      }
197
198
      if ( defined('MODULE_PAYMENT_PAYPAL_PRO_HS_DEBUG_EMAIL') ) {
199
        $OSCOM_PayPal->deleteParameter('MODULE_PAYMENT_PAYPAL_PRO_HS_DEBUG_EMAIL');

catalog/includes/apps/paypal/modules/LOGIN/LOGIN.php 1 location

@@ 165-171 (lines=7) @@
162
        $OSCOM_PayPal->deleteParameter('MODULE_CONTENT_PAYPAL_LOGIN_VERIFY_SSL');
163
      }
164
165
      if ( defined('MODULE_CONTENT_PAYPAL_LOGIN_PROXY') ) {
166
        if ( !defined('OSCOM_APP_PAYPAL_PROXY') ) {
167
          $OSCOM_PayPal->saveParameter('OSCOM_APP_PAYPAL_PROXY', MODULE_CONTENT_PAYPAL_LOGIN_PROXY);
168
        }
169
170
        $OSCOM_PayPal->deleteParameter('MODULE_CONTENT_PAYPAL_LOGIN_PROXY');
171
      }
172
    }
173
  }
174
?>

catalog/includes/apps/paypal/modules/DP/DP.php 2 locations

@@ 282-288 (lines=7) @@
279
        $OSCOM_PayPal->deleteParameter('MODULE_PAYMENT_PAYPAL_PRO_PAYFLOW_DP_VERIFY_SSL');
280
      }
281
282
      if ( defined('MODULE_PAYMENT_PAYPAL_PRO_DP_PROXY') ) {
283
        if ( !defined('OSCOM_APP_PAYPAL_PROXY') ) {
284
          $OSCOM_PayPal->saveParameter('OSCOM_APP_PAYPAL_PROXY', MODULE_PAYMENT_PAYPAL_PRO_DP_PROXY);
285
        }
286
287
        $OSCOM_PayPal->deleteParameter('MODULE_PAYMENT_PAYPAL_PRO_DP_PROXY');
288
      }
289
290
      if ( defined('MODULE_PAYMENT_PAYPAL_PRO_PAYFLOW_DP_PROXY') ) {
291
        if ( !defined('OSCOM_APP_PAYPAL_PROXY') ) {
@@ 290-296 (lines=7) @@
287
        $OSCOM_PayPal->deleteParameter('MODULE_PAYMENT_PAYPAL_PRO_DP_PROXY');
288
      }
289
290
      if ( defined('MODULE_PAYMENT_PAYPAL_PRO_PAYFLOW_DP_PROXY') ) {
291
        if ( !defined('OSCOM_APP_PAYPAL_PROXY') ) {
292
          $OSCOM_PayPal->saveParameter('OSCOM_APP_PAYPAL_PROXY', MODULE_PAYMENT_PAYPAL_PRO_PAYFLOW_DP_PROXY);
293
        }
294
295
        $OSCOM_PayPal->deleteParameter('MODULE_PAYMENT_PAYPAL_PRO_PAYFLOW_DP_PROXY');
296
      }
297
298
      if ( defined('MODULE_PAYMENT_PAYPAL_PRO_DP_DEBUG_EMAIL') ) {
299
        $OSCOM_PayPal->deleteParameter('MODULE_PAYMENT_PAYPAL_PRO_DP_DEBUG_EMAIL');

catalog/includes/apps/paypal/modules/PS/PS.php 1 location

@@ 180-186 (lines=7) @@
177
        $OSCOM_PayPal->deleteParameter('MODULE_PAYMENT_PAYPAL_STANDARD_VERIFY_SSL');
178
      }
179
180
      if ( defined('MODULE_PAYMENT_PAYPAL_STANDARD_PROXY') ) {
181
        if ( !defined('OSCOM_APP_PAYPAL_PROXY') ) {
182
          $OSCOM_PayPal->saveParameter('OSCOM_APP_PAYPAL_PROXY', MODULE_PAYMENT_PAYPAL_STANDARD_PROXY);
183
        }
184
185
        $OSCOM_PayPal->deleteParameter('MODULE_PAYMENT_PAYPAL_STANDARD_PROXY');
186
      }
187
188
      if ( defined('MODULE_PAYMENT_PAYPAL_STANDARD_DEBUG_EMAIL') ) {
189
        $OSCOM_PayPal->deleteParameter('MODULE_PAYMENT_PAYPAL_STANDARD_DEBUG_EMAIL');