Code Duplication    Length = 6-6 lines in 2 locations

application/modules/comments/admin.php 2 locations

@@ 38-43 (lines=6) @@
35
        $off_set = $segs['page'];
36
37
        switch ($status) {
38
            case 'all':
39
                $this->db->where('status', '0');
40
                $this->db->or_where('status', '1');
41
                $this->db->or_where('status', '2');
42
                $status_all = 'all';
43
                break;
44
45
            case 'waiting':
46
                $this->db->where('status', 1);
@@ 60-65 (lines=6) @@
57
                $status_all = '2';
58
                break;
59
60
            default:
61
                $this->db->where('status', '0');
62
                $this->db->or_where('status', '1');
63
                $status_all = 'all';
64
                $status = 'all';
65
                break;
66
        }
67
68
        //        $comments = $this->comments->all($this->per_page, $off_set);