src/CourseBundle/Component/CourseCopy/Resources/LinkCategory.php
The property $display_order is not named in camelCase. Open
Open
class LinkCategory extends Resource
{
/**
* The title.
*/
- 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 $display_order is not named in camelCase. Open
Open
public function __construct($id, $title, $description, $display_order)
{
parent::__construct($id, RESOURCE_LINKCATEGORY);
$this->title = $title;
$this->description = $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 $display_order is not named in camelCase. Open
Open
public function __construct($id, $title, $description, $display_order)
{
parent::__construct($id, RESOURCE_LINKCATEGORY);
$this->title = $title;
$this->description = $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();
}
}