public/main/exercise/qti2.php
Missing class import via use statement (line '42', column '26'). Open
Open
$formValidator = new FormValidator(
- 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
The parameter $array_file is not named in camelCase. Open
Open
function importFile($array_file)
{
$unzip = 0;
$process = process_uploaded_file($array_file, false);
- Read upRead up
- Exclude checks
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
Consider putting global function "displayForm" in a static class Open
Open
function displayForm()
- Exclude checks
Variable "main_path" is not in valid camel caps format Open
Open
$main_path = api_get_path(SYS_CODE_PATH);
- Exclude checks
Variable "main_path" is not in valid camel caps format Open
Open
require_once $main_path.'exercise/export/exercise_import.inc.php';
- Exclude checks
Variable "is_allowedToEdit" is not in valid camel caps format Open
Open
$is_allowedToEdit = api_is_allowed_to_edit(null, true);
- Exclude checks
Consider putting global function "importFile" in a static class Open
Open
function importFile($array_file)
- Exclude checks
Variable "array_file" is not in valid camel caps format Open
Open
function importFile($array_file)
- Exclude checks
Variable "array_file" is not in valid camel caps format Open
Open
return import_exercise($array_file['name']);
- Exclude checks
Variable "this_section" is not in valid camel caps format Open
Open
$this_section = SECTION_COURSES;
- Exclude checks
Variable "array_file" is not in valid camel caps format Open
Open
$process = process_uploaded_file($array_file, false);
- Exclude checks
Variable "array_file" is not in valid camel caps format Open
Open
if (preg_match('/\.zip$/i', $array_file['name'])) {
- Exclude checks
The variable $array_file is not named in camelCase. Open
Open
function importFile($array_file)
{
$unzip = 0;
$process = process_uploaded_file($array_file, false);
- Read upRead up
- Exclude checks
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 $array_file is not named in camelCase. Open
Open
function importFile($array_file)
{
$unzip = 0;
$process = process_uploaded_file($array_file, false);
- Read upRead up
- Exclude checks
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 $main_path is not named in camelCase. Open
Open
function importFile($array_file)
{
$unzip = 0;
$process = process_uploaded_file($array_file, false);
- Read upRead up
- Exclude checks
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 $main_path is not named in camelCase. Open
Open
function importFile($array_file)
{
$unzip = 0;
$process = process_uploaded_file($array_file, false);
- Read upRead up
- Exclude checks
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 $array_file is not named in camelCase. Open
Open
function importFile($array_file)
{
$unzip = 0;
$process = process_uploaded_file($array_file, false);
- Read upRead up
- Exclude checks
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();
}
}