src/Parsing/Nodes/Node.php
Method factory
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static function factory(Token $token): Node
{
return match ($token->type) {
// Operands
TokenType::NATURAL_NUMBER,
Method complexity
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function complexity(): int
{
switch (\get_class($this)) {
case IntegerNode::class:
case VariableNode::class: