Code Duplication    Length = 14-14 lines in 7 locations

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

@@ 226-239 (lines=14) @@
223
        $OSCOM_PayPal->deleteParameter('MODULE_PAYMENT_PAYPAL_PRO_PAYFLOW_EC_TRANSACTIONS_ORDER_STATUS_ID');
224
      }
225
226
      if ( defined('MODULE_PAYMENT_PAYPAL_EXPRESS_STATUS') ) {
227
        $status = '-1';
228
229
        if ( (MODULE_PAYMENT_PAYPAL_EXPRESS_STATUS == 'True') && defined('MODULE_PAYMENT_PAYPAL_EXPRESS_TRANSACTION_SERVER') ) {
230
          if ( MODULE_PAYMENT_PAYPAL_EXPRESS_TRANSACTION_SERVER == 'Live' ) {
231
            $status = '1';
232
          } else {
233
            $status = '0';
234
          }
235
        }
236
237
        $OSCOM_PayPal->saveParameter('OSCOM_APP_PAYPAL_EC_STATUS', $status);
238
        $OSCOM_PayPal->deleteParameter('MODULE_PAYMENT_PAYPAL_EXPRESS_STATUS');
239
      }
240
241
      if ( defined('MODULE_PAYMENT_PAYPAL_PRO_PAYFLOW_EC_STATUS') ) {
242
        $status = '-1';
@@ 241-254 (lines=14) @@
238
        $OSCOM_PayPal->deleteParameter('MODULE_PAYMENT_PAYPAL_EXPRESS_STATUS');
239
      }
240
241
      if ( defined('MODULE_PAYMENT_PAYPAL_PRO_PAYFLOW_EC_STATUS') ) {
242
        $status = '-1';
243
244
        if ( (MODULE_PAYMENT_PAYPAL_PRO_PAYFLOW_EC_STATUS == 'True') && defined('MODULE_PAYMENT_PAYPAL_PRO_PAYFLOW_EC_TRANSACTION_SERVER') ) {
245
          if ( MODULE_PAYMENT_PAYPAL_PRO_PAYFLOW_EC_TRANSACTION_SERVER == 'Live' ) {
246
            $status = '1';
247
          } else {
248
            $status = '0';
249
          }
250
        }
251
252
        $OSCOM_PayPal->saveParameter('OSCOM_APP_PAYPAL_EC_STATUS', $status);
253
        $OSCOM_PayPal->deleteParameter('MODULE_PAYMENT_PAYPAL_PRO_PAYFLOW_EC_STATUS');
254
      }
255
256
      if ( defined('MODULE_PAYMENT_PAYPAL_EXPRESS_TRANSACTION_SERVER') ) {
257
        $OSCOM_PayPal->deleteParameter('MODULE_PAYMENT_PAYPAL_EXPRESS_TRANSACTION_SERVER');

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

@@ 163-176 (lines=14) @@
160
        $OSCOM_PayPal->deleteParameter('MODULE_PAYMENT_PAYPAL_PRO_HS_TRANSACTIONS_ORDER_STATUS_ID');
161
      }
162
163
      if ( defined('MODULE_PAYMENT_PAYPAL_PRO_HS_STATUS') ) {
164
        $status = '-1';
165
166
        if ( (MODULE_PAYMENT_PAYPAL_PRO_HS_STATUS == 'True') && defined('MODULE_PAYMENT_PAYPAL_PRO_HS_GATEWAY_SERVER') ) {
167
          if ( MODULE_PAYMENT_PAYPAL_PRO_HS_GATEWAY_SERVER == 'Live' ) {
168
            $status = '1';
169
          } else {
170
            $status = '0';
171
          }
172
        }
173
174
        $OSCOM_PayPal->saveParameter('OSCOM_APP_PAYPAL_HS_STATUS', $status);
175
        $OSCOM_PayPal->deleteParameter('MODULE_PAYMENT_PAYPAL_PRO_HS_STATUS');
176
      }
177
178
      if ( defined('MODULE_PAYMENT_PAYPAL_PRO_HS_GATEWAY_SERVER') ) {
179
        $OSCOM_PayPal->deleteParameter('MODULE_PAYMENT_PAYPAL_PRO_HS_GATEWAY_SERVER');

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

@@ 138-151 (lines=14) @@
135
        $OSCOM_PayPal->deleteParameter('MODULE_CONTENT_PAYPAL_LOGIN_SORT_ORDER');
136
      }
137
138
      if ( defined('MODULE_CONTENT_PAYPAL_LOGIN_STATUS') ) {
139
        $status = '-1';
140
141
        if ( (MODULE_CONTENT_PAYPAL_LOGIN_STATUS == 'True') && defined('MODULE_CONTENT_PAYPAL_LOGIN_SERVER_TYPE') ) {
142
          if ( MODULE_CONTENT_PAYPAL_LOGIN_SERVER_TYPE == 'Live' ) {
143
            $status = '1';
144
          } else {
145
            $status = '0';
146
          }
147
        }
148
149
        $OSCOM_PayPal->saveParameter('OSCOM_APP_PAYPAL_LOGIN_STATUS', $status);
150
        $OSCOM_PayPal->deleteParameter('MODULE_CONTENT_PAYPAL_LOGIN_STATUS');
151
      }
152
153
      if ( defined('MODULE_CONTENT_PAYPAL_LOGIN_SERVER_TYPE') ) {
154
        $OSCOM_PayPal->deleteParameter('MODULE_CONTENT_PAYPAL_LOGIN_SERVER_TYPE');

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

@@ 197-210 (lines=14) @@
194
        $OSCOM_PayPal->deleteParameter('MODULE_PAYMENT_PAYPAL_PRO_PAYFLOW_DP_TRANSACTIONS_ORDER_STATUS_ID');
195
      }
196
197
      if ( defined('MODULE_PAYMENT_PAYPAL_PRO_DP_STATUS') ) {
198
        $status = '-1';
199
200
        if ( (MODULE_PAYMENT_PAYPAL_PRO_DP_STATUS == 'True') && defined('MODULE_PAYMENT_PAYPAL_PRO_DP_TRANSACTION_SERVER') ) {
201
          if ( MODULE_PAYMENT_PAYPAL_PRO_DP_TRANSACTION_SERVER == 'Live' ) {
202
            $status = '1';
203
          } else {
204
            $status = '0';
205
          }
206
        }
207
208
        $OSCOM_PayPal->saveParameter('OSCOM_APP_PAYPAL_DP_STATUS', $status);
209
        $OSCOM_PayPal->deleteParameter('MODULE_PAYMENT_PAYPAL_PRO_DP_STATUS');
210
      }
211
212
      if ( defined('MODULE_PAYMENT_PAYPAL_PRO_PAYFLOW_DP_STATUS') ) {
213
        $status = '-1';
@@ 212-225 (lines=14) @@
209
        $OSCOM_PayPal->deleteParameter('MODULE_PAYMENT_PAYPAL_PRO_DP_STATUS');
210
      }
211
212
      if ( defined('MODULE_PAYMENT_PAYPAL_PRO_PAYFLOW_DP_STATUS') ) {
213
        $status = '-1';
214
215
        if ( (MODULE_PAYMENT_PAYPAL_PRO_PAYFLOW_DP_STATUS == 'True') && defined('MODULE_PAYMENT_PAYPAL_PRO_PAYFLOW_DP_TRANSACTION_SERVER') ) {
216
          if ( MODULE_PAYMENT_PAYPAL_PRO_PAYFLOW_DP_TRANSACTION_SERVER == 'Live' ) {
217
            $status = '1';
218
          } else {
219
            $status = '0';
220
          }
221
        }
222
223
        $OSCOM_PayPal->saveParameter('OSCOM_APP_PAYPAL_DP_STATUS', $status);
224
        $OSCOM_PayPal->deleteParameter('MODULE_PAYMENT_PAYPAL_PRO_PAYFLOW_DP_STATUS');
225
      }
226
227
      if ( defined('MODULE_PAYMENT_PAYPAL_PRO_DP_TRANSACTION_SERVER') ) {
228
        $OSCOM_PayPal->deleteParameter('MODULE_PAYMENT_PAYPAL_PRO_DP_TRANSACTION_SERVER');

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

@@ 153-166 (lines=14) @@
150
        $OSCOM_PayPal->deleteParameter('MODULE_PAYMENT_PAYPAL_STANDARD_TRANSACTIONS_ORDER_STATUS_ID');
151
      }
152
153
      if ( defined('MODULE_PAYMENT_PAYPAL_STANDARD_STATUS') ) {
154
        $status = '-1';
155
156
        if ( (MODULE_PAYMENT_PAYPAL_STANDARD_STATUS == 'True') && defined('MODULE_PAYMENT_PAYPAL_STANDARD_GATEWAY_SERVER') ) {
157
          if ( MODULE_PAYMENT_PAYPAL_STANDARD_GATEWAY_SERVER == 'Live' ) {
158
            $status = '1';
159
          } else {
160
            $status = '0';
161
          }
162
        }
163
164
        $OSCOM_PayPal->saveParameter('OSCOM_APP_PAYPAL_PS_STATUS', $status);
165
        $OSCOM_PayPal->deleteParameter('MODULE_PAYMENT_PAYPAL_STANDARD_STATUS');
166
      }
167
168
      if ( defined('MODULE_PAYMENT_PAYPAL_STANDARD_GATEWAY_SERVER') ) {
169
        $OSCOM_PayPal->deleteParameter('MODULE_PAYMENT_PAYPAL_STANDARD_GATEWAY_SERVER');