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 = 9-10 lines in 3 locations

myth/Models/CIDbModel.php 3 locations

@@ 856-865 (lines=10) @@
853
854
        $this->db->where($this->primary_key, $id);
855
856
        if ($this->soft_deletes) {
857
            $sets = $this->log_user && is_object($this->authenticate)
858
                ? array($this->soft_delete_key => 1, $this->deleted_by_field => $this->authenticate->id())
859
                : array($this->soft_delete_key => 1);
860
861
            $result = $this->db->update($this->table_name, $sets);
862
        } // Hard Delete
863
        else {
864
            $result = $this->db->delete($this->table_name);
865
        }
866
867
        $this->trigger('after_delete', ['id' => $id, 'method' => 'delete', 'result' => $result] );
868
@@ 881-889 (lines=9) @@
878
879
        $where = $this->trigger('before_delete', ['method' => 'delete_by', 'fields' => $where]);
880
881
        if ($this->soft_deletes) {
882
            $sets = $this->log_user && is_object($this->authenticate)
883
                ? array($this->soft_delete_key => 1, $this->deleted_by_field => $this->authenticate->id())
884
                : array($this->soft_delete_key => 1);
885
886
            $result = $this->db->update($this->table_name, $sets);
887
        } else {
888
            $result = $this->db->delete($this->table_name);
889
        }
890
891
        $this->trigger('after_delete', ['method' => 'delete_by', 'fields' => $where, 'result' => $result] );
892
@@ 906-914 (lines=9) @@
903
904
        $this->db->where_in($this->primary_key, $ids);
905
906
        if ($this->soft_deletes) {
907
            $sets = $this->log_user && is_object($this->authenticate)
908
                ? array($this->soft_delete_key => 1, $this->deleted_by_field => $this->authenticate->id())
909
                : array($this->soft_delete_key => 1);
910
911
            $result = $this->db->update($this->table_name, $sets);
912
        } else {
913
            $result = $this->db->delete($this->table_name);
914
        }
915
916
        $this->trigger('after_delete', ['ids' => $ids, 'method' => 'delete_many', 'result' => $result]);
917