chamilo/chamilo-lms

View on GitHub
src/CourseBundle/Component/CourseCopy/Resources/Glossary.php

Summary

Maintainability
A
0 mins
Test Coverage

The property $glossary_id is not named in camelCase.
Open

class Glossary extends Resource
{
    public $glossary_id;
    public $name;
    public $description;

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

class Glossary extends Resource
{
    public $glossary_id;
    public $name;
    public $description;

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

    public function __construct($id, $name, $description, $display_order)
    {
        parent::__construct($id, RESOURCE_GLOSSARY);
        $this->glossary_id = $id;
        $this->name = $name;

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

    public function __construct($id, $name, $description, $display_order)
    {
        parent::__construct($id, RESOURCE_GLOSSARY);
        $this->glossary_id = $id;
        $this->name = $name;

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