chamilo/chamilo-lms

View on GitHub
public/main/inc/lib/diagnoser.lib.php

Summary

Maintainability
A
0 mins
Test Coverage

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
Severity: Minor
Found in public/main/inc/lib/diagnoser.lib.php by phpmd

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;
Severity: Minor
Found in public/main/inc/lib/diagnoser.lib.php by phpmd

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']);
Severity: Minor
Found in public/main/inc/lib/diagnoser.lib.php by phpmd

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);
Severity: Minor
Found in public/main/inc/lib/diagnoser.lib.php by phpmd

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);
Severity: Minor
Found in public/main/inc/lib/diagnoser.lib.php by phpmd

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',
Severity: Minor
Found in public/main/inc/lib/diagnoser.lib.php by phpmd

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);
Severity: Minor
Found in public/main/inc/lib/diagnoser.lib.php by phpmd

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>';
            }
Severity: Minor
Found in public/main/inc/lib/diagnoser.lib.php by phpmd

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);
Severity: Minor
Found in public/main/inc/lib/diagnoser.lib.php by phpmd

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);
                }
Severity: Minor
Found in public/main/inc/lib/diagnoser.lib.php by phpmd

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;
        }
Severity: Minor
Found in public/main/inc/lib/diagnoser.lib.php by phpmd

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) {
Severity: Minor
Found in public/main/inc/lib/diagnoser.lib.php by phpmd

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;
Severity: Minor
Found in public/main/inc/lib/diagnoser.lib.php by phpmd

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);
Severity: Minor
Found in public/main/inc/lib/diagnoser.lib.php by phpmd

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,
Severity: Minor
Found in public/main/inc/lib/diagnoser.lib.php by phpmd

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,
Severity: Minor
Found in public/main/inc/lib/diagnoser.lib.php by phpmd

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,

Variable "req_setting" is not in valid camel caps format
Open

            $req_setting,

Variable "req_setting" is not in valid camel caps format
Open

            $req_setting,

Variable "current_value" is not in valid camel caps format
Open

                $formatted_current_value = call_user_func([$this, 'format_'.$formatter], $current_value);

Variable "formatted_expected_value" is not in valid camel caps format
Open

                $formatted_expected_value = call_user_func([$this, 'format_'.$formatter], $expected_value);

Variable "access_url_id" is not in valid camel caps format
Open

                $limit = get_hosting_limit($access_url_id, 'hosting_limit_disk_space');

Method name "Diagnoser::get_php_data" is not in camel caps format
Open

    public function get_php_data()

Variable "req_setting" is not in valid camel caps format
Open

        $req_setting = 1;

Variable "req_setting" is not in valid camel caps format
Open

        $req_setting = 0;

Variable "req_setting" is not in valid camel caps format
Open

            $req_setting,

Variable "req_setting" is not in valid camel caps format
Open

        $req_setting = 'UTF-8';

Variable "expected_value" is not in valid camel caps format
Open

            $expected_value = $data['expected'];

Method name "Diagnoser::build_setting" is not in camel caps format
Open

    public function build_setting(

Variable "req_setting" is not in valid camel caps format
Open

        $status = $setting == $req_setting ? self::STATUS_OK : self::STATUS_ERROR;

Variable "req_setting" is not in valid camel caps format
Open

            $req_setting,

Variable "req_setting" is not in valid camel caps format
Open

            $req_setting,

Variable "formatted_current_value" is not in valid camel caps format
Open

        return [$image, $section, $url, $formatted_current_value, $formatted_expected_value, $comment];

Variable "req_setting" is not in valid camel caps format
Open

        $status = $setting == $req_setting ? self::STATUS_OK : self::STATUS_ERROR;

Variable "req_setting" is not in valid camel caps format
Open

        $req_setting = '>= '.REQUIRED_MIN_MEMORY_LIMIT.'M';

Method name "Diagnoser::get_database_data" is not in camel caps format
Open

    public function get_database_data()

Variable "current_value" is not in valid camel caps format
Open

        $current_value,

Variable "req_setting" is not in valid camel caps format
Open

            $req_setting,

Variable "req_setting" is not in valid camel caps format
Open

        $req_setting = '300 ('.get_lang('minimum').')';

Method name "Diagnoser::show_html" is not in camel caps format
Open

    public function show_html()

Variable "req_setting" is not in valid camel caps format
Open

        $req_setting = 'GPCS';

Variable "req_setting" is not in valid camel caps format
Open

        $req_setting = true;

Variable "writable_folders" is not in valid camel caps format
Open

        foreach ($writable_folders as $index => $folder) {

Variable "new_version" is not in valid camel caps format
Open

            $new_version.' '.$new_version_status,

Variable "req_setting" is not in valid camel caps format
Open

        $status = $setting == $req_setting ? self::STATUS_OK : self::STATUS_WARNING;

Variable "req_setting" is not in valid camel caps format
Open

            $req_setting,

Variable "req_setting" is not in valid camel caps format
Open

            $req_setting,

Missing parameter name
Open

     * @param $title

Variable "app_version" is not in valid camel caps format
Open

            $app_version,

Variable "req_setting" is not in valid camel caps format
Open

        $req_setting = 0;

Variable "req_setting" is not in valid camel caps format
Open

            $req_setting,

Variable "req_setting" is not in valid camel caps format
Open

            $req_setting,

Method name "Diagnoser::get_courses_space_count" is not in camel caps format
Open

    public function get_courses_space_count()

Variable "current_value" is not in valid camel caps format
Open

        $formatted_current_value = $current_value;

Variable "expected_value" is not in valid camel caps format
Open

                $formatted_expected_value = call_user_func([$this, 'format_'.$formatter], $expected_value);

Missing parameter name
Open

     * @param $url

Missing parameter name
Open

     * @param $value

Variable "new_version_status" is not in valid camel caps format
Open

        $new_version_status = '';

Variable "new_version_status" is not in valid camel caps format
Open

            $new_version.' '.$new_version_status,

Variable "req_setting" is not in valid camel caps format
Open

        $req_setting = '>= '.REQUIRED_MIN_POST_MAX_SIZE.'M';

Variable "req_setting" is not in valid camel caps format
Open

        $req_setting = '4320';

Variable "formatted_current_value" is not in valid camel caps format
Open

        $formatted_current_value = $current_value;

Variable "req_setting" is not in valid camel caps format
Open

            $req_setting,

Variable "req_setting" is not in valid camel caps format
Open

        $req_setting = '300 ('.get_lang('minimum').')';

Variable "req_setting" is not in valid camel caps format
Open

        $req_setting = '>= '.REQUIRED_MIN_UPLOAD_MAX_FILESIZE.'M';

Variable "req_setting" is not in valid camel caps format
Open

        $status = $setting == $req_setting ? self::STATUS_OK : self::STATUS_WARNING;

Method name "Diagnoser::get_courses_space_data" is not in camel caps format
Open

    public function get_courses_space_data()

Variable "expected_value" is not in valid camel caps format
Open

        $formatted_expected_value = $expected_value;

Variable "writable_folders" is not in valid camel caps format
Open

        $writable_folders = [

Variable "req_setting" is not in valid camel caps format
Open

        $status = $setting == $req_setting ? self::STATUS_OK : self::STATUS_WARNING;

Variable "req_setting" is not in valid camel caps format
Open

            $req_setting,

Method name "Diagnoser::format_on_off" is not in camel caps format
Open

    public function format_on_off($value)

Method name "Diagnoser::get_chamilo_data" is not in camel caps format
Open

    public function get_chamilo_data()

Variable "app_version" is not in valid camel caps format
Open

        $app_version = api_get_setting('platform.chamilo_database_version');

Variable "access_url_id" is not in valid camel caps format
Open

        $access_url_id = api_get_current_access_url_id();

Variable "req_setting" is not in valid camel caps format
Open

        $req_setting = 0;

Variable "req_setting" is not in valid camel caps format
Open

        $status = $setting == $req_setting ? self::STATUS_OK : self::STATUS_ERROR;

Variable "req_setting" is not in valid camel caps format
Open

        $req_setting = 0;

Variable "req_setting" is not in valid camel caps format
Open

            $req_setting,

Variable "req_setting" is not in valid camel caps format
Open

        $status = $setting == $req_setting ? self::STATUS_OK : self::STATUS_WARNING;

Variable "formatted_current_value" is not in valid camel caps format
Open

                $formatted_current_value = call_user_func([$this, 'format_'.$formatter], $current_value);

Variable "req_setting" is not in valid camel caps format
Open

        $status = $setting >= $req_setting ? self::STATUS_OK : self::STATUS_ERROR;

Variable "req_setting" is not in valid camel caps format
Open

        $req_setting = 0;

Variable "req_setting" is not in valid camel caps format
Open

        $status = $setting == $req_setting ? self::STATUS_OK : self::STATUS_WARNING;

Variable "req_setting" is not in valid camel caps format
Open

            $req_setting,

Variable "req_setting" is not in valid camel caps format
Open

            $req_setting,

Variable "formatted_expected_value" is not in valid camel caps format
Open

        $formatted_expected_value = $expected_value;

Method name "Diagnoser::get_paths_data" is not in camel caps format
Open

    public function get_paths_data()

Variable "new_version" is not in valid camel caps format
Open

            $new_version,

Variable "req_setting" is not in valid camel caps format
Open

        $status = $setting == $req_setting ? self::STATUS_OK : self::STATUS_ERROR;

Variable "expected_value" is not in valid camel caps format
Open

                $expected_value,

Variable "formatted_expected_value" is not in valid camel caps format
Open

        return [$image, $section, $url, $formatted_current_value, $formatted_expected_value, $comment];

Variable "access_url_id" is not in valid camel caps format
Open

        if (1 === $access_url_id) {

Variable "req_setting" is not in valid camel caps format
Open

        $status = $setting == $req_setting ? self::STATUS_OK : self::STATUS_ERROR;

Variable "req_setting" is not in valid camel caps format
Open

        $req_setting = 0;

Variable "expected_value" is not in valid camel caps format
Open

        $expected_value,

Method name "Diagnoser::get_link" is not in camel caps format
Open

    public function get_link($title, $url)

Method name "Diagnoser::format_yes_no" is not in camel caps format
Open

    public function format_yes_no($value)

Variable "new_version" is not in valid camel caps format
Open

        $new_version = '-';

Variable "req_setting" is not in valid camel caps format
Open

        $req_setting = 1;

Variable "req_setting" is not in valid camel caps format
Open

        $status = $setting == $req_setting ? self::STATUS_OK : self::STATUS_ERROR;

Variable "req_setting" is not in valid camel caps format
Open

            $req_setting,

Method name "Diagnoser::get_webserver_data" is not in camel caps format
Open

    public function get_webserver_data()

Method name "Diagnoser::format_yes_no_optional" is not in camel caps format
Open

    public function format_yes_no_optional($value)

The variable $req_setting is not named in camelCase.
Open

    public function get_php_data()
    {
        $array = [];

        // General Functions
Severity: Minor
Found in public/main/inc/lib/diagnoser.lib.php by phpmd

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
Severity: Minor
Found in public/main/inc/lib/diagnoser.lib.php by phpmd

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
Severity: Minor
Found in public/main/inc/lib/diagnoser.lib.php by phpmd

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',
Severity: Minor
Found in public/main/inc/lib/diagnoser.lib.php by phpmd

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',
Severity: Minor
Found in public/main/inc/lib/diagnoser.lib.php by phpmd

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
Severity: Minor
Found in public/main/inc/lib/diagnoser.lib.php by phpmd

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',
Severity: Minor
Found in public/main/inc/lib/diagnoser.lib.php by phpmd

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',
Severity: Minor
Found in public/main/inc/lib/diagnoser.lib.php by phpmd

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
Severity: Minor
Found in public/main/inc/lib/diagnoser.lib.php by phpmd

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',
Severity: Minor
Found in public/main/inc/lib/diagnoser.lib.php by phpmd

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',
Severity: Minor
Found in public/main/inc/lib/diagnoser.lib.php by phpmd

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
Severity: Minor
Found in public/main/inc/lib/diagnoser.lib.php by phpmd

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
Severity: Minor
Found in public/main/inc/lib/diagnoser.lib.php by phpmd

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
Severity: Minor
Found in public/main/inc/lib/diagnoser.lib.php by phpmd

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',
Severity: Minor
Found in public/main/inc/lib/diagnoser.lib.php by phpmd

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
Severity: Minor
Found in public/main/inc/lib/diagnoser.lib.php by phpmd

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
Severity: Minor
Found in public/main/inc/lib/diagnoser.lib.php by phpmd

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
Severity: Minor
Found in public/main/inc/lib/diagnoser.lib.php by phpmd

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
Severity: Minor
Found in public/main/inc/lib/diagnoser.lib.php by phpmd

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',
Severity: Minor
Found in public/main/inc/lib/diagnoser.lib.php by phpmd

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',
Severity: Minor
Found in public/main/inc/lib/diagnoser.lib.php by phpmd

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',
Severity: Minor
Found in public/main/inc/lib/diagnoser.lib.php by phpmd

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',
Severity: Minor
Found in public/main/inc/lib/diagnoser.lib.php by phpmd

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
Severity: Minor
Found in public/main/inc/lib/diagnoser.lib.php by phpmd

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
Severity: Minor
Found in public/main/inc/lib/diagnoser.lib.php by phpmd

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',
Severity: Minor
Found in public/main/inc/lib/diagnoser.lib.php by phpmd

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
Severity: Minor
Found in public/main/inc/lib/diagnoser.lib.php by phpmd

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,
Severity: Minor
Found in public/main/inc/lib/diagnoser.lib.php by phpmd

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
Severity: Minor
Found in public/main/inc/lib/diagnoser.lib.php by phpmd

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
Severity: Minor
Found in public/main/inc/lib/diagnoser.lib.php by phpmd

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
Severity: Minor
Found in public/main/inc/lib/diagnoser.lib.php by phpmd

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,
Severity: Minor
Found in public/main/inc/lib/diagnoser.lib.php by phpmd

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,
Severity: Minor
Found in public/main/inc/lib/diagnoser.lib.php by phpmd

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
Severity: Minor
Found in public/main/inc/lib/diagnoser.lib.php by phpmd

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
Severity: Minor
Found in public/main/inc/lib/diagnoser.lib.php by phpmd

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
Severity: Minor
Found in public/main/inc/lib/diagnoser.lib.php by phpmd

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,
Severity: Minor
Found in public/main/inc/lib/diagnoser.lib.php by phpmd

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
Severity: Minor
Found in public/main/inc/lib/diagnoser.lib.php by phpmd

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
Severity: Minor
Found in public/main/inc/lib/diagnoser.lib.php by phpmd

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
Severity: Minor
Found in public/main/inc/lib/diagnoser.lib.php by phpmd

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
Severity: Minor
Found in public/main/inc/lib/diagnoser.lib.php by phpmd

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
Severity: Minor
Found in public/main/inc/lib/diagnoser.lib.php by phpmd

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
Severity: Minor
Found in public/main/inc/lib/diagnoser.lib.php by phpmd

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
Severity: Minor
Found in public/main/inc/lib/diagnoser.lib.php by phpmd

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
Severity: Minor
Found in public/main/inc/lib/diagnoser.lib.php by phpmd

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
Severity: Minor
Found in public/main/inc/lib/diagnoser.lib.php by phpmd

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
Severity: Minor
Found in public/main/inc/lib/diagnoser.lib.php by phpmd

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,
Severity: Minor
Found in public/main/inc/lib/diagnoser.lib.php by phpmd

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,
Severity: Minor
Found in public/main/inc/lib/diagnoser.lib.php by phpmd

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
Severity: Minor
Found in public/main/inc/lib/diagnoser.lib.php by phpmd

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
Severity: Minor
Found in public/main/inc/lib/diagnoser.lib.php by phpmd

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
Severity: Minor
Found in public/main/inc/lib/diagnoser.lib.php by phpmd

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
Severity: Minor
Found in public/main/inc/lib/diagnoser.lib.php by phpmd

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
Severity: Minor
Found in public/main/inc/lib/diagnoser.lib.php by phpmd

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
Severity: Minor
Found in public/main/inc/lib/diagnoser.lib.php by phpmd

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
Severity: Minor
Found in public/main/inc/lib/diagnoser.lib.php by phpmd

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
Severity: Minor
Found in public/main/inc/lib/diagnoser.lib.php by phpmd

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
Severity: Minor
Found in public/main/inc/lib/diagnoser.lib.php by phpmd

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
Severity: Minor
Found in public/main/inc/lib/diagnoser.lib.php by phpmd

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
Severity: Minor
Found in public/main/inc/lib/diagnoser.lib.php by phpmd

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
Severity: Minor
Found in public/main/inc/lib/diagnoser.lib.php by phpmd

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
Severity: Minor
Found in public/main/inc/lib/diagnoser.lib.php by phpmd

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,
Severity: Minor
Found in public/main/inc/lib/diagnoser.lib.php by phpmd

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
Severity: Minor
Found in public/main/inc/lib/diagnoser.lib.php by phpmd

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,
Severity: Minor
Found in public/main/inc/lib/diagnoser.lib.php by phpmd

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,
Severity: Minor
Found in public/main/inc/lib/diagnoser.lib.php by phpmd

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
Severity: Minor
Found in public/main/inc/lib/diagnoser.lib.php by phpmd

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
Severity: Minor
Found in public/main/inc/lib/diagnoser.lib.php by phpmd

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
Severity: Minor
Found in public/main/inc/lib/diagnoser.lib.php by phpmd

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,
Severity: Minor
Found in public/main/inc/lib/diagnoser.lib.php by phpmd

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');
Severity: Minor
Found in public/main/inc/lib/diagnoser.lib.php by phpmd

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',
Severity: Minor
Found in public/main/inc/lib/diagnoser.lib.php by phpmd

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',
Severity: Minor
Found in public/main/inc/lib/diagnoser.lib.php by phpmd

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();
Severity: Minor
Found in public/main/inc/lib/diagnoser.lib.php by phpmd

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:
Severity: Minor
Found in public/main/inc/lib/diagnoser.lib.php by phpmd

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.
Severity: Minor
Found in public/main/inc/lib/diagnoser.lib.php by phpmd

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');
    }
Severity: Minor
Found in public/main/inc/lib/diagnoser.lib.php by phpmd

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();
Severity: Minor
Found in public/main/inc/lib/diagnoser.lib.php by phpmd

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');
Severity: Minor
Found in public/main/inc/lib/diagnoser.lib.php by phpmd

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
Severity: Minor
Found in public/main/inc/lib/diagnoser.lib.php by phpmd

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(
Severity: Minor
Found in public/main/inc/lib/diagnoser.lib.php by phpmd

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>';
    }
Severity: Minor
Found in public/main/inc/lib/diagnoser.lib.php by phpmd

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,
Severity: Minor
Found in public/main/inc/lib/diagnoser.lib.php by phpmd

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