j84reginato/my-eval

View on GitHub
src/Parsing/Nodes/Node.php

Summary

Maintainability
A
2 hrs
Test Coverage

Method factory has 34 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public static function factory(Token $token): Node
    {
        return match ($token->type) {
            // Operands
            TokenType::NATURAL_NUMBER,
Severity: Minor
Found in src/Parsing/Nodes/Node.php - About 1 hr to fix

    Method complexity has 27 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        public function complexity(): int
        {
            switch (\get_class($this)) {
                case IntegerNode::class:
                case VariableNode::class:
    Severity: Minor
    Found in src/Parsing/Nodes/Node.php - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status