chamilo/chamilo-lms

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

Summary

Maintainability
A
0 mins
Test Coverage

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

    public function __construct(
        $id,
        $type,
        $name,
        $path,

The parameter $content_maker is not named in camelCase.
Open

    public function __construct(
        $id,
        $type,
        $name,
        $path,

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

    public function __construct(
        $id,
        $type,
        $name,
        $path,

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

    public function __construct(
        $id,
        $type,
        $name,
        $path,

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

class CourseCopyLearnpath extends Resource
{
    /**
     * Type of learnpath (can be dokeos (1), scorm (2), aicc (3)).
     */

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

class CourseCopyLearnpath extends Resource
{
    /**
     * Type of learnpath (can be dokeos (1), scorm (2), aicc (3)).
     */

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

    public function __construct(
        $id,
        $type,
        $name,
        $path,

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

    public function __construct(
        $id,
        $type,
        $name,
        $path,

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

    public function __construct(
        $id,
        $type,
        $name,
        $path,

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

class CourseCopyLearnpath extends Resource
{
    /**
     * Type of learnpath (can be dokeos (1), scorm (2), aicc (3)).
     */

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

    public function __construct(
        $id,
        $type,
        $name,
        $path,

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

class CourseCopyLearnpath extends Resource
{
    /**
     * Type of learnpath (can be dokeos (1), scorm (2), aicc (3)).
     */

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

class CourseCopyLearnpath extends Resource
{
    /**
     * Type of learnpath (can be dokeos (1), scorm (2), aicc (3)).
     */

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

class CourseCopyLearnpath extends Resource
{
    /**
     * Type of learnpath (can be dokeos (1), scorm (2), aicc (3)).
     */

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

    public function __construct(
        $id,
        $type,
        $name,
        $path,

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

class CourseCopyLearnpath extends Resource
{
    /**
     * Type of learnpath (can be dokeos (1), scorm (2), aicc (3)).
     */

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

    public function __construct(
        $id,
        $type,
        $name,
        $path,

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

class CourseCopyLearnpath extends Resource
{
    /**
     * Type of learnpath (can be dokeos (1), scorm (2), aicc (3)).
     */

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,
        $type,
        $name,
        $path,

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

    public function __construct(
        $id,
        $type,
        $name,
        $path,

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

class CourseCopyLearnpath extends Resource
{
    /**
     * Type of learnpath (can be dokeos (1), scorm (2), aicc (3)).
     */

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

    public function __construct(
        $id,
        $type,
        $name,
        $path,

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

    public function __construct(
        $id,
        $type,
        $name,
        $path,

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

    public function __construct(
        $id,
        $type,
        $name,
        $path,

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

    public function __construct(
        $id,
        $type,
        $name,
        $path,

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

class CourseCopyLearnpath extends Resource
{
    /**
     * Type of learnpath (can be dokeos (1), scorm (2), aicc (3)).
     */

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

    public function __construct(
        $id,
        $type,
        $name,
        $path,

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

    public function __construct(
        $id,
        $type,
        $name,
        $path,

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

    public function __construct(
        $id,
        $type,
        $name,
        $path,

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

    public function __construct(
        $id,
        $type,
        $name,
        $path,

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

    public function __construct(
        $id,
        $type,
        $name,
        $path,

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

    public function __construct(
        $id,
        $type,
        $name,
        $path,

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

    public function __construct(
        $id,
        $type,
        $name,
        $path,

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

    public function __construct(
        $id,
        $type,
        $name,
        $path,

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

    public function __construct(
        $id,
        $type,
        $name,
        $path,

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

    public function __construct(
        $id,
        $type,
        $name,
        $path,

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

    public function __construct(
        $id,
        $type,
        $name,
        $path,

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

    public function __construct(
        $id,
        $type,
        $name,
        $path,

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

    public function __construct(
        $id,
        $type,
        $name,
        $path,

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

    public function __construct(
        $id,
        $type,
        $name,
        $path,

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

    public function __construct(
        $id,
        $type,
        $name,
        $path,

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

    public function has_item($resource)
    {
        foreach ($this->items as $item) {
            if ($item['id'] == $resource->get_id() &&
                isset($item['type']) && $item['type'] == $resource->get_type()

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

    public function get_items()
    {
        return $this->items;
    }

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