chamilo/chamilo-lms

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

Summary

Maintainability
A
0 mins
Test Coverage

The method __construct has 10 parameters. Consider reducing the number of parameters to less than 10.
Open

    public function __construct(
        $id,
        $title,
        $content,
        $start_date,

The parameter $attachment_comment is not named in camelCase.
Open

    public function __construct(
        $id,
        $title,
        $content,
        $start_date,

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

    public function __construct(
        $id,
        $title,
        $content,
        $start_date,

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

    public function __construct(
        $id,
        $title,
        $content,
        $start_date,

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

class CalendarEvent extends Resource
{
    /**
     * The title.
     */

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

class CalendarEvent extends Resource
{
    /**
     * The title.
     */

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

class CalendarEvent extends Resource
{
    /**
     * The title.
     */

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

    public function __construct(
        $id,
        $title,
        $content,
        $start_date,

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

    public function __construct(
        $id,
        $title,
        $content,
        $start_date,

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

class CalendarEvent extends Resource
{
    /**
     * The title.
     */

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

class CalendarEvent extends Resource
{
    /**
     * The title.
     */

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

    public function __construct(
        $id,
        $title,
        $content,
        $start_date,

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

class CalendarEvent extends Resource
{
    /**
     * The title.
     */

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

    public function __construct(
        $id,
        $title,
        $content,
        $start_date,

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

    public function __construct(
        $id,
        $title,
        $content,
        $start_date,

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

    public function __construct(
        $id,
        $title,
        $content,
        $start_date,

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

    public function __construct(
        $id,
        $title,
        $content,
        $start_date,

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

    public function __construct(
        $id,
        $title,
        $content,
        $start_date,

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

    public function __construct(
        $id,
        $title,
        $content,
        $start_date,

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

    public function __construct(
        $id,
        $title,
        $content,
        $start_date,

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

    public function __construct(
        $id,
        $title,
        $content,
        $start_date,

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