Code Duplication    Length = 14-14 lines in 2 locations

code/model/process/OrderStatusLog_SecurityCheck.php 2 locations

@@ 393-406 (lines=14) @@
390
                }
391
            }
392
        }
393
        if(count($ipArray)) {
394
            //are there any orders with the same IP in the xxx seven days...
395
            $otherPayments = EcommercePayment::get()->filter(
396
                array('IP' => $ipArray) + $timeFilter
397
            )->exclude(array('OrderID' => $order->ID));
398
            foreach ($otherPayments as $payment) {
399
                $otherOrder = $payment->Order();
400
                if (!isset($similarArray[$otherOrder->ID])) {
401
                    $similarArray[$otherOrder->ID] = array();
402
                }
403
                $similarArray[$otherOrder->ID]["IP"] = $otherOrder;
404
            }
405
            $this->blacklistCheck($ipArray, 'EcommerceSecurityIP');
406
        }
407
        if(count($ipProxyArray)) {
408
            //are there any orders with the same Proxy in the xxx seven days...
409
            $otherPayments = EcommercePayment::get()->filter(
@@ 407-420 (lines=14) @@
404
            }
405
            $this->blacklistCheck($ipArray, 'EcommerceSecurityIP');
406
        }
407
        if(count($ipProxyArray)) {
408
            //are there any orders with the same Proxy in the xxx seven days...
409
            $otherPayments = EcommercePayment::get()->filter(
410
                array('ProxyIP' => $ipProxyArray) + $timeFilter
411
            )->exclude(array('OrderID' => $order->ID));
412
            foreach ($otherPayments as $payment) {
413
                $otherOrder = $payment->Order();
414
                if (!isset($similarArray[$otherOrder->ID])) {
415
                    $similarArray[$otherOrder->ID] = array();
416
                }
417
                $similarArray[$otherOrder->ID]["ProxyIP"] = $otherOrder;
418
            }
419
            $this->blacklistCheck($ipProxyArray, 'EcommerceSecurityProxyIP');
420
        }
421
422
423
        if (count($this->warningMessages)) {