jjsoft-ar/siges-core

View on GitHub
src/EntityGenerator/EntityGeneratorCommand.php

Summary

Maintainability
A
50 mins
Test Coverage

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

    public function __construct($namespace = "", $name = "", $description = "", $slug = "", $prefix = "", $locked = true, $create_table = true)
Severity: Major
Found in src/EntityGenerator/EntityGeneratorCommand.php - About 50 mins to fix

    The property $create_table is not named in camelCase.
    Open

    class EntityGeneratorCommand
    {
        /**
         * The entity namespace
         * @string

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

        public function __construct($namespace = "", $name = "", $description = "", $slug = "", $prefix = "", $locked = true, $create_table = true)
        {
            $this->namespace = $namespace;
            $this->name = $name;
            $this->description = $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_table is not named in camelCase.
    Open

        public function __construct($namespace = "", $name = "", $description = "", $slug = "", $prefix = "", $locked = true, $create_table = true)
        {
            $this->namespace = $namespace;
            $this->name = $name;
            $this->description = $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