Code Duplication    Length = 6-6 lines in 2 locations

src/Controller/GithubController.php 2 locations

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