Code Duplication    Length = 14-14 lines in 2 locations

code/model/process/OrderStatusLog_SecurityCheck.php 2 locations

@@ 476-489 (lines=14) @@
473
                }
474
            }
475
        }
476
        if (count($ipArray)) {
477
            //are there any orders with the same IP in the xxx seven days...
478
            $otherPayments = EcommercePayment::get()->filter(
479
                array('IP' => $ipArray) + $timeFilter
480
            )->exclude(array('OrderID' => $order->ID));
481
            foreach ($otherPayments as $payment) {
482
                $otherOrder = $payment->Order();
483
                if (!isset($similarArray[$otherOrder->ID])) {
484
                    $similarArray[$otherOrder->ID] = array();
485
                }
486
                $similarArray[$otherOrder->ID]["IP"] = $otherOrder;
487
            }
488
            $this->blacklistCheck($ipArray, 'EcommerceSecurityIP');
489
        }
490
        if (count($ipProxyArray)) {
491
            //are there any orders with the same Proxy in the xxx seven days...
492
            $otherPayments = EcommercePayment::get()->filter(
@@ 490-503 (lines=14) @@
487
            }
488
            $this->blacklistCheck($ipArray, 'EcommerceSecurityIP');
489
        }
490
        if (count($ipProxyArray)) {
491
            //are there any orders with the same Proxy in the xxx seven days...
492
            $otherPayments = EcommercePayment::get()->filter(
493
                array('ProxyIP' => $ipProxyArray) + $timeFilter
494
            )->exclude(array('OrderID' => $order->ID));
495
            foreach ($otherPayments as $payment) {
496
                $otherOrder = $payment->Order();
497
                if (!isset($similarArray[$otherOrder->ID])) {
498
                    $similarArray[$otherOrder->ID] = array();
499
                }
500
                $similarArray[$otherOrder->ID]["ProxyIP"] = $otherOrder;
501
            }
502
            $this->blacklistCheck($ipProxyArray, 'EcommerceSecurityProxyIP');
503
        }
504
505
506
        if (count($this->warningMessages)) {