chamilo/chamilo-lms

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

Summary

Maintainability
A
0 mins
Test Coverage

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

    public function __construct(
        $id,
        $code,
        $title,
        $subtitle,

The property $is_shared is not named in camelCase.
Open

class Survey extends Resource
{
    /**
     * The survey code.
     */

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

    public function __construct(
        $id,
        $code,
        $title,
        $subtitle,

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

    public function __construct(
        $id,
        $code,
        $title,
        $subtitle,

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

    public function __construct(
        $id,
        $code,
        $title,
        $subtitle,

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

class Survey extends Resource
{
    /**
     * The survey code.
     */

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

class Survey extends Resource
{
    /**
     * The survey code.
     */

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

class Survey extends Resource
{
    /**
     * The survey code.
     */

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

class Survey extends Resource
{
    /**
     * The survey code.
     */

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

    public function __construct(
        $id,
        $code,
        $title,
        $subtitle,

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

class Survey extends Resource
{
    /**
     * The survey code.
     */

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

    public function __construct(
        $id,
        $code,
        $title,
        $subtitle,

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

class Survey extends Resource
{
    /**
     * The survey code.
     */

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

    public function __construct(
        $id,
        $code,
        $title,
        $subtitle,

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

class Survey extends Resource
{
    /**
     * The survey code.
     */

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

    public function __construct(
        $id,
        $code,
        $title,
        $subtitle,

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

    public function __construct(
        $id,
        $code,
        $title,
        $subtitle,

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

    public function __construct(
        $id,
        $code,
        $title,
        $subtitle,

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

    public function __construct(
        $id,
        $code,
        $title,
        $subtitle,

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

    public function __construct(
        $id,
        $code,
        $title,
        $subtitle,

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

    public function __construct(
        $id,
        $code,
        $title,
        $subtitle,

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 method add_question is not named in camelCase.
Open

    public function add_question($id)
    {
        $this->question_ids[] = $id;
    }

CamelCaseMethodName

Since: 0.2

It is considered best practice to use the camelCase notation to name methods.

Example

class ClassName {
    public function get_name() {
    }
}

Source

The method add_invitation is not named in camelCase.
Open

    public function add_invitation($id)
    {
        $this->invitation_ids[] = $id;
    }

CamelCaseMethodName

Since: 0.2

It is considered best practice to use the camelCase notation to name methods.

Example

class ClassName {
    public function get_name() {
    }
}

Source

There are no issues that match your filters.

Category
Status