Code Duplication    Length = 7-7 lines in 2 locations

catalog/includes/modules/payment/paypal_express.php 2 locations

@@ 335-341 (lines=7) @@
332
        tep_redirect(tep_href_link(FILENAME_SHOPPING_CART, 'error_message=' . stripslashes($appPayPalEcResult['L_LONGMESSAGE0']), 'SSL'));
333
      }
334
335
      if (empty($comments)) {
336
        if (isset($HTTP_POST_VARS['ppecomments']) && tep_not_null($HTTP_POST_VARS['ppecomments'])) {
337
          $comments = tep_db_prepare_input($HTTP_POST_VARS['ppecomments']);
338
339
          $order->info['comments'] = $comments;
340
        }
341
      }
342
343
      $params = array('TOKEN' => $appPayPalEcResult['TOKEN'],
344
                      'PAYERID' => $appPayPalEcResult['PAYERID'],
@@ 391-397 (lines=7) @@
388
        tep_redirect(tep_href_link(FILENAME_SHOPPING_CART, 'error_message=' . urlencode($appPayPalEcResult['OSCOM_ERROR_MESSAGE']), 'SSL'));
389
      }
390
391
      if ( empty($comments) ) {
392
        if ( isset($HTTP_POST_VARS['ppecomments']) && tep_not_null($HTTP_POST_VARS['ppecomments']) ) {
393
          $comments = tep_db_prepare_input($HTTP_POST_VARS['ppecomments']);
394
395
          $order->info['comments'] = $comments;
396
        }
397
      }
398
399
      $params = array('EMAIL' => $order->customer['email_address'],
400
                      'TOKEN' => $appPayPalEcResult['TOKEN'],