GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.

Code Duplication    Length = 22-26 lines in 2 locations

myth/Models/CIDbModel.php 2 locations

@@ 502-527 (lines=26) @@
499
     * @param  array $skip_validation If TRUE, will skip validation of data for this call only.
500
     * @return mixed       The primary_key value of the inserted record, or FALSE.
501
     */
502
    public function insert($data, $skip_validation = null)
503
    {
504
        $skip_validation = is_null($skip_validation) ? $this->skip_validation : $skip_validation;
505
506
        if ($skip_validation === FALSE) {
507
            $data = $this->validate($data, 'insert', $skip_validation);
508
        }
509
510
        if ($data !== FALSE) {
511
            $data = $this->trigger('before_insert', ['method' => 'insert', 'fields' => $data]);
512
513
            $this->db->insert($this->table_name, $this->prep_data($data) );
514
515
            if ($this->return_insert_id) {
516
                $id = $this->db->insert_id();
517
518
                $this->trigger('after_insert', ['id' => $id, 'fields' => $data, 'method' => 'insert']);
519
520
                return $id;
521
            }
522
523
            return TRUE;
524
        } else {
525
            return FALSE;
526
        }
527
    }
528
529
    //--------------------------------------------------------------------
530
@@ 777-798 (lines=22) @@
774
     * @param  array $skip_validation If TRUE, will skip validation of data for this call only.
775
     * @return bool
776
     */
777
    public function update_all($data, $skip_validation = FALSE)
778
    {
779
        $data = $this->trigger('before_update', ['method' => 'update_all', 'fields' => $data] );
780
781
        $skip_validation = is_null($skip_validation) ? $this->skip_validation : $skip_validation;
782
783
        if ($skip_validation === FALSE) {
784
            $data = $this->validate($data);
785
        }
786
787
        // Will be false if it didn't validate.
788
        if ($data !== FALSE) {
789
            $this->db->set( $this->prep_data($data) );
790
            $result = $this->db->update($this->table_name);
791
792
            $this->trigger('after_update', ['method' => 'update_all', 'fields' => $data, 'result' => $result] );
793
794
            return $result;
795
        } else {
796
            return FALSE;
797
        }
798
    }
799
800
    //--------------------------------------------------------------------
801