jjsoft-ar/siges-core

View on GitHub
src/FieldGenerator/CreateFieldCommand.php

Summary

Maintainability
A
1 hr
Test Coverage

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

        $entity_id = "",
        $namespace = "",
        $name = "",
        $description = "",
        $slug = "",
Severity: Major
Found in src/FieldGenerator/CreateFieldCommand.php - About 1 hr to fix

    The method __construct has 13 parameters. Consider reducing the number of parameters to less than 10.
    Open

        public function __construct(
            $entity_id = "",
            $namespace = "",
            $name = "",
            $description = "",

    The property $create_field is not named in camelCase.
    Open

    class CreateFieldCommand
    {
        /**
         * The entity related to the field
         * @var

    CamelCasePropertyName

    Since: 0.2

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

    Example

    class ClassName {
        protected $property_name;
    }

    Source

    The property $entity_id is not named in camelCase.
    Open

    class CreateFieldCommand
    {
        /**
         * The entity related to the field
         * @var

    CamelCasePropertyName

    Since: 0.2

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

    Example

    class ClassName {
        protected $property_name;
    }

    Source

    The parameter $entity_id is not named in camelCase.
    Open

        public function __construct(
            $entity_id = "",
            $namespace = "",
            $name = "",
            $description = "",

    CamelCaseParameterName

    Since: 0.2

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

    Example

    class ClassName {
        public function doSomething($user_name) {
        }
    }

    Source

    The parameter $create_field is not named in camelCase.
    Open

        public function __construct(
            $entity_id = "",
            $namespace = "",
            $name = "",
            $description = "",

    CamelCaseParameterName

    Since: 0.2

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

    Example

    class ClassName {
        public function doSomething($user_name) {
        }
    }

    Source

    The variable $create_field is not named in camelCase.
    Open

        public function __construct(
            $entity_id = "",
            $namespace = "",
            $name = "",
            $description = "",

    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 variable $entity_id is not named in camelCase.
    Open

        public function __construct(
            $entity_id = "",
            $namespace = "",
            $name = "",
            $description = "",

    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

    There are no issues that match your filters.

    Category
    Status