Code Duplication    Length = 10-10 lines in 2 locations

dashboard/application/controllers/computing-support/Private_drive.php 1 location

@@ 82-91 (lines=10) @@
79
                    $this->load->view('templates/header');
80
                    $this->load->view('computing-support/private-drive/complete');
81
                    $this->load->view('templates/footer');
82
                } else {
83
84
                    $data = new stdClass();
85
                    $data->error = 'There was a problem requesting access. Please try again.';
86
87
                    // failed to create user
88
                    $this->load->view('templates/header');
89
                    $this->load->view('computing-support/private-drive/view', $data);
90
                    $this->load->view('templates/footer');
91
                }
92
            }
93
        } else {
94
            redirect('permissions');

dashboard/application/controllers/computing-support/Room_move.php 1 location

@@ 196-205 (lines=10) @@
193
                https://intranet.cant-col.ac.uk/dashboard/computing-support/room-move/check');
194
                $this->email->send();
195
                
196
            } else {
197
198
                $data = new stdClass();
199
                $data->error = 'There was a problem requesting this move. Please try again.';
200
201
                // failed to create user
202
                $this->load->view('templates/header');
203
                $this->load->view('computing-support/room-move/view', $data);
204
                $this->load->view('templates/footer');
205
            }
206
        }
207
    }
208