Code Duplication    Length = 14-14 lines in 2 locations

code/model/process/OrderStatusLog_SecurityCheck.php 2 locations

@@ 404-417 (lines=14) @@
401
                }
402
            }
403
        }
404
        if(count($ipArray)) {
405
            //are there any orders with the same IP in the xxx seven days...
406
            $otherPayments = EcommercePayment::get()->filter(
407
                array('IP' => $ipArray) + $timeFilter
408
            )->exclude(array('OrderID' => $order->ID));
409
            foreach ($otherPayments as $payment) {
410
                $otherOrder = $payment->Order();
411
                if (!isset($similarArray[$otherOrder->ID])) {
412
                    $similarArray[$otherOrder->ID] = array();
413
                }
414
                $similarArray[$otherOrder->ID]["IP"] = $otherOrder;
415
            }
416
            $this->blacklistCheck($ipArray, 'EcommerceSecurityIP');
417
        }
418
        if(count($ipProxyArray)) {
419
            //are there any orders with the same Proxy in the xxx seven days...
420
            $otherPayments = EcommercePayment::get()->filter(
@@ 418-431 (lines=14) @@
415
            }
416
            $this->blacklistCheck($ipArray, 'EcommerceSecurityIP');
417
        }
418
        if(count($ipProxyArray)) {
419
            //are there any orders with the same Proxy in the xxx seven days...
420
            $otherPayments = EcommercePayment::get()->filter(
421
                array('ProxyIP' => $ipProxyArray) + $timeFilter
422
            )->exclude(array('OrderID' => $order->ID));
423
            foreach ($otherPayments as $payment) {
424
                $otherOrder = $payment->Order();
425
                if (!isset($similarArray[$otherOrder->ID])) {
426
                    $similarArray[$otherOrder->ID] = array();
427
                }
428
                $similarArray[$otherOrder->ID]["ProxyIP"] = $otherOrder;
429
            }
430
            $this->blacklistCheck($ipProxyArray, 'EcommerceSecurityProxyIP');
431
        }
432
433
434
        if (count($this->warningMessages)) {