Code Duplication    Length = 5-5 lines in 2 locations

manager/includes/src/Core.php 2 locations

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