chamilo/chamilo-lms

View on GitHub
public/plugin/exercise_signature/lib/ExerciseSignature.php

Summary

Maintainability
A
0 mins
Test Coverage

Missing class import via use statement (line '193', column '27').
Open

        $extraField = new ExtraField('track_exercise');

MissingImport

Since: 2.7.0

Importing all external classes in a file through use statements makes them clearly visible.

Example

function make() {
    return new \stdClass();
}

Source http://phpmd.org/rules/cleancode.html#MissingImport

Missing class import via use statement (line '36', column '36').
Open

            $extraFieldValue = new ExtraFieldValue('exercise');

MissingImport

Since: 2.7.0

Importing all external classes in a file through use statements makes them clearly visible.

Example

function make() {
    return new \stdClass();
}

Source http://phpmd.org/rules/cleancode.html#MissingImport

Missing class import via use statement (line '100', column '32').
Open

        $extraFieldValue = new ExtraFieldValue('track_exercise');

MissingImport

Since: 2.7.0

Importing all external classes in a file through use statements makes them clearly visible.

Example

function make() {
    return new \stdClass();
}

Source http://phpmd.org/rules/cleancode.html#MissingImport

Missing class import via use statement (line '163', column '27').
Open

        $extraField = new ExtraField('track_exercise');

MissingImport

Since: 2.7.0

Importing all external classes in a file through use statements makes them clearly visible.

Example

function make() {
    return new \stdClass();
}

Source http://phpmd.org/rules/cleancode.html#MissingImport

Missing class import via use statement (line '65', column '32').
Open

        $extraFieldValue = new ExtraFieldValue('track_exercise');

MissingImport

Since: 2.7.0

Importing all external classes in a file through use statements makes them clearly visible.

Example

function make() {
    return new \stdClass();
}

Source http://phpmd.org/rules/cleancode.html#MissingImport

Missing class import via use statement (line '126', column '27').
Open

        $extraField = new ExtraField('exercise');

MissingImport

Since: 2.7.0

Importing all external classes in a file through use statements makes them clearly visible.

Example

function make() {
    return new \stdClass();
}

Source http://phpmd.org/rules/cleancode.html#MissingImport

Missing class import via use statement (line '200', column '27').
Open

        $extraField = new ExtraField('exercise');

MissingImport

Since: 2.7.0

Importing all external classes in a file through use statements makes them clearly visible.

Example

function make() {
    return new \stdClass();
}

Source http://phpmd.org/rules/cleancode.html#MissingImport

Missing function doc comment
Open

    public static function validateSignatureAccess($userId, $trackInfo)

Method name "ExerciseSignaturePlugin::get_name" is not in camel caps format
Open

    public function get_name()

You must use "/**" style comments for a class comment
Open

class ExerciseSignaturePlugin extends Plugin

Missing function doc comment
Open

    public static function saveSignature($userId, $trackInfo, $file)

Missing function doc comment
Open

    public function __construct()

Missing function doc comment
Open

    public static function exerciseHasSignatureActivated(Exercise $exercise)

Missing function doc comment
Open

    public static function getSignature($userId, $trackInfo)

The method get_name is not named in camelCase.
Open

    public function get_name()
    {
        return 'exercise_signature';
    }

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