src/FieldGenerator/CreateFieldCommand.php
Method __construct
has 13 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
$entity_id = "",
$namespace = "",
$name = "",
$description = "",
$slug = "",
The method __construct has 13 parameters. Consider reducing the number of parameters to less than 10. Open
Open
public function __construct(
$entity_id = "",
$namespace = "",
$name = "",
$description = "",
- Exclude checks
The property $create_field is not named in camelCase. Open
Open
class CreateFieldCommand
{
/**
* The entity related to the field
* @var
- Read upRead up
- Exclude checks
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
Open
class CreateFieldCommand
{
/**
* The entity related to the field
* @var
- Read upRead up
- Exclude checks
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
Open
public function __construct(
$entity_id = "",
$namespace = "",
$name = "",
$description = "",
- Read upRead up
- Exclude checks
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
Open
public function __construct(
$entity_id = "",
$namespace = "",
$name = "",
$description = "",
- Read upRead up
- Exclude checks
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
Open
public function __construct(
$entity_id = "",
$namespace = "",
$name = "",
$description = "",
- Read upRead up
- Exclude checks
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
Open
public function __construct(
$entity_id = "",
$namespace = "",
$name = "",
$description = "",
- Read upRead up
- Exclude checks
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();
}
}