Code Duplication    Length = 6-6 lines in 2 locations

src/Controller/GithubController.php 2 locations

@@ 144-149 (lines=6) @@
141
            $ticket_id,
142
            $this->request->session()->read('access_token')
143
        );
144
        if (!$this->_handleGithubResponse($status, 2, $reportId, $ticket_id)) {
145
            $flash_class = 'alert alert-error';
146
            $this->Flash->default(_getErrors($commentDetails, $status),
147
                    array('params' => array('class' => $flash_class)));
148
        }
149
150
        $this->redirect(array('controller' => 'reports', 'action' => 'view',
151
                        $reportId, ));
152
    }
@@ 191-196 (lines=6) @@
188
            $this->request->session()->read('access_token')
189
        );
190
191
        if (!$this->_handleGithubResponse($status, 3, $reportId)) {
192
            $flash_class = 'alert alert-error';
193
            $this->Flash->default(_getErrors($commentDetails, $status),
194
                    array('params' => array('class' => $flash_class)));
195
        }
196
197
        $this->redirect(array('controller' => 'reports', 'action' => 'view',
198
                        $reportId, ));
199
    }