wol-soft/php-json-schema-model-generator

View on GitHub
src/Model/Validator/PropertyTemplateValidator.php

Summary

Maintainability
A
35 mins
Test Coverage
A
100%

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

        PropertyInterface $property,
        protected string $template,
        array $templateValues,
        string $exceptionClass,
        array $exceptionParams = [],
Severity: Minor
Found in src/Model/Validator/PropertyTemplateValidator.php - About 35 mins to fix

    syntax error, unexpected '?', expecting function (T_FUNCTION) or const (T_CONST)
    Open

        static private ?Render $renderer = null;

    Arguments with default values must be at the end of the argument list
    Open

            array $exceptionParams = [],

    Line indented incorrectly; expected 4 spaces, found 8
    Open

            protected string $template,

    There are no issues that match your filters.

    Category
    Status