Code Duplication    Length = 6-8 lines in 2 locations

code/model/process/OrderStep_SecurityCheck.php 1 location

@@ 49-56 (lines=8) @@
46
    public function initStep(Order $order)
47
    {
48
        $logCount = $this->RelevantLogEntries($order)->count();
49
        if ($logCount) {
50
            //do nothing
51
        } else {
52
            $className = $this->relevantLogEntryClassName;
53
            $object = $className::create();
54
            $object->OrderID = $order->ID;
55
            $object->write();
56
        }
57
        return true;
58
    }
59

code/model/process/OrderStep_WhitelistCustomer.php 1 location

@@ 70-75 (lines=6) @@
67
            return $this->_completed;
68
        }
69
        $entry = $this->RelevantLogEntry($order);
70
        if (! $entry) {
71
            $className = $this->relevantLogEntryClassName;
72
            $entry = $className::create();
73
            $entry->OrderID = $order->ID;
74
            $entry->write();
75
        }
76
        $entry->assessCustomer();
77
        $this->_completed = true;
78