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

View on GitHub

Showing 529 of 529 total issues

Line indented incorrectly; expected 4 spaces, found 8
Open

        protected bool $initialClass = false,
Severity: Minor
Found in src/Model/Schema.php by phpcodesniffer

Multi-line function call not indented correctly; expected 12 spaces but found 16
Open

                ))

Line indented incorrectly; expected 4 spaces, found 8
Open

        protected SchemaProcessor $schemaProcessor,

Closing brace must be on a line by itself
Open

                ) {}

Line indented incorrectly; expected 4 spaces, found 8
Open

        private bool $rootLevelComposition,

Multi-line function call not indented correctly; expected 20 spaces but found 24
Open

                        ReflectionTypeCheckValidator::fromType($allowedType, $property)->getCheck(),

Expected 0 spaces before closing bracket; newline found
Open

                $compositionProperty->filterValidators(static fn(Validator $validator): bool =>

Line indented incorrectly; expected 4 spaces, found 8
Open

        private string $pattern,

Opening brace should be on a new line
Open

    public function __construct(private PropertyInterface $property) {}

Line indented incorrectly; expected 8 spaces, found 12
Open

            },

Line indented incorrectly; expected 4 spaces, found 8
Open

        private string $type = '',

Line indented incorrectly; expected 4 spaces, found 8
Open

        protected string $fileName,
Severity: Minor
Found in src/Model/RenderJob.php by phpcodesniffer

Opening parenthesis of a multi-line function call must be the last content on the line
Open

                    return sprintf('

Opening brace should be on a new line
Open

    public function __construct(private bool $rootLevelComposition) {}

Expected 0 spaces before closing bracket; newline found
Open

            ->filterValidators(static fn(Validator $validator): bool =>

Closing brace must be on a line by itself
Open

    public function __construct(protected ProcessorFactoryInterface $processorFactory) {}

Closing brace must be on a line by itself
Open

    public function __construct(protected array $requiredAttributes = [], protected array $dependencies = []) {}

Multi-line function call not indented correctly; expected 12 spaces but found 16
Open

                $propertyValidator->withProperty($this),

Opening brace should be on a new line
Open

    public function setUpDefinitionDictionary(SchemaProcessor $schemaProcessor, Schema $schema): void {

Closing brace must be on a line by itself
Open

            ) {}
Severity
Category
Status
Source
Language