The method get_php_data() has an NPath complexity of 3145728. The configured NPath complexity threshold is 200. Open
public function get_php_data()
{
$array = [];
// General Functions
- Read upRead up
- Exclude checks
NPathComplexity
Since: 0.1
The NPath complexity of a method is the number of acyclic execution paths through that method. A threshold of 200 is generally considered the point where measures should be taken to reduce complexity.
Example
class Foo {
function bar() {
// lots of complicated code
}
}
Source https://phpmd.org/rules/codesize.html#npathcomplexity
Avoid using undefined variables such as '$params' which will lead to PHP notices. Open
$params['section'] = $section;
- Read upRead up
- Exclude checks
UndefinedVariable
Since: 2.8.0
Detects when a variable is used that has not been defined before.
Example
class Foo
{
private function bar()
{
// $message is undefined
echo $message;
}
}
Source https://phpmd.org/rules/cleancode.html#undefinedvariable
Missing class import via use statement (line '90', column '26'). Open
$table = new HTML_Table(['class' => 'table table-hover table-striped data_table']);
- 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 '131', column '26'). Open
$table = new SortableTableFromArray($data, 1, 100);
- 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 '116', column '26'). Open
$table = new SortableTableFromArray($data, 1, 1000);
- 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
Remove error control operator '@' on line 249. Open
public function get_chamilo_data()
{
$array = [];
$writable_folders = [
api_get_path(SYS_ARCHIVE_PATH).'cache',
- Read upRead up
- Exclude checks
ErrorControlOperator
Error suppression should be avoided if possible as it doesn't just suppress the error, that you are trying to stop, but will also suppress errors that you didn't predict would ever occur. Consider changing error_reporting() level and/or setting up your own error handler.
Example
function foo($filePath) {
$file = @fopen($filPath); // hides exceptions
$key = @$array[$notExistingKey]; // assigns null to $key
}
Source http://phpmd.org/rules/cleancode.html#errorcontroloperator
The method show_html uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them. Open
} else {
echo '<br />';
echo Display::return_message($sections[$currentSection]['info'], 'normal');
$table = new SortableTableFromArray($data, 1, 100);
- Read upRead up
- Exclude checks
ElseExpression
Since: 1.4.0
An if expression with an else branch is basically not necessary. You can rewrite the conditions in a way that the else clause is not necessary and the code becomes simpler to read. To achieve this, use early return statements, though you may need to split the code it several smaller methods. For very simple assignments you could also use the ternary operations.
Example
class Foo
{
public function bar($flag)
{
if ($flag) {
// one branch
} else {
// another branch
}
}
}
Source https://phpmd.org/rules/cleancode.html#elseexpression
The method show_html uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them. Open
} else {
$html .= '<li>';
}
- Read upRead up
- Exclude checks
ElseExpression
Since: 1.4.0
An if expression with an else branch is basically not necessary. You can rewrite the conditions in a way that the else clause is not necessary and the code becomes simpler to read. To achieve this, use early return statements, though you may need to split the code it several smaller methods. For very simple assignments you could also use the ternary operations.
Example
class Foo
{
public function bar($flag)
{
if ($flag) {
// one branch
} else {
// another branch
}
}
}
Source https://phpmd.org/rules/cleancode.html#elseexpression
The method get_chamilo_data uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them. Open
} else {
$dir = api_get_path(SYS_PATH);
$du = exec('du -sh ' . $dir, $err);
list($size, $none) = explode("\t", $du);
unset($none);
- Read upRead up
- Exclude checks
ElseExpression
Since: 1.4.0
An if expression with an else branch is basically not necessary. You can rewrite the conditions in a way that the else clause is not necessary and the code becomes simpler to read. To achieve this, use early return statements, though you may need to split the code it several smaller methods. For very simple assignments you could also use the ternary operations.
Example
class Foo
{
public function bar($flag)
{
if ($flag) {
// one branch
} else {
// another branch
}
}
}
Source https://phpmd.org/rules/cleancode.html#elseexpression
The method get_courses_space_data uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them. Open
} else {
$size = round($size / 1024);
}
- Read upRead up
- Exclude checks
ElseExpression
Since: 1.4.0
An if expression with an else branch is basically not necessary. You can rewrite the conditions in a way that the else clause is not necessary and the code becomes simpler to read. To achieve this, use early return statements, though you may need to split the code it several smaller methods. For very simple assignments you could also use the ternary operations.
Example
class Foo
{
public function bar($flag)
{
if ($flag) {
// one branch
} else {
// another branch
}
}
}
Source https://phpmd.org/rules/cleancode.html#elseexpression
The method get_php_data uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them. Open
} else {
$setting = false;
}
- Read upRead up
- Exclude checks
ElseExpression
Since: 1.4.0
An if expression with an else branch is basically not necessary. You can rewrite the conditions in a way that the else clause is not necessary and the code becomes simpler to read. To achieve this, use early return statements, though you may need to split the code it several smaller methods. For very simple assignments you could also use the ternary operations.
Example
class Foo
{
public function bar($flag)
{
if ($flag) {
// one branch
} else {
// another branch
}
}
}
Source https://phpmd.org/rules/cleancode.html#elseexpression
Avoid unused local variables such as '$index'. Open
foreach ($writable_folders as $index => $folder) {
- Read upRead up
- Exclude checks
UnusedLocalVariable
Since: 0.2
Detects when a local variable is declared and/or assigned, but not used.
Example
class Foo {
public function doSomething()
{
$i = 5; // Unused
}
}
Source https://phpmd.org/rules/unusedcode.html#unusedlocalvariable
Avoid unused local variables such as '$params'. Open
$params['section'] = $section;
- Read upRead up
- Exclude checks
UnusedLocalVariable
Since: 0.2
Detects when a local variable is declared and/or assigned, but not used.
Example
class Foo {
public function doSomething()
{
$i = 5; // Unused
}
}
Source https://phpmd.org/rules/unusedcode.html#unusedlocalvariable
Avoid unused local variables such as '$err'. Open
$du = exec('du -sh ' . $dir, $err);
- Read upRead up
- Exclude checks
UnusedLocalVariable
Since: 0.2
Detects when a local variable is declared and/or assigned, but not used.
Example
class Foo {
public function doSomething()
{
$i = 5; // Unused
}
}
Source https://phpmd.org/rules/unusedcode.html#unusedlocalvariable
The parameter $expected_value is not named in camelCase. Open
public function build_setting(
$status,
$section,
$title,
$url,
- 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
The parameter $current_value is not named in camelCase. Open
public function build_setting(
$status,
$section,
$title,
$url,
- 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
Variable "req_setting" is not in valid camel caps format Open
$req_setting,
- Exclude checks
Variable "req_setting" is not in valid camel caps format Open
$req_setting,
- Exclude checks
Variable "req_setting" is not in valid camel caps format Open
$req_setting,
- Exclude checks
Variable "current_value" is not in valid camel caps format Open
$formatted_current_value = call_user_func([$this, 'format_'.$formatter], $current_value);
- Exclude checks
Variable "formatted_expected_value" is not in valid camel caps format Open
$formatted_expected_value = call_user_func([$this, 'format_'.$formatter], $expected_value);
- Exclude checks
Variable "access_url_id" is not in valid camel caps format Open
$limit = get_hosting_limit($access_url_id, 'hosting_limit_disk_space');
- Exclude checks
Method name "Diagnoser::get_php_data" is not in camel caps format Open
public function get_php_data()
- Exclude checks
Variable "req_setting" is not in valid camel caps format Open
$req_setting = 1;
- Exclude checks
Variable "req_setting" is not in valid camel caps format Open
$req_setting = 0;
- Exclude checks
Variable "req_setting" is not in valid camel caps format Open
$req_setting,
- Exclude checks
Variable "req_setting" is not in valid camel caps format Open
$req_setting = 'UTF-8';
- Exclude checks
Variable "expected_value" is not in valid camel caps format Open
$expected_value = $data['expected'];
- Exclude checks
Method name "Diagnoser::build_setting" is not in camel caps format Open
public function build_setting(
- Exclude checks
Variable "req_setting" is not in valid camel caps format Open
$status = $setting == $req_setting ? self::STATUS_OK : self::STATUS_ERROR;
- Exclude checks
Variable "req_setting" is not in valid camel caps format Open
$req_setting,
- Exclude checks
Variable "req_setting" is not in valid camel caps format Open
$req_setting,
- Exclude checks
Variable "formatted_current_value" is not in valid camel caps format Open
return [$image, $section, $url, $formatted_current_value, $formatted_expected_value, $comment];
- Exclude checks
Variable "req_setting" is not in valid camel caps format Open
$status = $setting == $req_setting ? self::STATUS_OK : self::STATUS_ERROR;
- Exclude checks
Variable "req_setting" is not in valid camel caps format Open
$req_setting = '>= '.REQUIRED_MIN_MEMORY_LIMIT.'M';
- Exclude checks
Method name "Diagnoser::get_database_data" is not in camel caps format Open
public function get_database_data()
- Exclude checks
Variable "current_value" is not in valid camel caps format Open
$current_value,
- Exclude checks
Variable "req_setting" is not in valid camel caps format Open
$req_setting,
- Exclude checks
Variable "req_setting" is not in valid camel caps format Open
$req_setting = '300 ('.get_lang('minimum').')';
- Exclude checks
Method name "Diagnoser::show_html" is not in camel caps format Open
public function show_html()
- Exclude checks
Variable "req_setting" is not in valid camel caps format Open
$req_setting = 'GPCS';
- Exclude checks
Variable "req_setting" is not in valid camel caps format Open
$req_setting = true;
- Exclude checks
Variable "writable_folders" is not in valid camel caps format Open
foreach ($writable_folders as $index => $folder) {
- Exclude checks
Variable "new_version" is not in valid camel caps format Open
$new_version.' '.$new_version_status,
- Exclude checks
Variable "req_setting" is not in valid camel caps format Open
$status = $setting == $req_setting ? self::STATUS_OK : self::STATUS_WARNING;
- Exclude checks
Variable "req_setting" is not in valid camel caps format Open
$req_setting,
- Exclude checks
Variable "req_setting" is not in valid camel caps format Open
$req_setting,
- Exclude checks
Missing parameter name Open
* @param $title
- Exclude checks
Variable "app_version" is not in valid camel caps format Open
$app_version,
- Exclude checks
Variable "req_setting" is not in valid camel caps format Open
$req_setting = 0;
- Exclude checks
Variable "req_setting" is not in valid camel caps format Open
$req_setting,
- Exclude checks
Variable "req_setting" is not in valid camel caps format Open
$req_setting,
- Exclude checks
Method name "Diagnoser::get_courses_space_count" is not in camel caps format Open
public function get_courses_space_count()
- Exclude checks
Variable "current_value" is not in valid camel caps format Open
$formatted_current_value = $current_value;
- Exclude checks
Variable "expected_value" is not in valid camel caps format Open
$formatted_expected_value = call_user_func([$this, 'format_'.$formatter], $expected_value);
- Exclude checks
Missing parameter name Open
* @param $url
- Exclude checks
Missing parameter name Open
* @param $value
- Exclude checks
Variable "new_version_status" is not in valid camel caps format Open
$new_version_status = '';
- Exclude checks
Variable "new_version_status" is not in valid camel caps format Open
$new_version.' '.$new_version_status,
- Exclude checks
Variable "req_setting" is not in valid camel caps format Open
$req_setting = '>= '.REQUIRED_MIN_POST_MAX_SIZE.'M';
- Exclude checks
Variable "req_setting" is not in valid camel caps format Open
$req_setting = '4320';
- Exclude checks
Variable "formatted_current_value" is not in valid camel caps format Open
$formatted_current_value = $current_value;
- Exclude checks
Variable "req_setting" is not in valid camel caps format Open
$req_setting,
- Exclude checks
Variable "req_setting" is not in valid camel caps format Open
$req_setting = '300 ('.get_lang('minimum').')';
- Exclude checks
Variable "req_setting" is not in valid camel caps format Open
$req_setting = '>= '.REQUIRED_MIN_UPLOAD_MAX_FILESIZE.'M';
- Exclude checks
Variable "req_setting" is not in valid camel caps format Open
$status = $setting == $req_setting ? self::STATUS_OK : self::STATUS_WARNING;
- Exclude checks
Method name "Diagnoser::get_courses_space_data" is not in camel caps format Open
public function get_courses_space_data()
- Exclude checks
Variable "expected_value" is not in valid camel caps format Open
$formatted_expected_value = $expected_value;
- Exclude checks
Variable "writable_folders" is not in valid camel caps format Open
$writable_folders = [
- Exclude checks
Variable "req_setting" is not in valid camel caps format Open
$status = $setting == $req_setting ? self::STATUS_OK : self::STATUS_WARNING;
- Exclude checks
Variable "req_setting" is not in valid camel caps format Open
$req_setting,
- Exclude checks
Method name "Diagnoser::format_on_off" is not in camel caps format Open
public function format_on_off($value)
- Exclude checks
Method name "Diagnoser::get_chamilo_data" is not in camel caps format Open
public function get_chamilo_data()
- Exclude checks
Variable "app_version" is not in valid camel caps format Open
$app_version = api_get_setting('platform.chamilo_database_version');
- Exclude checks
Variable "access_url_id" is not in valid camel caps format Open
$access_url_id = api_get_current_access_url_id();
- Exclude checks
Variable "req_setting" is not in valid camel caps format Open
$req_setting = 0;
- Exclude checks
Variable "req_setting" is not in valid camel caps format Open
$status = $setting == $req_setting ? self::STATUS_OK : self::STATUS_ERROR;
- Exclude checks
Variable "req_setting" is not in valid camel caps format Open
$req_setting = 0;
- Exclude checks
Variable "req_setting" is not in valid camel caps format Open
$req_setting,
- Exclude checks
Variable "req_setting" is not in valid camel caps format Open
$status = $setting == $req_setting ? self::STATUS_OK : self::STATUS_WARNING;
- Exclude checks
Variable "formatted_current_value" is not in valid camel caps format Open
$formatted_current_value = call_user_func([$this, 'format_'.$formatter], $current_value);
- Exclude checks
Variable "req_setting" is not in valid camel caps format Open
$status = $setting >= $req_setting ? self::STATUS_OK : self::STATUS_ERROR;
- Exclude checks
Variable "req_setting" is not in valid camel caps format Open
$req_setting = 0;
- Exclude checks
Variable "req_setting" is not in valid camel caps format Open
$status = $setting == $req_setting ? self::STATUS_OK : self::STATUS_WARNING;
- Exclude checks
Variable "req_setting" is not in valid camel caps format Open
$req_setting,
- Exclude checks
Variable "req_setting" is not in valid camel caps format Open
$req_setting,
- Exclude checks
Variable "formatted_expected_value" is not in valid camel caps format Open
$formatted_expected_value = $expected_value;
- Exclude checks
Method name "Diagnoser::get_paths_data" is not in camel caps format Open
public function get_paths_data()
- Exclude checks
Variable "new_version" is not in valid camel caps format Open
$new_version,
- Exclude checks
Variable "req_setting" is not in valid camel caps format Open
$status = $setting == $req_setting ? self::STATUS_OK : self::STATUS_ERROR;
- Exclude checks
Variable "expected_value" is not in valid camel caps format Open
$expected_value,
- Exclude checks
Variable "formatted_expected_value" is not in valid camel caps format Open
return [$image, $section, $url, $formatted_current_value, $formatted_expected_value, $comment];
- Exclude checks
Variable "access_url_id" is not in valid camel caps format Open
if (1 === $access_url_id) {
- Exclude checks
Variable "req_setting" is not in valid camel caps format Open
$status = $setting == $req_setting ? self::STATUS_OK : self::STATUS_ERROR;
- Exclude checks
Variable "req_setting" is not in valid camel caps format Open
$req_setting = 0;
- Exclude checks
Variable "expected_value" is not in valid camel caps format Open
$expected_value,
- Exclude checks
Method name "Diagnoser::get_link" is not in camel caps format Open
public function get_link($title, $url)
- Exclude checks
Method name "Diagnoser::format_yes_no" is not in camel caps format Open
public function format_yes_no($value)
- Exclude checks
Variable "new_version" is not in valid camel caps format Open
$new_version = '-';
- Exclude checks
Variable "req_setting" is not in valid camel caps format Open
$req_setting = 1;
- Exclude checks
Variable "req_setting" is not in valid camel caps format Open
$status = $setting == $req_setting ? self::STATUS_OK : self::STATUS_ERROR;
- Exclude checks
Variable "req_setting" is not in valid camel caps format Open
$req_setting,
- Exclude checks
Method name "Diagnoser::get_webserver_data" is not in camel caps format Open
public function get_webserver_data()
- Exclude checks
Method name "Diagnoser::format_yes_no_optional" is not in camel caps format Open
public function format_yes_no_optional($value)
- Exclude checks
The variable $req_setting is not named in camelCase. Open
public function get_php_data()
{
$array = [];
// General Functions
- 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 $req_setting is not named in camelCase. Open
public function get_php_data()
{
$array = [];
// General Functions
- 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 $req_setting is not named in camelCase. Open
public function get_php_data()
{
$array = [];
// General Functions
- 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 $app_version is not named in camelCase. Open
public function get_chamilo_data()
{
$array = [];
$writable_folders = [
api_get_path(SYS_ARCHIVE_PATH).'cache',
- 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 $access_url_id is not named in camelCase. Open
public function get_chamilo_data()
{
$array = [];
$writable_folders = [
api_get_path(SYS_ARCHIVE_PATH).'cache',
- 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 $req_setting is not named in camelCase. Open
public function get_php_data()
{
$array = [];
// General Functions
- 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 $access_url_id is not named in camelCase. Open
public function get_chamilo_data()
{
$array = [];
$writable_folders = [
api_get_path(SYS_ARCHIVE_PATH).'cache',
- 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 $new_version_status is not named in camelCase. Open
public function get_chamilo_data()
{
$array = [];
$writable_folders = [
api_get_path(SYS_ARCHIVE_PATH).'cache',
- 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 $req_setting is not named in camelCase. Open
public function get_php_data()
{
$array = [];
// General Functions
- 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 $writable_folders is not named in camelCase. Open
public function get_chamilo_data()
{
$array = [];
$writable_folders = [
api_get_path(SYS_ARCHIVE_PATH).'cache',
- 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 $app_version is not named in camelCase. Open
public function get_chamilo_data()
{
$array = [];
$writable_folders = [
api_get_path(SYS_ARCHIVE_PATH).'cache',
- 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 $req_setting is not named in camelCase. Open
public function get_php_data()
{
$array = [];
// General Functions
- 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 $req_setting is not named in camelCase. Open
public function get_php_data()
{
$array = [];
// General Functions
- 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 $req_setting is not named in camelCase. Open
public function get_php_data()
{
$array = [];
// General Functions
- 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 $new_version_status is not named in camelCase. Open
public function get_chamilo_data()
{
$array = [];
$writable_folders = [
api_get_path(SYS_ARCHIVE_PATH).'cache',
- 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 $req_setting is not named in camelCase. Open
public function get_php_data()
{
$array = [];
// General Functions
- 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 $req_setting is not named in camelCase. Open
public function get_php_data()
{
$array = [];
// General Functions
- 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 $req_setting is not named in camelCase. Open
public function get_php_data()
{
$array = [];
// General Functions
- 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 $req_setting is not named in camelCase. Open
public function get_php_data()
{
$array = [];
// General Functions
- 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 $access_url_id is not named in camelCase. Open
public function get_chamilo_data()
{
$array = [];
$writable_folders = [
api_get_path(SYS_ARCHIVE_PATH).'cache',
- 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 $writable_folders is not named in camelCase. Open
public function get_chamilo_data()
{
$array = [];
$writable_folders = [
api_get_path(SYS_ARCHIVE_PATH).'cache',
- 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 $new_version is not named in camelCase. Open
public function get_chamilo_data()
{
$array = [];
$writable_folders = [
api_get_path(SYS_ARCHIVE_PATH).'cache',
- 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 $new_version is not named in camelCase. Open
public function get_chamilo_data()
{
$array = [];
$writable_folders = [
api_get_path(SYS_ARCHIVE_PATH).'cache',
- 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 $req_setting is not named in camelCase. Open
public function get_php_data()
{
$array = [];
// General Functions
- 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 $req_setting is not named in camelCase. Open
public function get_php_data()
{
$array = [];
// General Functions
- 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 $new_version is not named in camelCase. Open
public function get_chamilo_data()
{
$array = [];
$writable_folders = [
api_get_path(SYS_ARCHIVE_PATH).'cache',
- 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 $req_setting is not named in camelCase. Open
public function get_php_data()
{
$array = [];
// General Functions
- 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 $formatted_current_value is not named in camelCase. Open
public function build_setting(
$status,
$section,
$title,
$url,
- 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 $req_setting is not named in camelCase. Open
public function get_php_data()
{
$array = [];
// General Functions
- 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 $req_setting is not named in camelCase. Open
public function get_php_data()
{
$array = [];
// General Functions
- 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 $req_setting is not named in camelCase. Open
public function get_php_data()
{
$array = [];
// General Functions
- 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 $expected_value is not named in camelCase. Open
public function build_setting(
$status,
$section,
$title,
$url,
- 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 $formatted_expected_value is not named in camelCase. Open
public function build_setting(
$status,
$section,
$title,
$url,
- 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 $req_setting is not named in camelCase. Open
public function get_php_data()
{
$array = [];
// General Functions
- 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 $expected_value is not named in camelCase. Open
public function get_php_data()
{
$array = [];
// General Functions
- 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 $req_setting is not named in camelCase. Open
public function get_php_data()
{
$array = [];
// General Functions
- 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 $formatted_expected_value is not named in camelCase. Open
public function build_setting(
$status,
$section,
$title,
$url,
- 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 $req_setting is not named in camelCase. Open
public function get_php_data()
{
$array = [];
// General Functions
- 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 $req_setting is not named in camelCase. Open
public function get_php_data()
{
$array = [];
// General Functions
- 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 $req_setting is not named in camelCase. Open
public function get_php_data()
{
$array = [];
// General Functions
- 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 $req_setting is not named in camelCase. Open
public function get_php_data()
{
$array = [];
// General Functions
- 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 $req_setting is not named in camelCase. Open
public function get_php_data()
{
$array = [];
// General Functions
- 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 $req_setting is not named in camelCase. Open
public function get_php_data()
{
$array = [];
// General Functions
- 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 $req_setting is not named in camelCase. Open
public function get_php_data()
{
$array = [];
// General Functions
- 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 $req_setting is not named in camelCase. Open
public function get_php_data()
{
$array = [];
// General Functions
- 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 $req_setting is not named in camelCase. Open
public function get_php_data()
{
$array = [];
// General Functions
- 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 $expected_value is not named in camelCase. Open
public function get_php_data()
{
$array = [];
// General Functions
- 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 $expected_value is not named in camelCase. Open
public function build_setting(
$status,
$section,
$title,
$url,
- 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 $formatted_expected_value is not named in camelCase. Open
public function build_setting(
$status,
$section,
$title,
$url,
- 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 $req_setting is not named in camelCase. Open
public function get_php_data()
{
$array = [];
// General Functions
- 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 $req_setting is not named in camelCase. Open
public function get_php_data()
{
$array = [];
// General Functions
- 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 $req_setting is not named in camelCase. Open
public function get_php_data()
{
$array = [];
// General Functions
- 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 $req_setting is not named in camelCase. Open
public function get_php_data()
{
$array = [];
// General Functions
- 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 $req_setting is not named in camelCase. Open
public function get_php_data()
{
$array = [];
// General Functions
- 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 $req_setting is not named in camelCase. Open
public function get_php_data()
{
$array = [];
// General Functions
- 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 $req_setting is not named in camelCase. Open
public function get_php_data()
{
$array = [];
// General Functions
- 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 $req_setting is not named in camelCase. Open
public function get_php_data()
{
$array = [];
// General Functions
- 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 $req_setting is not named in camelCase. Open
public function get_php_data()
{
$array = [];
// General Functions
- 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 $req_setting is not named in camelCase. Open
public function get_php_data()
{
$array = [];
// General Functions
- 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 $req_setting is not named in camelCase. Open
public function get_php_data()
{
$array = [];
// General Functions
- 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 $req_setting is not named in camelCase. Open
public function get_php_data()
{
$array = [];
// General Functions
- 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 $req_setting is not named in camelCase. Open
public function get_php_data()
{
$array = [];
// General Functions
- 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 $current_value is not named in camelCase. Open
public function build_setting(
$status,
$section,
$title,
$url,
- 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 $req_setting is not named in camelCase. Open
public function get_php_data()
{
$array = [];
// General Functions
- 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 $current_value is not named in camelCase. Open
public function build_setting(
$status,
$section,
$title,
$url,
- 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 $formatted_current_value is not named in camelCase. Open
public function build_setting(
$status,
$section,
$title,
$url,
- 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 $req_setting is not named in camelCase. Open
public function get_php_data()
{
$array = [];
// General Functions
- 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 $req_setting is not named in camelCase. Open
public function get_php_data()
{
$array = [];
// General Functions
- 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 $req_setting is not named in camelCase. Open
public function get_php_data()
{
$array = [];
// General Functions
- 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 $formatted_current_value is not named in camelCase. Open
public function build_setting(
$status,
$section,
$title,
$url,
- 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 method get_paths_data is not named in camelCase. Open
public function get_paths_data()
{
global $paths;
$list = $paths[api_get_path(WEB_PATH)];
//$list['url_append'] = api_get_configuration_value('url_append');
- 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() {
}
}
Source
The method get_chamilo_data is not named in camelCase. Open
public function get_chamilo_data()
{
$array = [];
$writable_folders = [
api_get_path(SYS_ARCHIVE_PATH).'cache',
- 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() {
}
}
Source
The method show_html is not named in camelCase. Open
public function show_html()
{
$sections = [
'chamilo' => [
'lang' => 'Chamilo',
- 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() {
}
}
Source
The method get_courses_space_data is not named in camelCase. Open
public function get_courses_space_data()
{
$array = [];
$em = Database::getManager();
- 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() {
}
}
Source
The method format_yes_no_optional is not named in camelCase. Open
public function format_yes_no_optional($value)
{
$return = '';
switch ($value) {
case 0:
- 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() {
}
}
Source
The method format_on_off is not named in camelCase. Open
public function format_on_off($value)
{
$value = intval($value);
if ($value > 1) {
// Greater than 1 values are shown "as-is", they may be interpreted as "On" later.
- 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() {
}
}
Source
The method format_yes_no is not named in camelCase. Open
public function format_yes_no($value)
{
return $value ? get_lang('Yes') : get_lang('No');
}
- 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() {
}
}
Source
The method get_database_data is not named in camelCase. Open
public function get_database_data()
{
$array = [];
$em = Database::getManager();
$connection = $em->getConnection();
- 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() {
}
}
Source
The method get_courses_space_count is not named in camelCase. Open
public function get_courses_space_count()
{
$em = Database::getManager();
$connection = $em->getConnection();
$res = $connection->query('SELECT count(id) FROM course');
- 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() {
}
}
Source
The method get_php_data is not named in camelCase. Open
public function get_php_data()
{
$array = [];
// General Functions
- 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() {
}
}
Source
The method get_webserver_data is not named in camelCase. Open
public function get_webserver_data()
{
$array = [];
$array[] = $this->build_setting(
- 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() {
}
}
Source
The method get_link is not named in camelCase. Open
public function get_link($title, $url)
{
return '<a href="'.$url.'" target="about:bank">'.$title.'</a>';
}
- 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() {
}
}
Source
The method build_setting is not named in camelCase. Open
public function build_setting(
$status,
$section,
$title,
$url,
- 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() {
}
}