Code Duplication    Length = 8-8 lines in 2 locations

web_interface/astpp/application/libraries/astpp/common.php 2 locations

@@ 603-610 (lines=8) @@
600
      Payment to refill
601
    ******/
602
603
    function get_refill_by($select = "", $table = "", $type) {
604
        if ($type == '-1') {
605
            $type = "Admin";
606
        } else {
607
            $type = $this->get_field_name("number", "accounts", array("id" => $type));
608
        }
609
        return $type;
610
    }
611
612
    /******************* */
613
@@ 614-621 (lines=8) @@
611
612
    /******************* */
613
614
    function get_payment_by($select = "", $table = "", $type) {
615
        if ($type == '-1') {
616
            $type = "Admin";
617
        } else {
618
            $type = $this->get_field_name("number", "accounts", array("id" => $type));
619
        }
620
        return $type;
621
    }
622
623
    function set_payment_type($payment_type = '') {
624
        /*