chamilo/chamilo-lms

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

Summary

Maintainability
A
0 mins
Test Coverage

The property $intro_text is not named in camelCase.
Open

class ToolIntro extends Resource
{
    public $id;

    /**

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

    public function __construct($id, $intro_text)
    {
        parent::__construct($id, RESOURCE_TOOL_INTRO);
        $this->id = $id;
        $this->intro_text = $intro_text;

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

    public function show()
    {
        parent::show();
        switch ($this->id) {
            case TOOL_DOCUMENT:

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

    public function show()
    {
        parent::show();
        switch ($this->id) {
            case TOOL_DOCUMENT:

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

    public function show()
    {
        parent::show();
        switch ($this->id) {
            case TOOL_DOCUMENT:

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

    public function show()
    {
        parent::show();
        switch ($this->id) {
            case TOOL_DOCUMENT:

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

    public function show()
    {
        parent::show();
        switch ($this->id) {
            case TOOL_DOCUMENT:

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

    public function show()
    {
        parent::show();
        switch ($this->id) {
            case TOOL_DOCUMENT:

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

    public function show()
    {
        parent::show();
        switch ($this->id) {
            case TOOL_DOCUMENT:

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

    public function show()
    {
        parent::show();
        switch ($this->id) {
            case TOOL_DOCUMENT:

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

    public function show()
    {
        parent::show();
        switch ($this->id) {
            case TOOL_DOCUMENT:

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

    public function show()
    {
        parent::show();
        switch ($this->id) {
            case TOOL_DOCUMENT:

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

    public function show()
    {
        parent::show();
        switch ($this->id) {
            case TOOL_DOCUMENT:

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

    public function __construct($id, $intro_text)
    {
        parent::__construct($id, RESOURCE_TOOL_INTRO);
        $this->id = $id;
        $this->intro_text = $intro_text;

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

    public function show()
    {
        parent::show();
        switch ($this->id) {
            case TOOL_DOCUMENT:

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

    public function show()
    {
        parent::show();
        switch ($this->id) {
            case TOOL_DOCUMENT:

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

    public function show()
    {
        parent::show();
        switch ($this->id) {
            case TOOL_DOCUMENT:

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

    public function show()
    {
        parent::show();
        switch ($this->id) {
            case TOOL_DOCUMENT:

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

    public function show()
    {
        parent::show();
        switch ($this->id) {
            case TOOL_DOCUMENT:

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

    public function show()
    {
        parent::show();
        switch ($this->id) {
            case TOOL_DOCUMENT:

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