Code Duplication    Length = 6-6 lines in 2 locations

src/Controller/GithubController.php 2 locations

@@ 134-139 (lines=6) @@
131
            $ticket_id,
132
            $this->request->session()->read('access_token')
133
        );
134
        if (!$this->_handleGithubResponse($status, 2, $reportId, $ticket_id)) {
135
            $flash_class = 'alert alert-error';
136
            $this->Flash->default(_getErrors($commentDetails, $status),
137
                    array('params' => array('class' => $flash_class)));
138
        }
139
140
        $this->redirect(array('controller' => 'reports', 'action' => 'view',
141
                        $reportId, ));
142
    }
@@ 181-186 (lines=6) @@
178
            $this->request->session()->read('access_token')
179
        );
180
181
        if (!$this->_handleGithubResponse($status, 3, $reportId)) {
182
            $flash_class = 'alert alert-error';
183
            $this->Flash->default(_getErrors($commentDetails, $status),
184
                    array('params' => array('class' => $flash_class)));
185
        }
186
187
        $this->redirect(array('controller' => 'reports', 'action' => 'view',
188
                        $reportId, ));
189
    }