public/plugin/exercise_signature/lib/ExerciseSignature.php
Missing class import via use statement (line '193', column '27'). Open
Open
$extraField = new ExtraField('track_exercise');
- Read upRead up
- Exclude checks
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
Open
$extraFieldValue = new ExtraFieldValue('exercise');
- Read upRead up
- Exclude checks
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
Open
$extraFieldValue = new ExtraFieldValue('track_exercise');
- Read upRead up
- Exclude checks
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
Open
$extraField = new ExtraField('track_exercise');
- Read upRead up
- Exclude checks
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
Open
$extraFieldValue = new ExtraFieldValue('track_exercise');
- Read upRead up
- Exclude checks
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
Open
$extraField = new ExtraField('exercise');
- Read upRead up
- Exclude checks
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
Open
$extraField = new ExtraField('exercise');
- Read upRead up
- Exclude checks
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
Open
public static function validateSignatureAccess($userId, $trackInfo)
- Exclude checks
Method name "ExerciseSignaturePlugin::get_name" is not in camel caps format Open
Open
public function get_name()
- Exclude checks
You must use "/**" style comments for a class comment Open
Open
class ExerciseSignaturePlugin extends Plugin
- Exclude checks
Missing function doc comment Open
Open
public static function saveSignature($userId, $trackInfo, $file)
- Exclude checks
Missing function doc comment Open
Open
public function __construct()
- Exclude checks
Missing function doc comment Open
Open
public static function exerciseHasSignatureActivated(Exercise $exercise)
- Exclude checks
Missing function doc comment Open
Open
public static function getSignature($userId, $trackInfo)
- Exclude checks
The method get_name is not named in camelCase. Open
Open
public function get_name()
{
return 'exercise_signature';
}
- Read upRead up
- Exclude checks
CamelCaseMethodName
Since: 0.2
It is considered best practice to use the camelCase notation to name methods.
Example
class ClassName {
public function get_name() {
}
}