mossadal/math-parser

View on GitHub
src/MathParser/Lexing/StdMathLexer.php

Summary

Maintainability
A
1 hr
Test Coverage

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

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

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

    There are no issues that match your filters.

    Category
    Status