guibranco / gstraccini-bot

Function with cyclomatic complexity higher than threshold found PHP-R1006
Anti-pattern
Minor
11 days ago7 months old
handleItem has a cyclomatic complexity of 21 with "High" risk
  8define("ISSUES", "/issues/");
  9define("PULLS", "/pulls/");
 10
 11function handleItem($pullRequest, $isRetry = false) 12{
 13    if (!$isRetry) {
 14        echo "https://github.com/{$pullRequest->RepositoryOwner}/{$pullRequest->RepositoryName}/pull/{$pullRequest->Number}:\n\n";