Code Duplication    Length = 5-5 lines in 2 locations

manager/includes/src/Core.php 2 locations

@@ 4933-4937 (lines=5) @@
4930
    public function sendAlert($type, $to, $from, $subject, $msg, $private = 0)
4931
    {
4932
        $private = ($private) ? 1 : 0;
4933
        if (!is_numeric($to)) {
4934
            // Query for the To ID
4935
            $rs = $this->db->select('id', $this->getFullTableName("manager_users"), "username='{$to}'");
4936
            $to = $this->db->getValue($rs);
4937
        }
4938
        if (!is_numeric($from)) {
4939
            // Query for the From ID
4940
            $rs = $this->db->select('id', $this->getFullTableName("manager_users"), "username='{$from}'");
@@ 4938-4942 (lines=5) @@
4935
            $rs = $this->db->select('id', $this->getFullTableName("manager_users"), "username='{$to}'");
4936
            $to = $this->db->getValue($rs);
4937
        }
4938
        if (!is_numeric($from)) {
4939
            // Query for the From ID
4940
            $rs = $this->db->select('id', $this->getFullTableName("manager_users"), "username='{$from}'");
4941
            $from = $this->db->getValue($rs);
4942
        }
4943
        // insert a new message into user_messages
4944
        $this->db->insert(array(
4945
            'type' => $type,