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

View on GitHub

Showing 529 of 529 total issues

The variable $_ is not named in camelCase.
Open

    public static function hash(array $array, array $relevantFields = []): string
    {
        if ($relevantFields) {
            foreach ($array as $key => $_) {
                if (!in_array($key, $relevantFields)) {
Severity: Minor
Found in src/Utils/ArrayHash.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The method array_multiksort is not named in camelCase.
Open

    private static function array_multiksort(array &$array): void
    {
        foreach ($array as &$value) {
            if (is_array($value)) {
                self::array_multiksort($value);
Severity: Minor
Found in src/Utils/ArrayHash.php by phpmd

CamelCaseMethodName

Since: 0.2

It is considered best practice to use the camelCase notation to name methods.

Example

class ClassName {
    public function get_name() {
    }
}

Source

syntax error, unexpected ')'
Open

        );

syntax error, unexpected ')', expecting variable (T_VARIABLE)
Open

    ): PropertyInterface;
Severity: Critical
Found in src/Model/Property/PropertyInterface.php by phan

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

    protected string $attribute;
Severity: Critical
Found in src/Model/Property/AbstractProperty.php by phan

syntax error, unexpected 'protected' (T_PROTECTED), expecting variable (T_VARIABLE)
Open

        protected ResolvedDefinitionsCollection $definitionsCollection,
Severity: Critical
Found in src/Model/Property/PropertyProxy.php by phan

syntax error, unexpected ')'
Open

            );
Severity: Critical
Found in src/Model/GeneratorConfiguration.php by phan

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

    protected array $json;
Severity: Critical
Found in src/Model/SchemaDefinition/JsonSchema.php by phan

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

    static private ?Render $renderer = null;

syntax error, unexpected ':', expecting ',' or ')'
Open

        deadCode: true,
Severity: Critical
Found in rector.php by phan

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

    private array $renderedTypeHints = [];
Severity: Critical
Found in src/Model/Property/Property.php by phan

syntax error, unexpected ')', expecting variable (T_VARIABLE)
Open

    ) {

syntax error, unexpected ')'
Open

            )

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

    private array $parsedExternalFileSchemas = [];

syntax error, unexpected 'private' (T_PRIVATE), expecting variable (T_VARIABLE)
Open

    public function __construct(private string $name, private ?bool $nullable = null) {}
Severity: Critical
Found in src/Model/Property/PropertyType.php by phan

syntax error, unexpected 'protected' (T_PROTECTED), expecting variable (T_VARIABLE)
Open

    public function __construct(protected PropertyValidatorInterface $validator, protected int $priority) {}
Severity: Critical
Found in src/Model/Validator.php by phan

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

    private PropertyInterface $validationProperty;

Possibly zero references to use statement for classlike/namespace JsonSchema (\PHPModelGenerator\Model\SchemaDefinition\JsonSchema)
Open

use PHPModelGenerator\Model\SchemaDefinition\JsonSchema;

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

    private string $modifiedValuesMethod;

syntax error, unexpected 'protected' (T_PROTECTED), expecting variable (T_VARIABLE)
Open

        protected string $fileName,
Severity: Critical
Found in src/Model/RenderJob.php by phan
Severity
Category
Status
Source
Language