Code Duplication    Length = 6-6 lines in 2 locations

src/Controller/GithubController.php 2 locations

@@ 140-145 (lines=6) @@
137
            $ticket_id,
138
            $this->request->session()->read('access_token')
139
        );
140
        if (!$this->_handleGithubResponse($status, 2, $reportId, $ticket_id)) {
141
            $flash_class = 'alert alert-error';
142
            $this->Flash->default(_getErrors($commentDetails, $status),
143
                    array('params' => array('class' => $flash_class)));
144
        }
145
146
        $this->redirect(array('controller' => 'reports', 'action' => 'view',
147
                        $reportId, ));
148
    }
@@ 187-192 (lines=6) @@
184
            $this->request->session()->read('access_token')
185
        );
186
187
        if (!$this->_handleGithubResponse($status, 3, $reportId)) {
188
            $flash_class = 'alert alert-error';
189
            $this->Flash->default(_getErrors($commentDetails, $status),
190
                    array('params' => array('class' => $flash_class)));
191
        }
192
193
        $this->redirect(array('controller' => 'reports', 'action' => 'view',
194
                        $reportId, ));
195
    }