martin-helmich/typo3-typoscript-parser

View on GitHub
src/Parser/AST/Builder.php

Summary

Maintainability
A
35 mins
Test Coverage
A
100%

The class Builder has 11 public methods. Consider refactoring Builder to keep number of public methods under 10.
Open

class Builder
{
    private Operator\Builder $operatorBuilder;

    /**
Severity: Minor
Found in src/Parser/AST/Builder.php by phpmd

TooManyPublicMethods

Since: 0.1

A class with too many public methods is probably a good suspect for refactoring, in order to reduce its complexity and find a way to have more fine grained objects.

By default it ignores methods starting with 'get' or 'set'.

Example

Source https://phpmd.org/rules/codesize.html#toomanypublicmethods

Method condition has 5 arguments (exceeds 4 allowed). Consider refactoring.
Open

    public function condition(string $condition, array $if, array $else, int $line, bool $unterminated = false): ConditionalStatement
Severity: Minor
Found in src/Parser/AST/Builder.php - About 35 mins to fix

    There are no issues that match your filters.

    Category
    Status