mossadal/math-parser

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

Summary

Maintainability
A
1 hr
Test Coverage

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

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

Severity: Minor
Found in src/MathParser/Lexing/ComplexLexer.php - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status