j84reginato/my-eval

View on GitHub
src/Lexing/AbstractLexer.php

Summary

Maintainability
A
1 hr
Test Coverage

Method __construct has 48 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function __construct()
    {
        $this->add(new TokenDefinition('/\d+[,\.]\d+(e[+-]?\d+)?/', TokenType::REAL_NUMBER));

        $this->add(new TokenDefinition('/\d+/', TokenType::NATURAL_NUMBER));
Severity: Minor
Found in src/Lexing/AbstractLexer.php - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status