AlexeyShobanov/php-project-lvl1

View on GitHub

Showing 2 of 2 total issues

Method runGameCalc has 28 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function runGameCalc()
{
    define('MIN_NUM', 0);
    define('MAX_NUM', 100);
    define('TASK', "What is the result of the expression?");
Severity: Minor
Found in src/games/calc.php - About 1 hr to fix

    Avoid too many return statements within this method.
    Open

        return runGame($runGameCalc, TASK);
    Severity: Major
    Found in src/games/calc.php - About 30 mins to fix
      Severity
      Category
      Status
      Source
      Language