Code Duplication    Length = 5-7 lines in 2 locations

src/Controller/GithubController.php 2 locations

@@ 86-90 (lines=5) @@
83
		if ($this->_handleGithubResponse($status, 1, $reportId, $issueDetails['number'])) {
84
			$this->redirect(array('controller' => 'reports', 'action' => 'view',
85
					$reportId));
86
        } else {
87
            $flash_class = "alert alert-error";
88
            $this->Flash->default(_getErrors($issueDetails, $status),
89
					array("params" => array("class" => $flash_class)));
90
        }
91
	}
92
93
	/**
@@ 284-290 (lines=7) @@
281
					. " Are you sure the issue number is correct?!! Please check and try again",
282
					 array("params" => array("class" => $flash_class)));
283
			return false;
284
		} else {
285
			//fail
286
			$flash_class = "alert alert-error";
287
			$this->Flash->default(json_encode($response),
288
					array("params" => array("class" => $flash_class)));
289
			return false;
290
		}
291
	}
292
293
	/**