chamilo/chamilo-lms

View on GitHub
public/main/lp/aicc.class.php

Summary

Maintainability
A
0 mins
Test Coverage

The method aicc::import_package() calls the typical debug function print_r() which is mostly only used during development.
Open

            error_log('In aicc::import_package('.print_r($zip_file_info, true).',"'.$current_dir.'") method', 0);
Severity: Minor
Found in public/main/lp/aicc.class.php by phpmd

DevelopmentCodeFragment

Since: 2.3.0

Functions like vardump(), printr() etc. are normally only used during development and therefore such calls in production code are a good indicator that they were just forgotten.

Example

class SuspectCode {

    public function doSomething(array $items)
    {
        foreach ($items as $i => $item) {
            // …

            if ('qafoo' == $item) var_dump($i);

            // …
        }
    }
}

Source https://phpmd.org/rules/design.html#developmentcodefragment

The method aicc::import_package() calls the typical debug function print_r() which is mostly only used during development.
Open

            error_log('New LP - aicc::import_package() - $files_found: '.print_r($files_found, true), 0);
Severity: Minor
Found in public/main/lp/aicc.class.php by phpmd

DevelopmentCodeFragment

Since: 2.3.0

Functions like vardump(), printr() etc. are normally only used during development and therefore such calls in production code are a good indicator that they were just forgotten.

Example

class SuspectCode {

    public function doSomething(array $items)
    {
        foreach ($items as $i => $item) {
            // …

            if ('qafoo' == $item) var_dump($i);

            // …
        }
    }
}

Source https://phpmd.org/rules/design.html#developmentcodefragment

The method parse_config_files() has an NPath complexity of 1153433608. The configured NPath complexity threshold is 200.
Open

    public function parse_config_files($dir = '')
    {
        if ($this->debug > 0) {
            error_log('New LP - In aicc::parse_config_files('.$dir.')', 0);
        }
Severity: Minor
Found in public/main/lp/aicc.class.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

The method import_aicc() has an NPath complexity of 1056. The configured NPath complexity threshold is 200.
Open

    public function import_aicc($course_code)
    {
        $courseInfo = api_get_course_info($course_code);
        $course_id = $courseInfo['real_id'];

Severity: Minor
Found in public/main/lp/aicc.class.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

The method import_package() has an NPath complexity of 1916928. The configured NPath complexity threshold is 200.
Open

    public function import_package($zip_file_info, $current_dir = '')
    {
        if ($this->debug > 0) {
            error_log('In aicc::import_package('.print_r($zip_file_info, true).',"'.$current_dir.'") method', 0);
        }
Severity: Minor
Found in public/main/lp/aicc.class.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

The method parse_csv_file() has an NPath complexity of 204. The configured NPath complexity threshold is 200.
Open

    public function parse_csv_file($f, $delim = ',', $enclosure = '"', $multiples = false)
    {
        $data = @file_get_contents($f);
        $data = api_convert_encoding($data, api_get_system_encoding(), $this->config_encoding);
        $enclosed = false;
Severity: Minor
Found in public/main/lp/aicc.class.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

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

                $oCst = new aiccBlock('config', $cst);
Severity: Minor
Found in public/main/lp/aicc.class.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 '412', column '24').
Open

        $zipFile = new PclZip($zip_file_path);
Severity: Minor
Found in public/main/lp/aicc.class.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 '148', column '29').
Open

                $oDes = new aiccResource('config', $des);
Severity: Minor
Found in public/main/lp/aicc.class.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 '160', column '28').
Open

                $oAu = new aiccItem('config', $au);
Severity: Minor
Found in public/main/lp/aicc.class.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 '187', column '33').
Open

                    $oOre = new aiccObjective('config', $ore);
Severity: Minor
Found in public/main/lp/aicc.class.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 555.
Open

    public function import_package($zip_file_info, $current_dir = '')
    {
        if ($this->debug > 0) {
            error_log('In aicc::import_package('.print_r($zip_file_info, true).',"'.$current_dir.'") method', 0);
        }
Severity: Minor
Found in public/main/lp/aicc.class.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

Remove error control operator '@' on line 750.
Open

    public function parse_ini_file_quotes_safe($f)
    {
        $null = '';
        $r = $null;
        $sec = $null;
Severity: Minor
Found in public/main/lp/aicc.class.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

Remove error control operator '@' on line 789.
Open

    public function parse_ini_string_quotes_safe($s, $pure_strings = [])
    {
        $null = '';
        $r = $null;
        $sec = $null;
Severity: Minor
Found in public/main/lp/aicc.class.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

Remove error control operator '@' on line 813.
Open

    public function parse_ini_string_quotes_safe($s, $pure_strings = [])
    {
        $null = '';
        $r = $null;
        $sec = $null;
Severity: Minor
Found in public/main/lp/aicc.class.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

Remove error control operator '@' on line 848.
Open

    public function parse_csv_file($f, $delim = ',', $enclosure = '"', $multiples = false)
    {
        $data = @file_get_contents($f);
        $data = api_convert_encoding($data, api_get_system_encoding(), $this->config_encoding);
        $enclosed = false;
Severity: Minor
Found in public/main/lp/aicc.class.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

Remove error control operator '@' on line 733.
Open

    public function parse_ini_file_quotes_safe($f)
    {
        $null = '';
        $r = $null;
        $sec = $null;
Severity: Minor
Found in public/main/lp/aicc.class.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

Remove error control operator '@' on line 751.
Open

    public function parse_ini_file_quotes_safe($f)
    {
        $null = '';
        $r = $null;
        $sec = $null;
Severity: Minor
Found in public/main/lp/aicc.class.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

Remove error control operator '@' on line 787.
Open

    public function parse_ini_string_quotes_safe($s, $pure_strings = [])
    {
        $null = '';
        $r = $null;
        $sec = $null;
Severity: Minor
Found in public/main/lp/aicc.class.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

Remove error control operator '@' on line 812.
Open

    public function parse_ini_string_quotes_safe($s, $pure_strings = [])
    {
        $null = '';
        $r = $null;
        $sec = $null;
Severity: Minor
Found in public/main/lp/aicc.class.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

Remove error control operator '@' on line 741.
Open

    public function parse_ini_file_quotes_safe($f)
    {
        $null = '';
        $r = $null;
        $sec = $null;
Severity: Minor
Found in public/main/lp/aicc.class.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

Remove error control operator '@' on line 751.
Open

    public function parse_ini_file_quotes_safe($f)
    {
        $null = '';
        $r = $null;
        $sec = $null;
Severity: Minor
Found in public/main/lp/aicc.class.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

Remove error control operator '@' on line 811.
Open

    public function parse_ini_string_quotes_safe($s, $pure_strings = [])
    {
        $null = '';
        $r = $null;
        $sec = $null;
Severity: Minor
Found in public/main/lp/aicc.class.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

Remove error control operator '@' on line 728.
Open

    public function parse_ini_file_quotes_safe($f)
    {
        $null = '';
        $r = $null;
        $sec = $null;
Severity: Minor
Found in public/main/lp/aicc.class.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

Remove error control operator '@' on line 809.
Open

    public function parse_ini_string_quotes_safe($s, $pure_strings = [])
    {
        $null = '';
        $r = $null;
        $sec = $null;
Severity: Minor
Found in public/main/lp/aicc.class.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

Remove error control operator '@' on line 731.
Open

    public function parse_ini_file_quotes_safe($f)
    {
        $null = '';
        $r = $null;
        $sec = $null;
Severity: Minor
Found in public/main/lp/aicc.class.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

Remove error control operator '@' on line 643.
Open

    public function get_res_path($id)
    {
        if ($this->debug > 0) {
            error_log('In aicc::get_res_path('.$id.') method', 0);
        }
Severity: Minor
Found in public/main/lp/aicc.class.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

Remove error control operator '@' on line 740.
Open

    public function parse_ini_file_quotes_safe($f)
    {
        $null = '';
        $r = $null;
        $sec = $null;
Severity: Minor
Found in public/main/lp/aicc.class.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

Remove error control operator '@' on line 749.
Open

    public function parse_ini_file_quotes_safe($f)
    {
        $null = '';
        $r = $null;
        $sec = $null;
Severity: Minor
Found in public/main/lp/aicc.class.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

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

        $zip_folder = new PclZip($zipfilename);
Severity: Minor
Found in public/main/lp/aicc.class.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 808.
Open

    public function parse_ini_string_quotes_safe($s, $pure_strings = [])
    {
        $null = '';
        $r = $null;
        $sec = $null;
Severity: Minor
Found in public/main/lp/aicc.class.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

Remove error control operator '@' on line 740.
Open

    public function parse_ini_file_quotes_safe($f)
    {
        $null = '';
        $r = $null;
        $sec = $null;
Severity: Minor
Found in public/main/lp/aicc.class.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

Remove error control operator '@' on line 796.
Open

    public function parse_ini_string_quotes_safe($s, $pure_strings = [])
    {
        $null = '';
        $r = $null;
        $sec = $null;
Severity: Minor
Found in public/main/lp/aicc.class.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

Remove error control operator '@' on line 797.
Open

    public function parse_ini_string_quotes_safe($s, $pure_strings = [])
    {
        $null = '';
        $r = $null;
        $sec = $null;
Severity: Minor
Found in public/main/lp/aicc.class.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

Remove error control operator '@' on line 741.
Open

    public function parse_ini_file_quotes_safe($f)
    {
        $null = '';
        $r = $null;
        $sec = $null;
Severity: Minor
Found in public/main/lp/aicc.class.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

Remove error control operator '@' on line 747.
Open

    public function parse_ini_file_quotes_safe($f)
    {
        $null = '';
        $r = $null;
        $sec = $null;
Severity: Minor
Found in public/main/lp/aicc.class.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

Remove error control operator '@' on line 797.
Open

    public function parse_ini_string_quotes_safe($s, $pure_strings = [])
    {
        $null = '';
        $r = $null;
        $sec = $null;
Severity: Minor
Found in public/main/lp/aicc.class.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

Remove error control operator '@' on line 746.
Open

    public function parse_ini_file_quotes_safe($f)
    {
        $null = '';
        $r = $null;
        $sec = $null;
Severity: Minor
Found in public/main/lp/aicc.class.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

Remove error control operator '@' on line 796.
Open

    public function parse_ini_string_quotes_safe($s, $pure_strings = [])
    {
        $null = '';
        $r = $null;
        $sec = $null;
Severity: Minor
Found in public/main/lp/aicc.class.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

Remove error control operator '@' on line 812.
Open

    public function parse_ini_string_quotes_safe($s, $pure_strings = [])
    {
        $null = '';
        $r = $null;
        $sec = $null;
Severity: Minor
Found in public/main/lp/aicc.class.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

Remove error control operator '@' on line 811.
Open

    public function parse_ini_string_quotes_safe($s, $pure_strings = [])
    {
        $null = '';
        $r = $null;
        $sec = $null;
Severity: Minor
Found in public/main/lp/aicc.class.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

Remove error control operator '@' on line 749.
Open

    public function parse_ini_file_quotes_safe($f)
    {
        $null = '';
        $r = $null;
        $sec = $null;
Severity: Minor
Found in public/main/lp/aicc.class.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

Remove error control operator '@' on line 750.
Open

    public function parse_ini_file_quotes_safe($f)
    {
        $null = '';
        $r = $null;
        $sec = $null;
Severity: Minor
Found in public/main/lp/aicc.class.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

Remove error control operator '@' on line 813.
Open

    public function parse_ini_string_quotes_safe($s, $pure_strings = [])
    {
        $null = '';
        $r = $null;
        $sec = $null;
Severity: Minor
Found in public/main/lp/aicc.class.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 import_package uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
Open

                    } else {
                        if (!$subdir_isset) {
                            if (preg_match('?^.*/aicc$?i', dirname($thisContent['filename']))) {
                                //echo "Cutting subdir<br/>";
                                $this->subdir .= '/'.substr(dirname($thisContent['filename']), 0, -5);
Severity: Minor
Found in public/main/lp/aicc.class.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 import_package uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
Open

        } else {
            return '';
        }
Severity: Minor
Found in public/main/lp/aicc.class.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 import_package uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
Open

                } else {
                    if ($this->debug > 3) {
                        error_log('New LP - aicc::import_package() - File '.$thisContent['filename'].' didnt match any check', 0);
                    }
                }
Severity: Minor
Found in public/main/lp/aicc.class.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 import_package uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
Open

                            } else {
                                //echo "Not cutting subdir<br/>";
                                $this->subdir .= '/'.dirname($thisContent['filename']);
                            }
Severity: Minor
Found in public/main/lp/aicc.class.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 import_package uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
Open

            } else {
                // else, look for one of the files we're searching for (something.crs case insensitive).
                $res = [];
                if (preg_match('?^(.*)\.(crs|au|des|cst|ore|pre|cmp)$?i', $thisContent['filename'], $res)) {
                    if ($this->debug > 1) {
Severity: Minor
Found in public/main/lp/aicc.class.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 import_aicc uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
Open

        } else {
            $row = Database::fetch_array($res_max);
            $dsp = $row[0] + 1;
        }
Severity: Minor
Found in public/main/lp/aicc.class.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 parse_csv_file uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
Open

                    } else {
                        $fldval .= $chr;
                    }
Severity: Minor
Found in public/main/lp/aicc.class.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 parse_ini_string_quotes_safe uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
Open

                        } else {
                            if ('course_description' == api_strtolower($sec)) { // A special case.
                                $r[api_strtolower($sec)] = $k;
                            } else {
                                $r[api_strtolower($sec)][api_strtolower($k)] = $v;
Severity: Minor
Found in public/main/lp/aicc.class.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 parse_ini_string_quotes_safe uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
Open

                    } else {
                        $r[api_strtolower($k)] = $v;
                    }
Severity: Minor
Found in public/main/lp/aicc.class.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 parse_csv_file uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
Open

                    } else {
                        $fldval .= $chr;
                    }
Severity: Minor
Found in public/main/lp/aicc.class.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 export_zip uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
Open

                } else {
                    $lp_id = $this->get_id();
                }
Severity: Minor
Found in public/main/lp/aicc.class.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 parse_ini_string_quotes_safe uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
Open

                            } else {
                                $r[api_strtolower($sec)][api_strtolower($k)] = $v;
                            }
Severity: Minor
Found in public/main/lp/aicc.class.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 parse_csv_file uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
Open

                    } else {
                        $fldval .= $chr;
                    }
Severity: Minor
Found in public/main/lp/aicc.class.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 export_zip uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
Open

            } else {
                $id = $this->get_id();
                if (empty($id)) {
                    return false;
                } else {
Severity: Minor
Found in public/main/lp/aicc.class.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 parse_csv_file uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
Open

                    } else {
                        $enclosed = !$enclosed;
                    }
Severity: Minor
Found in public/main/lp/aicc.class.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 parse_csv_file uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
Open

                    } else {
                        $ret_ret_array[$line_idx][api_strtolower($titles[$idx])] = $val;
                    }
Severity: Minor
Found in public/main/lp/aicc.class.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 parse_ini_file_quotes_safe uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
Open

                        } else {
                            $r[api_strtolower($sec)][api_strtolower($k)] = $v;
                        }
Severity: Minor
Found in public/main/lp/aicc.class.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 parse_csv_file uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
Open

            } else {
                $ret_ret_array[$line_idx] = [];
                foreach ($line as $idx => $val) {
                    if ($multiples && !empty($ret_ret_array[$line_idx][api_strtolower($titles[$idx])])) {
                        $ret_ret_array[$line_idx][api_strtolower($titles[$idx])] .= ','.$val;
Severity: Minor
Found in public/main/lp/aicc.class.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 parse_ini_file_quotes_safe uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
Open

                    } else {
                        $r[api_strtolower($k)] = $v;
                    }
Severity: Minor
Found in public/main/lp/aicc.class.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 parameters such as '$id'.
Open

    public function open($id)
Severity: Minor
Found in public/main/lp/aicc.class.php by phpmd

UnusedFormalParameter

Since: 0.2

Avoid passing parameters to methods or constructors and then not using those parameters.

Example

class Foo
{
    private function bar($howdy)
    {
        // $howdy is not used
    }
}

Source https://phpmd.org/rules/unusedcode.html#unusedformalparameter

Avoid unused local variables such as '$cmp'.
Open

                foreach ($cmp_params as $cmp) {
Severity: Minor
Found in public/main/lp/aicc.class.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 '$dummy'.
Open

        foreach ($this->aulist as $identifier => $dummy) {
Severity: Minor
Found in public/main/lp/aicc.class.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 '$maxFilledSpace'.
Open

        $maxFilledSpace = 1000000000;
Severity: Minor
Found in public/main/lp/aicc.class.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 '$at_root'.
Open

        $at_root = false; // Check if the config files are at zip root.
Severity: Minor
Found in public/main/lp/aicc.class.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 '$realFileSize'.
Open

        $realFileSize = 0;
Severity: Minor
Found in public/main/lp/aicc.class.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 '$package'.
Open

        $package = ''; // The basename of the config files (if 'courses.crs' => 'courses').
Severity: Minor
Found in public/main/lp/aicc.class.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 '$file_exts'.
Open

        foreach ($files_found as $file_name => $file_exts) {
Severity: Minor
Found in public/main/lp/aicc.class.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 '$course_id'.
Open

        $course_id = api_get_course_int_id();
Severity: Minor
Found in public/main/lp/aicc.class.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 '$value'.
Open

            foreach ($this->organizations as $id => $value) {
Severity: Minor
Found in public/main/lp/aicc.class.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 using count() function in for loops.
Open

        for ($i = 0; $i < @count($f); $i++) {
            $newsec = 0;
            $w = @trim($f[$i]);
            if (';' == substr($w, 0, 1)) {
                // Ignore comment lines
Severity: Minor
Found in public/main/lp/aicc.class.php by phpmd

CountInLoopExpression

Since: 2.7.0

Using count/sizeof in loops expressions is considered bad practice and is a potential source of many bugs, especially when the loop manipulates an array, as count happens on each iteration.

Example

class Foo {

  public function bar()
  {
    $array = array();

    for ($i = 0; count($array); $i++) {
      // ...
    }
  }
}

Source https://phpmd.org/rules/design.html#countinloopexpression

Avoid using count() function in for loops.
Open

        for ($i = 0; $i < @count($f); $i++) {
            $newsec = 0;
            $w = @trim($f[$i]);
            if (';' == substr($w, 0, 1)) {
                // Ignore comment lines
Severity: Minor
Found in public/main/lp/aicc.class.php by phpmd

CountInLoopExpression

Since: 2.7.0

Using count/sizeof in loops expressions is considered bad practice and is a potential source of many bugs, especially when the loop manipulates an array, as count happens on each iteration.

Example

class Foo {

  public function bar()
  {
    $array = array();

    for ($i = 0; count($array); $i++) {
      // ...
    }
  }
}

Source https://phpmd.org/rules/design.html#countinloopexpression

The parameter $course_code is not named in camelCase.
Open

    public function import_aicc($course_code)
    {
        $courseInfo = api_get_course_info($course_code);
        $course_id = $courseInfo['real_id'];

Severity: Minor
Found in public/main/lp/aicc.class.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 class aicc is not named in CamelCase.
Open

class aicc extends learnpath
{
    public $config = [];
    // The configuration files might be multiple and might have
    // funny names. We need to keep the name of that file while we
Severity: Minor
Found in public/main/lp/aicc.class.php by phpmd

CamelCaseClassName

Since: 0.2

It is considered best practice to use the CamelCase notation to name classes.

Example

class class_name {
}

Source

The property $au_order_list is not named in camelCase.
Open

class aicc extends learnpath
{
    public $config = [];
    // The configuration files might be multiple and might have
    // funny names. We need to keep the name of that file while we
Severity: Minor
Found in public/main/lp/aicc.class.php by phpmd

CamelCasePropertyName

Since: 0.2

It is considered best practice to use the camelCase notation to name attributes.

Example

class ClassName {
    protected $property_name;
}

Source

The property $config_encoding is not named in camelCase.
Open

class aicc extends learnpath
{
    public $config = [];
    // The configuration files might be multiple and might have
    // funny names. We need to keep the name of that file while we
Severity: Minor
Found in public/main/lp/aicc.class.php by phpmd

CamelCasePropertyName

Since: 0.2

It is considered best practice to use the camelCase notation to name attributes.

Example

class ClassName {
    protected $property_name;
}

Source

The property $config_exts is not named in camelCase.
Open

class aicc extends learnpath
{
    public $config = [];
    // The configuration files might be multiple and might have
    // funny names. We need to keep the name of that file while we
Severity: Minor
Found in public/main/lp/aicc.class.php by phpmd

CamelCasePropertyName

Since: 0.2

It is considered best practice to use the camelCase notation to name attributes.

Example

class ClassName {
    protected $property_name;
}

Source

The parameter $course_code is not named in camelCase.
Open

    public function __construct($course_code = null, $resource_id = null, $user_id = null)
    {
        if (!empty($course_code) && !empty($resource_id) && !empty($user_id)) {
            parent::__construct($course_code, $resource_id, $user_id);
        }
Severity: Minor
Found in public/main/lp/aicc.class.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 property $au_order_list_new_id is not named in camelCase.
Open

class aicc extends learnpath
{
    public $config = [];
    // The configuration files might be multiple and might have
    // funny names. We need to keep the name of that file while we
Severity: Minor
Found in public/main/lp/aicc.class.php by phpmd

CamelCasePropertyName

Since: 0.2

It is considered best practice to use the camelCase notation to name attributes.

Example

class ClassName {
    protected $property_name;
}

Source

The parameter $resource_id is not named in camelCase.
Open

    public function __construct($course_code = null, $resource_id = null, $user_id = null)
    {
        if (!empty($course_code) && !empty($resource_id) && !empty($user_id)) {
            parent::__construct($course_code, $resource_id, $user_id);
        }
Severity: Minor
Found in public/main/lp/aicc.class.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 property $config_files is not named in camelCase.
Open

class aicc extends learnpath
{
    public $config = [];
    // The configuration files might be multiple and might have
    // funny names. We need to keep the name of that file while we
Severity: Minor
Found in public/main/lp/aicc.class.php by phpmd

CamelCasePropertyName

Since: 0.2

It is considered best practice to use the camelCase notation to name attributes.

Example

class ClassName {
    protected $property_name;
}

Source

The parameter $user_id is not named in camelCase.
Open

    public function __construct($course_code = null, $resource_id = null, $user_id = null)
    {
        if (!empty($course_code) && !empty($resource_id) && !empty($user_id)) {
            parent::__construct($course_code, $resource_id, $user_id);
        }
Severity: Minor
Found in public/main/lp/aicc.class.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 property $config_basename is not named in camelCase.
Open

class aicc extends learnpath
{
    public $config = [];
    // The configuration files might be multiple and might have
    // funny names. We need to keep the name of that file while we
Severity: Minor
Found in public/main/lp/aicc.class.php by phpmd

CamelCasePropertyName

Since: 0.2

It is considered best practice to use the camelCase notation to name attributes.

Example

class ClassName {
    protected $property_name;
}

Source

The parameter $current_dir is not named in camelCase.
Open

    public function import_local_package($file_path, $current_dir = '')
    {
        // TODO: Prepare info as given by the $_FILES[''] vector.
        $file_info = [];
        $file_info['tmp_name'] = $file_path;
Severity: Minor
Found in public/main/lp/aicc.class.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_dir is not named in camelCase.
Open

    public function import_package($zip_file_info, $current_dir = '')
    {
        if ($this->debug > 0) {
            error_log('In aicc::import_package('.print_r($zip_file_info, true).',"'.$current_dir.'") method', 0);
        }
Severity: Minor
Found in public/main/lp/aicc.class.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 $zip_file_info is not named in camelCase.
Open

    public function import_package($zip_file_info, $current_dir = '')
    {
        if ($this->debug > 0) {
            error_log('In aicc::import_package('.print_r($zip_file_info, true).',"'.$current_dir.'") method', 0);
        }
Severity: Minor
Found in public/main/lp/aicc.class.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 $lp_id is not named in camelCase.
Open

    public function export_zip($lp_id = null)
    {
        if ($this->debug > 0) {
            error_log('In aicc::export_zip method('.$lp_id.')', 0);
        }
Severity: Minor
Found in public/main/lp/aicc.class.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 $file_path is not named in camelCase.
Open

    public function import_local_package($file_path, $current_dir = '')
    {
        // TODO: Prepare info as given by the $_FILES[''] vector.
        $file_info = [];
        $file_info['tmp_name'] = $file_path;
Severity: Minor
Found in public/main/lp/aicc.class.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 $pure_strings is not named in camelCase.
Open

    public function parse_ini_string_quotes_safe($s, $pure_strings = [])
    {
        $null = '';
        $r = $null;
        $sec = $null;
Severity: Minor
Found in public/main/lp/aicc.class.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 "course_code" is not in valid camel caps format
Open

        if (!empty($course_code) && !empty($resource_id) && !empty($user_id)) {

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

            parent::__construct($course_code, $resource_id, $user_id);

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

            $crs_file = $dir.'/'.$this->config_files['crs'];

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

            $crs_params = $this->parse_ini_file_quotes_safe($crs_file);

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

                $this->course_max_fields_ort = $crs_params['course']['max_fields_ort'];

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

                $this->course_version = $crs_params['course']['version'];

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

            if (!empty($crs_params['course_description'])) {

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

            foreach ($des_params as $des) {

Member variable "au_order_list_new_id" is not in valid camel caps format
Open

    public $au_order_list_new_id = [];

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

                $this->course_total_aus = $crs_params['course']['total_aus'];

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

            if (!empty($crs_params['course']['total_objectives'])) {

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

                $ore_file = $dir.'/'.$this->config_files['ore'];

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

                $ore_params = $this->parse_csv_file($ore_file, ',', '"', true);

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

                    error_log('New LP - In aicc::parse_config_files() - '.$ore_file.' has been parsed', 0);

Member variable "config_exts" is not in valid camel caps format
Open

    public $config_exts = [

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

            if (!empty($crs_params['course']['version'])) {

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

            $au_params = $this->parse_csv_file($au_file);

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

                $this->au_order_list[] = $oAu->identifier;

Missing parameter name
Open

     * @param int Database ID of the resource

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

                $this->course_total_complex_objectives = $crs_params['course']['total_complex_objectives'];

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

            $au_params = $this->parse_csv_file($au_file);

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

                $this->course_level = $crs_params['course']['course_level'];

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

                $this->course_total_aus = $crs_params['course']['total_aus'];

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

                $this->course_total_objectives = $crs_params['course']['total_objectives'];

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

                $this->course_description = Database::escape_string($crs_params['course_description']);

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

                $this->course_description = Database::escape_string($crs_params['course_description']);

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

            $des_file = $dir.'/'.$this->config_files['des'];

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

            $cst_params = $this->parse_csv_file($cst_file, ',', '"', true);

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

                $pre_params = $this->parse_csv_file($pre_file);

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

            $crs_file = $dir.'/'.$this->config_files['crs'];

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

                $this->course_id = Database::escape_string($crs_params['course']['course_id']);

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

                $this->course_title = Database::escape_string($crs_params['course']['course_title']);

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

                $this->course_total_blocks = $crs_params['course']['total_blocks'];

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

            foreach ($au_params as $au) {

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

                $ore_params = $this->parse_csv_file($ore_file, ',', '"', true);

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

            parent::__construct($course_code, $resource_id, $user_id);

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

            if (!empty($crs_params['course']['total_aus'])) {

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

            if (!empty($crs_params['course']['total_complex_objectives'])) {

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

                $this->course_total_complex_objectives = $crs_params['course']['total_complex_objectives'];

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

                $this->course_version = $crs_params['course']['version'];

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

            $au_file = $dir.'/'.$this->config_files['au'];

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

                $pre_file = $dir.'/'.$this->config_files['pre'];

Member variable "config_files" is not in valid camel caps format
Open

    public $config_files = [];

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

    public function __construct($course_code = null, $resource_id = null, $user_id = null)

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

            if (!empty($crs_params['course']['max_fields_ort'])) {

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

            $cst_file = $dir.'/'.$this->config_files['cst'];

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

                foreach ($ore_params as $ore) {

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

            if (!empty($this->config_files['pre'])) {

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

                $this->course_max_fields_ort = $crs_params['course']['max_fields_ort'];

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

            if (!empty($crs_params['course']['total_blocks'])) {

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

                $pre_file = $dir.'/'.$this->config_files['pre'];

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

    public function __construct($course_code = null, $resource_id = null, $user_id = null)

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

            if (!empty($crs_params['course']['course_creator'])) {

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

            if (!empty($crs_params['course']['course_title'])) {

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

                $this->course_title = Database::escape_string($crs_params['course']['course_title']);

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

            if (!empty($crs_params['course']['max_fields_cst'])) {

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

                $this->course_total_blocks = $crs_params['course']['total_blocks'];

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

            $des_params = $this->parse_csv_file($des_file);

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

                error_log('New LP - In aicc::parse_config_files() - '.$des_file.' has been parsed', 0);

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

            $cst_params = $this->parse_csv_file($cst_file, ',', '"', true);

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

                $pre_params = $this->parse_csv_file($pre_file);

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

        if (!empty($course_code) && !empty($resource_id) && !empty($user_id)) {

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

            parent::__construct($course_code, $resource_id, $user_id);

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

            $crs_params = $this->parse_ini_file_quotes_safe($crs_file);

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

                $this->course_creator = Database::escape_string($crs_params['course']['course_creator']);

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

                $this->course_system = $crs_params['course']['course_system'];

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

            if (!empty($crs_params['course']['course_level'])) {

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

                error_log('New LP - In aicc::parse_config_files() - '.$cst_file.' has been parsed', 0);

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

            foreach ($cst_params as $cst) {

Member variable "config_encoding" is not in valid camel caps format
Open

    public $config_encoding = 'ISO-8859-1';

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

                $this->course_system = $crs_params['course']['course_system'];

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

                error_log('New LP - In aicc::parse_config_files() - '.$au_file.' has been parsed', 0);

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

            $cst_file = $dir.'/'.$this->config_files['cst'];

Member variable "au_order_list" is not in valid camel caps format
Open

    public $au_order_list = [];

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

    public function __construct($course_code = null, $resource_id = null, $user_id = null)

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

            if (!empty($crs_params['course']['course_id'])) {

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

            if (!empty($crs_params['course']['course_system'])) {

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

                $this->course_level = $crs_params['course']['course_level'];

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

            $des_file = $dir.'/'.$this->config_files['des'];

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

                $ore_file = $dir.'/'.$this->config_files['ore'];

Member variable "config_basename" is not in valid camel caps format
Open

    public $config_basename = '';

Missing parameter name
Open

     * @param string Path to the config files dir on the system.

Method name "aicc::parse_config_files" is not in camel caps format
Open

    public function parse_config_files($dir = '')

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

                error_log('New LP - In aicc::parse_config_files() - '.$crs_file.' has been parsed');

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

            if (!empty($this->config_files['ore'])) {

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

                $this->course_max_fields_cst = $crs_params['course']['max_fields_cst'];

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

                $this->course_max_fields_cst = $crs_params['course']['max_fields_cst'];

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

            $des_params = $this->parse_csv_file($des_file);

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

            $au_file = $dir.'/'.$this->config_files['au'];

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

        if (!empty($course_code) && !empty($resource_id) && !empty($user_id)) {

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

                $this->course_creator = Database::escape_string($crs_params['course']['course_creator']);

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

                $this->course_id = Database::escape_string($crs_params['course']['course_id']);

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

                $this->course_total_objectives = $crs_params['course']['total_objectives'];

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

                "($course_id, 3, '".$this->course_title."', '".$this->course_id."','".$this->course_description."',".

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

            $sql_item = "INSERT INTO $new_lp_item (c_id, lp_id,item_type,ref,title, path,min_score,max_score, $field_add parent_item_id,previous_item_id,next_item_id, prerequisite,display_order,parameters) ".

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

            error_log('In aicc::import_package('.print_r($zip_file_info, true).',"'.$current_dir.'") method', 0);

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

        $this->subdir = $new_dir;

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

                        if (!is_array($files_found[$res[1]])) {

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

                            $files_found[$res[1]] = $this->config_exts; // Initialise list of expected extensions (defined in class definition).

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

        if ('' == $package_type || !$mandatory) {

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

            $new_dir = '/'.$new_dir;

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

            @mkdir($course_sys_dir.$new_dir, api_get_permissions_for_new_directories())

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

                foreach ($cmp_params as $cmp) {

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

                "($course_id, 3, '".$this->course_title."', '".$this->course_id."','".$this->course_description."',".

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

                "($course_id, 3, '".$this->course_title."', '".$this->course_id."','".$this->course_description."',".

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

            $field_add = '';

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

            $sql_item = "INSERT INTO $new_lp_item (c_id, lp_id,item_type,ref,title, path,min_score,max_score, $field_add parent_item_id,previous_item_id,next_item_id, prerequisite,display_order,parameters) ".

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

            $previous = $item_id;

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

    public function import_local_package($file_path, $current_dir = '')

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

        $file_info = [];

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

                foreach ($pre_params as $pre) {

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

        $file_info['tmp_name'] = $file_path;

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

                $cmp_file = $dir.'/'.$this->config_files['cmp'];

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

        $zip_file_name = $zip_file_info['name'];

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

        $new_lp = Database::get_course_table(TABLE_LP_MAIN);

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

                        $files_found[$res[1]][api_strtolower($res[2])] = $thisContent['filename'];

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

        if (Database::num_rows($res_max) < 1) {

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

        foreach ($files_found as $file_name => $file_exts) {

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

            $item_id = Database::insert_id();

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

        foreach ($files_found as $file_name => $file_exts) {

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

        $course_sys_dir = api_get_path(SYS_COURSE_PATH).$course_rel_dir; // The absolute system path of this course.

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

        $current_dir = api_replace_dangerous_char(trim($current_dir)); // Current dir we are in, inside scorm/

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

                "($course_id, 3, '".$this->course_title."', '".$this->course_id."','".$this->course_description."',".

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

        $zip_file_name = $zip_file_info['name'];

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

                'New LP - aicc::import_package() - Zip file path = '.$zip_file_path.', zip file name = '.$zip_file_name,

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

        $extension = $file_info['extension'];

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

        $files_found = [];

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

                        if (!is_array($files_found[basename($res[1])])) {

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

            error_log('New LP - aicc::import_package() - Package type is now '.$package_type, 0);

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

                !empty($files_found[$file_name]['crs'])

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

                $package = $file_name;

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

                $this->config_files = $files_found[$file_name];

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

            $new_dir = '/'.$new_dir;

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

                $cmp_params = $this->parse_csv_file($cmp_file);

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

                    "($course_id, $lp_id, 'au','".$oAu->identifier."','".$title."',".

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

    public function import_local_package($file_path, $current_dir = '')

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

        return $this->import_package($file_info, $current_dir);

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

            error_log('In aicc::import_package('.print_r($zip_file_info, true).',"'.$current_dir.'") method', 0);

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

                        $at_root = true;

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

                            $files_found[basename($res[1])] = $this->config_exts;

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

                && !empty($files_found[$file_name]['des'])

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

            $new_dir = substr($new_dir, 0, -1);

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

                    error_log('New LP - In aicc::parse_config_files() - '.$cmp_file.' has been parsed', 0);

Method name "aicc::import_aicc" is not in camel caps format
Open

    public function import_aicc($course_code)

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

        $sql = "INSERT INTO $new_lp (c_id, lp_type, name, ref, description, path, force_commit, default_view_mod, default_encoding, js_lib, content_maker,display_order)".

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

        $filename = $file_info['basename'];

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

                $this->config_basename = $file_name;

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

                $this->config_basename = $file_name;

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

        if ('/' == $new_dir[strlen($new_dir) - 1]) {

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

        $get_max = "SELECT MAX(display_order) FROM $new_lp WHERE c_id = $course_id";

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

        if (empty($course_id)) {

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

        $res_max = Database::query($get_max);

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

        $this->config_encoding = "ISO-8859-1"; // TODO: We may apply detection for this value, see the function api_detect_encoding().

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

        $subdir_isset = false;

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

                "'".$this->subdir."', 0, 'embedded', '".$this->config_encoding."',".

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

                        $subdir_isset = true;

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

            $this->lp_id = $lp_id;

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

            $prereq = $oAu->prereq_string;

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

                $this->config_files = $files_found[$file_name];

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

                error_log('New LP - In aicc::import_aicc() - inserting item : '.$sql_item.' : ', 0);

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

        $file_info = pathinfo($zip_file_name);

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

        $file_base_name = str_replace('.'.$extension, '', $filename); // Filename without its extension.

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

        $this->zipname = $file_base_name; // Save for later in case we don't have a title.

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

        $new_dir = api_replace_dangerous_char(trim($file_base_name));

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

                && !empty($files_found[$file_name]['cst'])

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

                $this->config_files = $files_found[$file_name];

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

            @mkdir($course_sys_dir.$new_dir, api_get_permissions_for_new_directories())

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

            if (!empty($this->config_files['cmp'])) {

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

        $courseInfo = api_get_course_info($course_code);

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

            error_log('New LP - In aicc::import_aicc('.$course_code.')', 0);

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

            $row = Database::fetch_array($res_max);

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

                    "'$path',0,100, $value_add".

Missing parameter name
Open

     * @param string    Path to the zip file, from the dokeos sys root

Doc comment for parameter $_FILES['userFile'] does not match actual variable name $zip_file_info
Open

     * @param string    Zip file info as given by $_FILES['userFile']

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

        $current_dir = api_replace_dangerous_char(trim($current_dir)); // Current dir we are in, inside scorm/

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

                        $files_found[basename($res[1])][api_strtolower($res[2])] = basename($thisContent['filename']);

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

                && !empty($files_found[$file_name]['des'])

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

                "'aicc_api.php','".$this->course_creator."',$dsp)";

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

            $this->lp_id = $lp_id;

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

        $file_info['name'] = basename($file_path);

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

    public function import_package($zip_file_info, $current_dir = '')

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

        $zip_file_path = $zip_file_info['tmp_name'];

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

            error_log('New LP - aicc::import_package() - Current_dir = '.$current_dir, 0);

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

            error_log('New LP - aicc::import_package() - Received zip file name: '.$zip_file_path, 0);

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

        $file_info = pathinfo($zip_file_name);

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

                            $files_found[$res[1]] = $this->config_exts; // Initialise list of expected extensions (defined in class definition).

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

                && !empty($files_found[$file_name]['cst'])

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

                    error_log('New LP - aicc::import_package() - Found all config files for '.$file_name, 0);

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

        if ('/' == $new_dir[strlen($new_dir) - 1]) {

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

            $new_dir = substr($new_dir, 0, -1);

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

                    error_log('New LP - In aicc::parse_config_files() - '.$pre_file.' has been parsed', 0);

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

        $get_max = "SELECT MAX(display_order) FROM $new_lp WHERE c_id = $course_id";

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

        $get_max = "SELECT MAX(display_order) FROM $new_lp WHERE c_id = $course_id";

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

                    "($course_id, $lp_id, 'au','".$oAu->identifier."','".$title."',".

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

            error_log('New LP - aicc::import_package() - Base file name is : '.$file_base_name, 0);

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

        $package_type = ''; // The type of the package. Should be 'aicc' after the next few lines.

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

                    $package_type = 'aicc';

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

                !empty($files_found[$file_name]['crs'])

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

                && !empty($files_found[$file_name]['au'])

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

        if (is_dir($course_sys_dir.$new_dir) ||

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

        $res_max = Database::query($get_max);

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

        if ($lp_id) {

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

            $sql_item = "INSERT INTO $new_lp_item (c_id, lp_id,item_type,ref,title, path,min_score,max_score, $field_add parent_item_id,previous_item_id,next_item_id, prerequisite,display_order,parameters) ".

Missing parameter name
Open

     * @param string    Current path (optional)

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

        $file_info['name'] = basename($file_path);

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

        $course_sys_dir = api_get_path(SYS_COURSE_PATH).$course_rel_dir; // The absolute system path of this course.

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

                            $subdir_isset = true;

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

                error_log('New LP - Changing dir to '.$course_sys_dir.$new_dir, 0);

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

        $lp_id = Database::insert_id();

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

            $value_add = '';

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

                $value_add = $oAu->masteryscore.',';

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

                $upd = "UPDATE $new_lp_item SET next_item_id = $item_id WHERE c_id = $course_id AND id = $previous";

Method name "aicc::import_local_package" is not in camel caps format
Open

    public function import_local_package($file_path, $current_dir = '')

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

        $file_info['tmp_name'] = $file_path;

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

    public function import_package($zip_file_info, $current_dir = '')

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

                $package_type = 'aicc';

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

                        if (!$subdir_isset) {

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

            error_log('New LP - aicc::import_package() - $files_found: '.print_r($files_found, true), 0);

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

        if ('/' != $new_dir[0]) {

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

                error_log('New LP - Changing dir to '.$course_sys_dir.$new_dir, 0);

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

        $course_id = $courseInfo['real_id'];

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

        $new_lp_item = Database::get_course_table(TABLE_LP_ITEM);

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

            Database::query($sql_item);

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

        foreach ($files_found as $file_name => $file_exts) {

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

        if (is_dir($course_sys_dir.$new_dir) ||

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

                $cmp_params = $this->parse_csv_file($cmp_file);

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

    public function import_aicc($course_code)

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

                $upd = "UPDATE $new_lp_item SET next_item_id = $item_id WHERE c_id = $course_id AND id = $previous";

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

                $upd = "UPDATE $new_lp_item SET next_item_id = $item_id WHERE c_id = $course_id AND id = $previous";

Method name "aicc::import_package" is not in camel caps format
Open

    public function import_package($zip_file_info, $current_dir = '')

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

                'New LP - aicc::import_package() - Zip file path = '.$zip_file_path.', zip file name = '.$zip_file_name,

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

        $course_rel_dir = api_get_course_path().'/scorm'; // Scorm dir web path starting from /courses

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

        $zipFile = new PclZip($zip_file_path);

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

        $at_root = false; // Check if the config files are at zip root.

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

                            $files_found[basename($res[1])] = $this->config_exts;

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

                && !empty($files_found[$file_name]['au'])

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

                $cmp_file = $dir.'/'.$this->config_files['cmp'];

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

                $field_add = 'mastery_score, ';

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

        return $this->import_package($file_info, $current_dir);

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

        $zip_file_path = $zip_file_info['tmp_name'];

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

        $new_dir = api_replace_dangerous_char(trim($file_base_name));

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

        $config_dir = ''; // The directory in which the config files are. May remain empty.

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

                        $config_dir = dirname($thisContent['filename']); // Just the relative directory inside scorm/

Missing parameter name
Open

     * @param    int    Learnpath ID (optional, taken from object context if not defined)

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

    public function export_zip($lp_id = null)

Spaces must be used for alignment; tabs are not allowed
Open

     * @param    string    Resource ID as used in resource array

Missing parameter name
Open

     * @param    string    File path

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

                            $pure_data = 1;

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

        $ret_ret_array = [];

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

            error_log('In aicc::export_zip method('.$lp_id.')', 0);

Method name "aicc::reimport_aicc" is not in camel caps format
Open

    public function reimport_aicc()

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

        $f = api_convert_encoding($f, api_get_system_encoding(), $this->config_encoding);

Missing parameter name
Open

     * @param        array    List of names of sections that should be considered

Method name "aicc::parse_ini_string_quotes_safe" is not in camel caps format
Open

    public function parse_ini_string_quotes_safe($s, $pure_strings = [])

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

    public function parse_ini_string_quotes_safe($s, $pure_strings = [])

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

                        $ret_ret_array[$line_idx][api_strtolower($titles[$idx])] = $val;

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

            chdir($course_sys_dir.$new_dir);

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

        return $course_sys_dir.$new_dir.$config_dir;

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

        return $course_sys_dir.$new_dir.$config_dir;

Spaces must be used for alignment; tabs are not allowed
Open

     * @param    string    Resource ID as used in resource array

Spaces must be used for alignment; tabs are not allowed
Open

     * @param    string    File path

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

            $ret_array[$linecount][$fldcount] = $fldval;

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

            if (0 == $line_idx) {

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

                        $ret_ret_array[$line_idx][api_strtolower($titles[$idx])] = $val;

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

        $zip_folder = new PclZip($zipfilename);

Method name "aicc::get_res_type" is not in camel caps format
Open

    public function get_res_type($id)

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

                        if ($pure_data) {

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

        $data = api_convert_encoding($data, api_get_system_encoding(), $this->config_encoding);

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

        foreach ($ret_array as $line_idx => $line) {

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

        return $ret_ret_array;

Spaces must be used for alignment; tabs are not allowed
Open

     * @param    string    Resource ID as used in resource array

Spaces must be used for alignment; tabs are not allowed
Open

     * @param    string    File path

Spaces must be used for alignment; tabs are not allowed
Open

     * @param        string    INI File string

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

                        $ret_ret_array[$line_idx][api_strtolower($titles[$idx])] .= ','.$val;

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

        $sql = "SELECT * FROM $tbl_lp WHERE iid= $lp_id";

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

        $sql = "SELECT * FROM $tbl_lp WHERE iid= $lp_id";

Missing parameter name
Open

     * @param    string    Resource ID as used in resource array

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

                $ret_ret_array[$line_idx] = [];

Missing parameter name
Open

     * @param    string    Resource ID as used in resource array

Method name "aicc::parse_ini_file_quotes_safe" is not in camel caps format
Open

    public function parse_ini_file_quotes_safe($f)

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

        $s = api_convert_encoding($s, api_get_system_encoding(), $this->config_encoding);

Spaces must be used for alignment; tabs are not allowed
Open

     * @param    string    CSV enclosure

Missing parameter name
Open

     * @param    bool    Might one field name happen more than once on the same line? (then split by comma in the values)

Method name "aicc::get_res_path" is not in camel caps format
Open

    public function get_res_path($id)

Missing parameter name
Open

     * @param    string    Filepath

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

                        $ret_array[$linecount++][$fldcount] = $fldval;

Spaces must be used for alignment; tabs are not allowed
Open

     * @param    string    CSV delimiter

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

        $zip_folder->create($scormfoldername.'/', PCLZIP_OPT_REMOVE_PATH, $scormfoldername.'/');

Spaces must be used for alignment; tabs are not allowed
Open

     * @param    bool    Might one field name happen more than once on the same line? (then split by comma in the values)

Method name "aicc::get_title" is not in camel caps format
Open

    public function get_title()

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

                        if (in_array(api_strtolower($sec), $pure_strings)) {

Spaces must be used for alignment; tabs are not allowed
Open

     * @param    string    CSV delimiter

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

                        $ret_ret_array[$line_idx][api_strtolower($titles[$idx])] .= ','.$val;

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

        $tbl_lp = Database::get_course_table(TABLE_LP_MAIN);

Spaces must be used for alignment; tabs are not allowed
Open

     * @param        array    List of names of sections that should be considered

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

                        $pure_data = 0;

Spaces must be used for alignment; tabs are not allowed
Open

     * @param    string    CSV enclosure

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

                        $ret_array[$linecount][$fldcount++] = $fldval;

Method name "aicc::export_zip" is not in camel caps format
Open

    public function export_zip($lp_id = null)

Spaces must be used for alignment; tabs are not allowed
Open

     * @param    string    Filepath

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

                        $ret_array[$linecount++][$fldcount] = $fldval;

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

                    if ($multiples && !empty($ret_ret_array[$line_idx][api_strtolower($titles[$idx])])) {

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

        return $course_sys_dir.$new_dir.$config_dir;

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

                    $lp_id = $this->get_id();

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

        $course_id = api_get_course_int_id();

Spaces must be used for alignment; tabs are not allowed
Open

     * @param    string    Resource ID as used in resource array

Missing parameter name
Open

     * @param        string    INI File string

Spaces must be used for alignment; tabs are not allowed
Open

     * @param        array    List of names of sections that should be considered

Missing parameter name
Open

     * @param    string    CSV delimiter

Missing parameter name
Open

     * @param    string    CSV enclosure

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

                $ret_ret_array[$line_idx] = [];

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

            chdir($course_sys_dir.$new_dir);

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

        if (empty($lp_id)) {

Spaces must be used for alignment; tabs are not allowed
Open

     * @param        string    INI File string

Spaces must be used for alignment; tabs are not allowed
Open

     * @param    string    Filepath

Method name "aicc::parse_csv_file" is not in camel caps format
Open

    public function parse_csv_file($f, $delim = ',', $enclosure = '"', $multiples = false)

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

                    if ($multiples && !empty($ret_ret_array[$line_idx][api_strtolower($titles[$idx])])) {

Spaces must be used for alignment; tabs are not allowed
Open

     * @param    bool    Might one field name happen more than once on the same line? (then split by comma in the values)

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

        foreach ($ret_array as $line_idx => $line) {

Class name "aicc" is not in camel caps format
Open

class aicc extends learnpath

The variable $resource_id is not named in camelCase.
Open

    public function __construct($course_code = null, $resource_id = null, $user_id = null)
    {
        if (!empty($course_code) && !empty($resource_id) && !empty($user_id)) {
            parent::__construct($course_code, $resource_id, $user_id);
        }
Severity: Minor
Found in public/main/lp/aicc.class.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 $au_file is not named in camelCase.
Open

    public function parse_config_files($dir = '')
    {
        if ($this->debug > 0) {
            error_log('New LP - In aicc::parse_config_files('.$dir.')', 0);
        }
Severity: Minor
Found in public/main/lp/aicc.class.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 $au_file is not named in camelCase.
Open

    public function parse_config_files($dir = '')
    {
        if ($this->debug > 0) {
            error_log('New LP - In aicc::parse_config_files('.$dir.')', 0);
        }
Severity: Minor
Found in public/main/lp/aicc.class.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 $ore_file is not named in camelCase.
Open

    public function parse_config_files($dir = '')
    {
        if ($this->debug > 0) {
            error_log('New LP - In aicc::parse_config_files('.$dir.')', 0);
        }
Severity: Minor
Found in public/main/lp/aicc.class.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 $pre_file is not named in camelCase.
Open

    public function parse_config_files($dir = '')
    {
        if ($this->debug > 0) {
            error_log('New LP - In aicc::parse_config_files('.$dir.')', 0);
        }
Severity: Minor
Found in public/main/lp/aicc.class.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 $crs_params is not named in camelCase.
Open

    public function parse_config_files($dir = '')
    {
        if ($this->debug > 0) {
            error_log('New LP - In aicc::parse_config_files('.$dir.')', 0);
        }
Severity: Minor
Found in public/main/lp/aicc.class.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 $crs_params is not named in camelCase.
Open

    public function parse_config_files($dir = '')
    {
        if ($this->debug > 0) {
            error_log('New LP - In aicc::parse_config_files('.$dir.')', 0);
        }
Severity: Minor
Found in public/main/lp/aicc.class.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 $crs_file is not named in camelCase.
Open

    public function parse_config_files($dir = '')
    {
        if ($this->debug > 0) {
            error_log('New LP - In aicc::parse_config_files('.$dir.')', 0);
        }
Severity: Minor
Found in public/main/lp/aicc.class.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 $des_params is not named in camelCase.
Open

    public function parse_config_files($dir = '')
    {
        if ($this->debug > 0) {
            error_log('New LP - In aicc::parse_config_files('.$dir.')', 0);
        }
Severity: Minor
Found in public/main/lp/aicc.class.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 $au_params is not named in camelCase.
Open

    public function parse_config_files($dir = '')
    {
        if ($this->debug > 0) {
            error_log('New LP - In aicc::parse_config_files('.$dir.')', 0);
        }
Severity: Minor
Found in public/main/lp/aicc.class.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 $user_id is not named in camelCase.
Open

    public function __construct($course_code = null, $resource_id = null, $user_id = null)
    {
        if (!empty($course_code) && !empty($resource_id) && !empty($user_id)) {
            parent::__construct($course_code, $resource_id, $user_id);
        }
Severity: Minor
Found in public/main/lp/aicc.class.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 $crs_params is not named in camelCase.
Open

    public function parse_config_files($dir = '')
    {
        if ($this->debug > 0) {
            error_log('New LP - In aicc::parse_config_files('.$dir.')', 0);
        }
Severity: Minor
Found in public/main/lp/aicc.class.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 $crs_params is not named in camelCase.
Open

    public function parse_config_files($dir = '')
    {
        if ($this->debug > 0) {
            error_log('New LP - In aicc::parse_config_files('.$dir.')', 0);
        }
Severity: Minor
Found in public/main/lp/aicc.class.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 $des_file is not named in camelCase.
Open

    public function parse_config_files($dir = '')
    {
        if ($this->debug > 0) {
            error_log('New LP - In aicc::parse_config_files('.$dir.')', 0);
        }
Severity: Minor
Found in public/main/lp/aicc.class.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 $crs_params is not named in camelCase.
Open

    public function parse_config_files($dir = '')
    {
        if ($this->debug > 0) {
            error_log('New LP - In aicc::parse_config_files('.$dir.')', 0);
        }
Severity: Minor
Found in public/main/lp/aicc.class.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 $cst_params is not named in camelCase.
Open

    public function parse_config_files($dir = '')
    {
        if ($this->debug > 0) {
            error_log('New LP - In aicc::parse_config_files('.$dir.')', 0);
        }
Severity: Minor
Found in public/main/lp/aicc.class.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 $crs_params is not named in camelCase.
Open

    public function parse_config_files($dir = '')
    {
        if ($this->debug > 0) {
            error_log('New LP - In aicc::parse_config_files('.$dir.')', 0);
        }
Severity: Minor
Found in public/main/lp/aicc.class.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 $cst_file is not named in camelCase.
Open

    public function parse_config_files($dir = '')
    {
        if ($this->debug > 0) {
            error_log('New LP - In aicc::parse_config_files('.$dir.')', 0);
        }
Severity: Minor
Found in public/main/lp/aicc.class.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 $crs_params is not named in camelCase.
Open

    public function parse_config_files($dir = '')
    {
        if ($this->debug > 0) {
            error_log('New LP - In aicc::parse_config_files('.$dir.')', 0);
        }
Severity: Minor
Found in public/main/lp/aicc.class.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 $au_params is not named in camelCase.
Open

    public function parse_config_files($dir = '')
    {
        if ($this->debug > 0) {
            error_log('New LP - In aicc::parse_config_files('.$dir.')', 0);
        }
Severity: Minor
Found in public/main/lp/aicc.class.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 $cst_params is not named in camelCase.
Open

    public function parse_config_files($dir = '')
    {
        if ($this->debug > 0) {
            error_log('New LP - In aicc::parse_config_files('.$dir.')', 0);
        }
Severity: Minor
Found in public/main/lp/aicc.class.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 $pre_params is not named in camelCase.
Open

    public function parse_config_files($dir = '')
    {
        if ($this->debug > 0) {
            error_log('New LP - In aicc::parse_config_files('.$dir.')', 0);
        }
Severity: Minor
Found in public/main/lp/aicc.class.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 $course_code is not named in camelCase.
Open

    public function __construct($course_code = null, $resource_id = null, $user_id = null)
    {
        if (!empty($course_code) && !empty($resource_id) && !empty($user_id)) {
            parent::__construct($course_code, $resource_id, $user_id);
        }
Severity: Minor
Found in public/main/lp/aicc.class.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 $crs_params is not named in camelCase.
Open

    public function parse_config_files($dir = '')
    {
        if ($this->debug > 0) {
            error_log('New LP - In aicc::parse_config_files('.$dir.')', 0);
        }
Severity: Minor
Found in public/main/lp/aicc.class.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 $crs_params is not named in camelCase.
Open

    public function parse_config_files($dir = '')
    {
        if ($this->debug > 0) {
            error_log('New LP - In aicc::parse_config_files('.$dir.')', 0);
        }
Severity: Minor
Found in public/main/lp/aicc.class.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 $crs_params is not named in camelCase.
Open

    public function parse_config_files($dir = '')
    {
        if ($this->debug > 0) {
            error_log('New LP - In aicc::parse_config_files('.$dir.')', 0);
        }
Severity: Minor
Found in public/main/lp/aicc.class.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 $cst_file is not named in camelCase.
Open

    public function parse_config_files($dir = '')
    {
        if ($this->debug > 0) {
            error_log('New LP - In aicc::parse_config_files('.$dir.')', 0);
        }
Severity: Minor
Found in public/main/lp/aicc.class.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 $pre_params is not named in camelCase.
Open

    public function parse_config_files($dir = '')
    {
        if ($this->debug > 0) {
            error_log('New LP - In aicc::parse_config_files('.$dir.')', 0);
        }
Severity: Minor
Found in public/main/lp/aicc.class.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 $pre_file is not named in camelCase.
Open

    public function parse_config_files($dir = '')
    {
        if ($this->debug > 0) {
            error_log('New LP - In aicc::parse_config_files('.$dir.')', 0);
        }
Severity: Minor
Found in public/main/lp/aicc.class.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 $cmp_params is not named in camelCase.
Open

    public function parse_config_files($dir = '')
    {
        if ($this->debug > 0) {
            error_log('New LP - In aicc::parse_config_files('.$dir.')', 0);
        }
Severity: Minor
Found in public/main/lp/aicc.class.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 $course_id is not named in camelCase.
Open

    public function import_aicc($course_code)
    {
        $courseInfo = api_get_course_info($course_code);
        $course_id = $courseInfo['real_id'];

Severity: Minor
Found in public/main/lp/aicc.class.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 $course_code is not named in camelCase.
Open

    public function __construct($course_code = null, $resource_id = null, $user_id = null)
    {
        if (!empty($course_code) && !empty($resource_id) && !empty($user_id)) {
            parent::__construct($course_code, $resource_id, $user_id);
        }
Severity: Minor
Found in public/main/lp/aicc.class.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 $crs_params is not named in camelCase.
Open

    public function parse_config_files($dir = '')
    {
        if ($this->debug > 0) {
            error_log('New LP - In aicc::parse_config_files('.$dir.')', 0);
        }
Severity: Minor
Found in public/main/lp/aicc.class.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 $crs_params is not named in camelCase.
Open

    public function parse_config_files($dir = '')
    {
        if ($this->debug > 0) {
            error_log('New LP - In aicc::parse_config_files('.$dir.')', 0);
        }
Severity: Minor
Found in public/main/lp/aicc.class.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 $crs_params is not named in camelCase.
Open

    public function parse_config_files($dir = '')
    {
        if ($this->debug > 0) {
            error_log('New LP - In aicc::parse_config_files('.$dir.')', 0);
        }
Severity: Minor
Found in public/main/lp/aicc.class.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 $cst_file is not named in camelCase.
Open

    public function parse_config_files($dir = '')
    {
        if ($this->debug > 0) {
            error_log('New LP - In aicc::parse_config_files('.$dir.')', 0);
        }
Severity: Minor
Found in public/main/lp/aicc.class.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 $crs_file is not named in camelCase.
Open

    public function parse_config_files($dir = '')
    {
        if ($this->debug > 0) {
            error_log('New LP - In aicc::parse_config_files('.$dir.')', 0);
        }
Severity: Minor
Found in public/main/lp/aicc.class.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 $ore_params is not named in camelCase.
Open

    public function parse_config_files($dir = '')
    {
        if ($this->debug > 0) {
            error_log('New LP - In aicc::parse_config_files('.$dir.')', 0);
        }
Severity: Minor
Found in public/main/lp/aicc.class.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 $crs_params is not named in camelCase.
Open

    public function parse_config_files($dir = '')
    {
        if ($this->debug > 0) {
            error_log('New LP - In aicc::parse_config_files('.$dir.')', 0);
        }
Severity: Minor
Found in public/main/lp/aicc.class.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 $cmp_file is not named in camelCase.
Open

    public function parse_config_files($dir = '')
    {
        if ($this->debug > 0) {
            error_log('New LP - In aicc::parse_config_files('.$dir.')', 0);
        }
Severity: Minor
Found in public/main/lp/aicc.class.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 $resource_id is not named in camelCase.
Open

    public function __construct($course_code = null, $resource_id = null, $user_id = null)
    {
        if (!empty($course_code) && !empty($resource_id) && !empty($user_id)) {
            parent::__construct($course_code, $resource_id, $user_id);
        }
Severity: Minor
Found in public/main/lp/aicc.class.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 $crs_params is not named in camelCase.
Open

    public function parse_config_files($dir = '')
    {
        if ($this->debug > 0) {
            error_log('New LP - In aicc::parse_config_files('.$dir.')', 0);
        }
Severity: Minor
Found in public/main/lp/aicc.class.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 $crs_params is not named in camelCase.
Open

    public function parse_config_files($dir = '')
    {
        if ($this->debug > 0) {
            error_log('New LP - In aicc::parse_config_files('.$dir.')', 0);
        }
Severity: Minor
Found in public/main/lp/aicc.class.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 $cmp_params is not named in camelCase.
Open

    public function parse_config_files($dir = '')
    {
        if ($this->debug > 0) {
            error_log('New LP - In aicc::parse_config_files('.$dir.')', 0);
        }
Severity: Minor
Found in public/main/lp/aicc.class.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 $crs_params is not named in camelCase.
Open

    public function parse_config_files($dir = '')
    {
        if ($this->debug > 0) {
            error_log('New LP - In aicc::parse_config_files('.$dir.')', 0);
        }
Severity: Minor
Found in public/main/lp/aicc.class.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 $crs_params is not named in camelCase.
Open

    public function parse_config_files($dir = '')
    {
        if ($this->debug > 0) {
            error_log('New LP - In aicc::parse_config_files('.$dir.')', 0);
        }
Severity: Minor
Found in public/main/lp/aicc.class.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 $crs_params is not named in camelCase.
Open

    public function parse_config_files($dir = '')
    {
        if ($this->debug > 0) {
            error_log('New LP - In aicc::parse_config_files('.$dir.')', 0);
        }
Severity: Minor
Found in public/main/lp/aicc.class.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 $crs_params is not named in camelCase.
Open

    public function parse_config_files($dir = '')
    {
        if ($this->debug > 0) {
            error_log('New LP - In aicc::parse_config_files('.$dir.')', 0);
        }
Severity: Minor
Found in public/main/lp/aicc.class.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 $user_id is not named in camelCase.
Open

    public function __construct($course_code = null, $resource_id = null, $user_id = null)
    {
        if (!empty($course_code) && !empty($resource_id) && !empty($user_id)) {
            parent::__construct($course_code, $resource_id, $user_id);
        }
Severity: Minor
Found in public/main/lp/aicc.class.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 $crs_params is not named in camelCase.
Open

    public function parse_config_files($dir = '')
    {
        if ($this->debug > 0) {
            error_log('New LP - In aicc::parse_config_files('.$dir.')', 0);
        }
Severity: Minor
Found in public/main/lp/aicc.class.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 $crs_params is not named in camelCase.
Open

    public function parse_config_files($dir = '')
    {
        if ($this->debug > 0) {
            error_log('New LP - In aicc::parse_config_files('.$dir.')', 0);
        }
Severity: Minor
Found in public/main/lp/aicc.class.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 $des_params is not named in camelCase.
Open

    public function parse_config_files($dir = '')
    {
        if ($this->debug > 0) {
            error_log('New LP - In aicc::parse_config_files('.$dir.')', 0);
        }
Severity: Minor
Found in public/main/lp/aicc.class.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 $des_file is not named in camelCase.
Open

    public function parse_config_files($dir = '')
    {
        if ($this->debug > 0) {
            error_log('New LP - In aicc::parse_config_files('.$dir.')', 0);
        }
Severity: Minor
Found in public/main/lp/aicc.class.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 $au_file is not named in camelCase.
Open

    public function parse_config_files($dir = '')
    {
        if ($this->debug > 0) {
            error_log('New LP - In aicc::parse_config_files('.$dir.')', 0);
        }
Severity: Minor
Found in public/main/lp/aicc.class.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 $cmp_file is not named in camelCase.
Open

    public function parse_config_files($dir = '')
    {
        if ($this->debug > 0) {
            error_log('New LP - In aicc::parse_config_files('.$dir.')', 0);
        }
Severity: Minor
Found in public/main/lp/aicc.class.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 $crs_file is not named in camelCase.
Open

    public function parse_config_files($dir = '')
    {
        if ($this->debug > 0) {
            error_log('New LP - In aicc::parse_config_files('.$dir.')', 0);
        }
Severity: Minor
Found in public/main/lp/aicc.class.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 $ore_file is not named in camelCase.
Open

    public function parse_config_files($dir = '')
    {
        if ($this->debug > 0) {
            error_log('New LP - In aicc::parse_config_files('.$dir.')', 0);
        }
Severity: Minor
Found in public/main/lp/aicc.class.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 $pre_file is not named in camelCase.
Open

    public function parse_config_files($dir = '')
    {
        if ($this->debug > 0) {
            error_log('New LP - In aicc::parse_config_files('.$dir.')', 0);
        }
Severity: Minor
Found in public/main/lp/aicc.class.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 $cmp_file is not named in camelCase.
Open

    public function parse_config_files($dir = '')
    {
        if ($this->debug > 0) {
            error_log('New LP - In aicc::parse_config_files('.$dir.')', 0);
        }
Severity: Minor
Found in public/main/lp/aicc.class.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 $crs_params is not named in camelCase.
Open

    public function parse_config_files($dir = '')
    {
        if ($this->debug > 0) {
            error_log('New LP - In aicc::parse_config_files('.$dir.')', 0);
        }
Severity: Minor
Found in public/main/lp/aicc.class.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 $crs_params is not named in camelCase.
Open

    public function parse_config_files($dir = '')
    {
        if ($this->debug > 0) {
            error_log('New LP - In aicc::parse_config_files('.$dir.')', 0);
        }
Severity: Minor
Found in public/main/lp/aicc.class.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 $crs_params is not named in camelCase.
Open

    public function parse_config_files($dir = '')
    {
        if ($this->debug > 0) {
            error_log('New LP - In aicc::parse_config_files('.$dir.')', 0);
        }
Severity: Minor
Found in public/main/lp/aicc.class.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 $des_file is not named in camelCase.
Open

    public function parse_config_files($dir = '')
    {
        if ($this->debug > 0) {
            error_log('New LP - In aicc::parse_config_files('.$dir.')', 0);
        }
Severity: Minor
Found in public/main/lp/aicc.class.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 $ore_params is not named in camelCase.
Open

    public function parse_config_files($dir = '')
    {
        if ($this->debug > 0) {
            error_log('New LP - In aicc::parse_config_files('.$dir.')', 0);
        }
Severity: Minor
Found in public/main/lp/aicc.class.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 $res_max is not named in camelCase.
Open

    public function import_aicc($course_code)
    {
        $courseInfo = api_get_course_info($course_code);
        $course_id = $courseInfo['real_id'];

Severity: Minor
Found in public/main/lp/aicc.class.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 $item_id is not named in camelCase.
Open

    public function import_aicc($course_code)
    {
        $courseInfo = api_get_course_info($course_code);
        $course_id = $courseInfo['real_id'];

Severity: Minor
Found in public/main/lp/aicc.class.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 $file_path is not named in camelCase.
Open

    public function import_local_package($file_path, $current_dir = '')
    {
        // TODO: Prepare info as given by the $_FILES[''] vector.
        $file_info = [];
        $file_info['tmp_name'] = $file_path;
Severity: Minor
Found in public/main/lp/aicc.class.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 $course_sys_dir is not named in camelCase.
Open

    public function import_package($zip_file_info, $current_dir = '')
    {
        if ($this->debug > 0) {
            error_log('In aicc::import_package('.print_r($zip_file_info, true).',"'.$current_dir.'") method', 0);
        }
Severity: Minor
Found in public/main/lp/aicc.class.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 $package_type is not named in camelCase.
Open

    public function import_package($zip_file_info, $current_dir = '')
    {
        if ($this->debug > 0) {
            error_log('In aicc::import_package('.print_r($zip_file_info, true).',"'.$current_dir.'") method', 0);
        }
Severity: Minor
Found in public/main/lp/aicc.class.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 $file_name is not named in camelCase.
Open

    public function import_package($zip_file_info, $current_dir = '')
    {
        if ($this->debug > 0) {
            error_log('In aicc::import_package('.print_r($zip_file_info, true).',"'.$current_dir.'") method', 0);
        }
Severity: Minor
Found in public/main/lp/aicc.class.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 $get_max is not named in camelCase.
Open

    public function import_aicc($course_code)
    {
        $courseInfo = api_get_course_info($course_code);
        $course_id = $courseInfo['real_id'];

Severity: Minor
Found in public/main/lp/aicc.class.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 $field_add is not named in camelCase.
Open

    public function import_aicc($course_code)
    {
        $courseInfo = api_get_course_info($course_code);
        $course_id = $courseInfo['real_id'];

Severity: Minor
Found in public/main/lp/aicc.class.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 $file_base_name is not named in camelCase.
Open

    public function import_package($zip_file_info, $current_dir = '')
    {
        if ($this->debug > 0) {
            error_log('In aicc::import_package('.print_r($zip_file_info, true).',"'.$current_dir.'") method', 0);
        }
Severity: Minor
Found in public/main/lp/aicc.class.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 $file_base_name is not named in camelCase.
Open

    public function import_package($zip_file_info, $current_dir = '')
    {
        if ($this->debug > 0) {
            error_log('In aicc::import_package('.print_r($zip_file_info, true).',"'.$current_dir.'") method', 0);
        }
Severity: Minor
Found in public/main/lp/aicc.class.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 $files_found is not named in camelCase.
Open

    public function import_package($zip_file_info, $current_dir = '')
    {
        if ($this->debug > 0) {
            error_log('In aicc::import_package('.print_r($zip_file_info, true).',"'.$current_dir.'") method', 0);
        }
Severity: Minor
Found in public/main/lp/aicc.class.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 $files_found is not named in camelCase.
Open

    public function import_package($zip_file_info, $current_dir = '')
    {
        if ($this->debug > 0) {
            error_log('In aicc::import_package('.print_r($zip_file_info, true).',"'.$current_dir.'") method', 0);
        }
Severity: Minor
Found in public/main/lp/aicc.class.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 $files_found is not named in camelCase.
Open

    public function import_package($zip_file_info, $current_dir = '')
    {
        if ($this->debug > 0) {
            error_log('In aicc::import_package('.print_r($zip_file_info, true).',"'.$current_dir.'") method', 0);
        }
Severity: Minor
Found in public/main/lp/aicc.class.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_dir is not named in camelCase.
Open

    public function import_package($zip_file_info, $current_dir = '')
    {
        if ($this->debug > 0) {
            error_log('In aicc::import_package('.print_r($zip_file_info, true).',"'.$current_dir.'") method', 0);
        }
Severity: Minor
Found in public/main/lp/aicc.class.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_dir is not named in camelCase.
Open

    public function import_package($zip_file_info, $current_dir = '')
    {
        if ($this->debug > 0) {
            error_log('In aicc::import_package('.print_r($zip_file_info, true).',"'.$current_dir.'") method', 0);
        }
Severity: Minor
Found in public/main/lp/aicc.class.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 $crs_params is not named in camelCase.
Open

    public function parse_config_files($dir = '')
    {
        if ($this->debug > 0) {
            error_log('New LP - In aicc::parse_config_files('.$dir.')', 0);
        }
Severity: Minor
Found in public/main/lp/aicc.class.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 $crs_params is not named in camelCase.
Open

    public function parse_config_files($dir = '')
    {
        if ($this->debug > 0) {
            error_log('New LP - In aicc::parse_config_files('.$dir.')', 0);
        }
Severity: Minor
Found in public/main/lp/aicc.class.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 $course_code is not named in camelCase.
Open

    public function import_aicc($course_code)
    {
        $courseInfo = api_get_course_info($course_code);
        $course_id = $courseInfo['real_id'];

Severity: Minor
Found in public/main/lp/aicc.class.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 $course_id is not named in camelCase.
Open

    public function import_aicc($course_code)
    {
        $courseInfo = api_get_course_info($course_code);
        $course_id = $courseInfo['real_id'];

Severity: Minor
Found in public/main/lp/aicc.class.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_lp_item is not named in camelCase.
Open

    public function import_aicc($course_code)
    {
        $courseInfo = api_get_course_info($course_code);
        $course_id = $courseInfo['real_id'];

Severity: Minor
Found in public/main/lp/aicc.class.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 $zip_file_name is not named in camelCase.
Open

    public function import_package($zip_file_info, $current_dir = '')
    {
        if ($this->debug > 0) {
            error_log('In aicc::import_package('.print_r($zip_file_info, true).',"'.$current_dir.'") method', 0);
        }
Severity: Minor
Found in public/main/lp/aicc.class.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 $zip_file_info is not named in camelCase.
Open

    public function import_package($zip_file_info, $current_dir = '')
    {
        if ($this->debug > 0) {
            error_log('In aicc::import_package('.print_r($zip_file_info, true).',"'.$current_dir.'") method', 0);
        }
Severity: Minor
Found in public/main/lp/aicc.class.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 $subdir_isset is not named in camelCase.
Open

    public function import_package($zip_file_info, $current_dir = '')
    {
        if ($this->debug > 0) {
            error_log('In aicc::import_package('.print_r($zip_file_info, true).',"'.$current_dir.'") method', 0);
        }
Severity: Minor
Found in public/main/lp/aicc.class.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 $files_found is not named in camelCase.
Open

    public function import_package($zip_file_info, $current_dir = '')
    {
        if ($this->debug > 0) {
            error_log('In aicc::import_package('.print_r($zip_file_info, true).',"'.$current_dir.'") method', 0);
        }
Severity: Minor
Found in public/main/lp/aicc.class.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_dir is not named in camelCase.
Open

    public function import_package($zip_file_info, $current_dir = '')
    {
        if ($this->debug > 0) {
            error_log('In aicc::import_package('.print_r($zip_file_info, true).',"'.$current_dir.'") method', 0);
        }
Severity: Minor
Found in public/main/lp/aicc.class.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 $lp_id is not named in camelCase.
Open

    public function import_aicc($course_code)
    {
        $courseInfo = api_get_course_info($course_code);
        $course_id = $courseInfo['real_id'];

Severity: Minor
Found in public/main/lp/aicc.class.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_dir is not named in camelCase.
Open

    public function import_package($zip_file_info, $current_dir = '')
    {
        if ($this->debug > 0) {
            error_log('In aicc::import_package('.print_r($zip_file_info, true).',"'.$current_dir.'") method', 0);
        }
Severity: Minor
Found in public/main/lp/aicc.class.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 $file_base_name is not named in camelCase.
Open

    public function import_package($zip_file_info, $current_dir = '')
    {
        if ($this->debug > 0) {
            error_log('In aicc::import_package('.print_r($zip_file_info, true).',"'.$current_dir.'") method', 0);
        }
Severity: Minor
Found in public/main/lp/aicc.class.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 $package_type is not named in camelCase.
Open

    public function import_package($zip_file_info, $current_dir = '')
    {
        if ($this->debug > 0) {
            error_log('In aicc::import_package('.print_r($zip_file_info, true).',"'.$current_dir.'") method', 0);
        }
Severity: Minor
Found in public/main/lp/aicc.class.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 $file_exts is not named in camelCase.
Open

    public function import_package($zip_file_info, $current_dir = '')
    {
        if ($this->debug > 0) {
            error_log('In aicc::import_package('.print_r($zip_file_info, true).',"'.$current_dir.'") method', 0);
        }
Severity: Minor
Found in public/main/lp/aicc.class.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 $lp_id is not named in camelCase.
Open

    public function import_aicc($course_code)
    {
        $courseInfo = api_get_course_info($course_code);
        $course_id = $courseInfo['real_id'];

Severity: Minor
Found in public/main/lp/aicc.class.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 $value_add is not named in camelCase.
Open

    public function import_aicc($course_code)
    {
        $courseInfo = api_get_course_info($course_code);
        $course_id = $courseInfo['real_id'];

Severity: Minor
Found in public/main/lp/aicc.class.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 $field_add is not named in camelCase.
Open

    public function import_aicc($course_code)
    {
        $courseInfo = api_get_course_info($course_code);
        $course_id = $courseInfo['real_id'];

Severity: Minor
Found in public/main/lp/aicc.class.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 $sql_item is not named in camelCase.
Open

    public function import_aicc($course_code)
    {
        $courseInfo = api_get_course_info($course_code);
        $course_id = $courseInfo['real_id'];

Severity: Minor
Found in public/main/lp/aicc.class.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 $subdir_isset is not named in camelCase.
Open

    public function import_package($zip_file_info, $current_dir = '')
    {
        if ($this->debug > 0) {
            error_log('In aicc::import_package('.print_r($zip_file_info, true).',"'.$current_dir.'") method', 0);
        }
Severity: Minor
Found in public/main/lp/aicc.class.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 $package_type is not named in camelCase.
Open

    public function import_package($zip_file_info, $current_dir = '')
    {
        if ($this->debug > 0) {
            error_log('In aicc::import_package('.print_r($zip_file_info, true).',"'.$current_dir.'") method', 0);
        }
Severity: Minor
Found in public/main/lp/aicc.class.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 $res_max is not named in camelCase.
Open

    public function import_aicc($course_code)
    {
        $courseInfo = api_get_course_info($course_code);
        $course_id = $courseInfo['real_id'];

Severity: Minor
Found in public/main/lp/aicc.class.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 $file_info is not named in camelCase.
Open

    public function import_local_package($file_path, $current_dir = '')
    {
        // TODO: Prepare info as given by the $_FILES[''] vector.
        $file_info = [];
        $file_info['tmp_name'] = $file_path;
Severity: Minor
Found in public/main/lp/aicc.class.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 $file_info is not named in camelCase.
Open

    public function import_package($zip_file_info, $current_dir = '')
    {
        if ($this->debug > 0) {
            error_log('In aicc::import_package('.print_r($zip_file_info, true).',"'.$current_dir.'") method', 0);
        }
Severity: Minor
Found in public/main/lp/aicc.class.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 $at_root is not named in camelCase.
Open

    public function import_package($zip_file_info, $current_dir = '')
    {
        if ($this->debug > 0) {
            error_log('In aicc::import_package('.print_r($zip_file_info, true).',"'.$current_dir.'") method', 0);
        }
Severity: Minor
Found in public/main/lp/aicc.class.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_dir is not named in camelCase.
Open

    public function import_package($zip_file_info, $current_dir = '')
    {
        if ($this->debug > 0) {
            error_log('In aicc::import_package('.print_r($zip_file_info, true).',"'.$current_dir.'") method', 0);
        }
Severity: Minor
Found in public/main/lp/aicc.class.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_dir is not named in camelCase.
Open

    public function import_package($zip_file_info, $current_dir = '')
    {
        if ($this->debug > 0) {
            error_log('In aicc::import_package('.print_r($zip_file_info, true).',"'.$current_dir.'") method', 0);
        }
Severity: Minor
Found in public/main/lp/aicc.class.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_dir is not named in camelCase.
Open

    public function import_package($zip_file_info, $current_dir = '')
    {
        if ($this->debug > 0) {
            error_log('In aicc::import_package('.print_r($zip_file_info, true).',"'.$current_dir.'") method', 0);
        }
Severity: Minor
Found in public/main/lp/aicc.class.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 $course_id is not named in camelCase.
Open

    public function import_aicc($course_code)
    {
        $courseInfo = api_get_course_info($course_code);
        $course_id = $courseInfo['real_id'];

Severity: Minor
Found in public/main/lp/aicc.class.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_lp is not named in camelCase.
Open

    public function import_aicc($course_code)
    {
        $courseInfo = api_get_course_info($course_code);
        $course_id = $courseInfo['real_id'];

Severity: Minor
Found in public/main/lp/aicc.class.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_lp_item is not named in camelCase.
Open

    public function import_aicc($course_code)
    {
        $courseInfo = api_get_course_info($course_code);
        $course_id = $courseInfo['real_id'];

Severity: Minor
Found in public/main/lp/aicc.class.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 $sql_item is not named in camelCase.
Open

    public function import_aicc($course_code)
    {
        $courseInfo = api_get_course_info($course_code);
        $course_id = $courseInfo['real_id'];

Severity: Minor
Found in public/main/lp/aicc.class.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 $item_id is not named in camelCase.
Open

    public function import_aicc($course_code)
    {
        $courseInfo = api_get_course_info($course_code);
        $course_id = $courseInfo['real_id'];

Severity: Minor
Found in public/main/lp/aicc.class.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_dir is not named in camelCase.
Open

    public function import_local_package($file_path, $current_dir = '')
    {
        // TODO: Prepare info as given by the $_FILES[''] vector.
        $file_info = [];
        $file_info['tmp_name'] = $file_path;
Severity: Minor
Found in public/main/lp/aicc.class.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_dir is not named in camelCase.
Open

    public function import_package($zip_file_info, $current_dir = '')
    {
        if ($this->debug > 0) {
            error_log('In aicc::import_package('.print_r($zip_file_info, true).',"'.$current_dir.'") method', 0);
        }
Severity: Minor
Found in public/main/lp/aicc.class.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 $files_found is not named in camelCase.
Open

    public function import_package($zip_file_info, $current_dir = '')
    {
        if ($this->debug > 0) {
            error_log('In aicc::import_package('.print_r($zip_file_info, true).',"'.$current_dir.'") method', 0);
        }
Severity: Minor
Found in public/main/lp/aicc.class.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 $file_name is not named in camelCase.
Open

    public function import_package($zip_file_info, $current_dir = '')
    {
        if ($this->debug > 0) {
            error_log('In aicc::import_package('.print_r($zip_file_info, true).',"'.$current_dir.'") method', 0);
        }
Severity: Minor
Found in public/main/lp/aicc.class.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 $files_found is not named in camelCase.
Open

    public function import_package($zip_file_info, $current_dir = '')
    {
        if ($this->debug > 0) {
            error_log('In aicc::import_package('.print_r($zip_file_info, true).',"'.$current_dir.'") method', 0);
        }
Severity: Minor
Found in public/main/lp/aicc.class.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_dir is not named in camelCase.
Open

    public function import_package($zip_file_info, $current_dir = '')
    {
        if ($this->debug > 0) {
            error_log('In aicc::import_package('.print_r($zip_file_info, true).',"'.$current_dir.'") method', 0);
        }
Severity: Minor
Found in public/main/lp/aicc.class.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 $course_id is not named in camelCase.
Open

    public function import_aicc($course_code)
    {
        $courseInfo = api_get_course_info($course_code);
        $course_id = $courseInfo['real_id'];

Severity: Minor
Found in public/main/lp/aicc.class.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 $zip_file_path is not named in camelCase.
Open

    public function import_package($zip_file_info, $current_dir = '')
    {
        if ($this->debug > 0) {
            error_log('In aicc::import_package('.print_r($zip_file_info, true).',"'.$current_dir.'") method', 0);
        }
Severity: Minor
Found in public/main/lp/aicc.class.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 $file_info is not named in camelCase.
Open

    public function import_package($zip_file_info, $current_dir = '')
    {
        if ($this->debug > 0) {
            error_log('In aicc::import_package('.print_r($zip_file_info, true).',"'.$current_dir.'") method', 0);
        }
Severity: Minor
Found in public/main/lp/aicc.class.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 $files_found is not named in camelCase.
Open

    public function import_package($zip_file_info, $current_dir = '')
    {
        if ($this->debug > 0) {
            error_log('In aicc::import_package('.print_r($zip_file_info, true).',"'.$current_dir.'") method', 0);
        }
Severity: Minor
Found in public/main/lp/aicc.class.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 $files_found is not named in camelCase.
Open

    public function import_package($zip_file_info, $current_dir = '')
    {
        if ($this->debug > 0) {
            error_log('In aicc::import_package('.print_r($zip_file_info, true).',"'.$current_dir.'") method', 0);
        }
Severity: Minor
Found in public/main/lp/aicc.class.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 $course_sys_dir is not named in camelCase.
Open

    public function import_package($zip_file_info, $current_dir = '')
    {
        if ($this->debug > 0) {
            error_log('In aicc::import_package('.print_r($zip_file_info, true).',"'.$current_dir.'") method', 0);
        }
Severity: Minor
Found in public/main/lp/aicc.class.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 $ore_file is not named in camelCase.
Open

    public function parse_config_files($dir = '')
    {
        if ($this->debug > 0) {
            error_log('New LP - In aicc::parse_config_files('.$dir.')', 0);
        }
Severity: Minor
Found in public/main/lp/aicc.class.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 $course_code is not named in camelCase.
Open

    public function import_aicc($course_code)
    {
        $courseInfo = api_get_course_info($course_code);
        $course_id = $courseInfo['real_id'];

Severity: Minor
Found in public/main/lp/aicc.class.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_lp is not named in camelCase.
Open

    public function import_aicc($course_code)
    {
        $courseInfo = api_get_course_info($course_code);
        $course_id = $courseInfo['real_id'];

Severity: Minor
Found in public/main/lp/aicc.class.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 $file_path is not named in camelCase.
Open

    public function import_local_package($file_path, $current_dir = '')
    {
        // TODO: Prepare info as given by the $_FILES[''] vector.
        $file_info = [];
        $file_info['tmp_name'] = $file_path;
Severity: Minor
Found in public/main/lp/aicc.class.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 $zip_file_name is not named in camelCase.
Open

    public function import_package($zip_file_info, $current_dir = '')
    {
        if ($this->debug > 0) {
            error_log('In aicc::import_package('.print_r($zip_file_info, true).',"'.$current_dir.'") method', 0);
        }
Severity: Minor
Found in public/main/lp/aicc.class.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 $zip_file_name is not named in camelCase.
Open

    public function import_package($zip_file_info, $current_dir = '')
    {
        if ($this->debug > 0) {
            error_log('In aicc::import_package('.print_r($zip_file_info, true).',"'.$current_dir.'") method', 0);
        }
Severity: Minor
Found in public/main/lp/aicc.class.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 $file_name is not named in camelCase.
Open

    public function import_package($zip_file_info, $current_dir = '')
    {
        if ($this->debug > 0) {
            error_log('In aicc::import_package('.print_r($zip_file_info, true).',"'.$current_dir.'") method', 0);
        }
Severity: Minor
Found in public/main/lp/aicc.class.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_dir is not named in camelCase.
Open

    public function import_package($zip_file_info, $current_dir = '')
    {
        if ($this->debug > 0) {
            error_log('In aicc::import_package('.print_r($zip_file_info, true).',"'.$current_dir.'") method', 0);
        }
Severity: Minor
Found in public/main/lp/aicc.class.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_lp is not named in camelCase.
Open

    public function import_aicc($course_code)
    {
        $courseInfo = api_get_course_info($course_code);
        $course_id = $courseInfo['real_id'];

Severity: Minor
Found in public/main/lp/aicc.class.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 $sql_item is not named in camelCase.
Open

    public function import_aicc($course_code)
    {
        $courseInfo = api_get_course_info($course_code);
        $course_id = $courseInfo['real_id'];

Severity: Minor
Found in public/main/lp/aicc.class.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 $zip_file_path is not named in camelCase.
Open

    public function import_package($zip_file_info, $current_dir = '')
    {
        if ($this->debug > 0) {
            error_log('In aicc::import_package('.print_r($zip_file_info, true).',"'.$current_dir.'") method', 0);
        }
Severity: Minor
Found in public/main/lp/aicc.class.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 $config_dir is not named in camelCase.
Open

    public function import_package($zip_file_info, $current_dir = '')
    {
        if ($this->debug > 0) {
            error_log('In aicc::import_package('.print_r($zip_file_info, true).',"'.$current_dir.'") method', 0);
        }
Severity: Minor
Found in public/main/lp/aicc.class.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 $files_found is not named in camelCase.
Open

    public function import_package($zip_file_info, $current_dir = '')
    {
        if ($this->debug > 0) {
            error_log('In aicc::import_package('.print_r($zip_file_info, true).',"'.$current_dir.'") method', 0);
        }
Severity: Minor
Found in public/main/lp/aicc.class.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 $subdir_isset is not named in camelCase.
Open

    public function import_package($zip_file_info, $current_dir = '')
    {
        if ($this->debug > 0) {
            error_log('In aicc::import_package('.print_r($zip_file_info, true).',"'.$current_dir.'") method', 0);
        }
Severity: Minor
Found in public/main/lp/aicc.class.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 $course_sys_dir is not named in camelCase.
Open

    public function import_package($zip_file_info, $current_dir = '')
    {
        if ($this->debug > 0) {
            error_log('In aicc::import_package('.print_r($zip_file_info, true).',"'.$current_dir.'") method', 0);
        }
Severity: Minor
Found in public/main/lp/aicc.class.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 $config_dir is not named in camelCase.
Open

    public function import_package($zip_file_info, $current_dir = '')
    {
        if ($this->debug > 0) {
            error_log('In aicc::import_package('.print_r($zip_file_info, true).',"'.$current_dir.'") method', 0);
        }
Severity: Minor
Found in public/main/lp/aicc.class.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 $lp_id is not named in camelCase.
Open

    public function import_aicc($course_code)
    {
        $courseInfo = api_get_course_info($course_code);
        $course_id = $courseInfo['real_id'];

Severity: Minor
Found in public/main/lp/aicc.class.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 $files_found is not named in camelCase.
Open

    public function import_package($zip_file_info, $current_dir = '')
    {
        if ($this->debug > 0) {
            error_log('In aicc::import_package('.print_r($zip_file_info, true).',"'.$current_dir.'") method', 0);
        }
Severity: Minor
Found in public/main/lp/aicc.class.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_dir is not named in camelCase.
Open

    public function import_package($zip_file_info, $current_dir = '')
    {
        if ($this->debug > 0) {
            error_log('In aicc::import_package('.print_r($zip_file_info, true).',"'.$current_dir.'") method', 0);
        }
Severity: Minor
Found in public/main/lp/aicc.class.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 $course_sys_dir is not named in camelCase.
Open

    public function import_package($zip_file_info, $current_dir = '')
    {
        if ($this->debug > 0) {
            error_log('In aicc::import_package('.print_r($zip_file_info, true).',"'.$current_dir.'") method', 0);
        }
Severity: Minor
Found in public/main/lp/aicc.class.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 $value_add is not named in camelCase.
Open

    public function import_aicc($course_code)
    {
        $courseInfo = api_get_course_info($course_code);
        $course_id = $courseInfo['real_id'];

Severity: Minor
Found in public/main/lp/aicc.class.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 $value_add is not named in camelCase.
Open

    public function import_aicc($course_code)
    {
        $courseInfo = api_get_course_info($course_code);
        $course_id = $courseInfo['real_id'];

Severity: Minor
Found in public/main/lp/aicc.class.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 $file_info is not named in camelCase.
Open

    public function import_local_package($file_path, $current_dir = '')
    {
        // TODO: Prepare info as given by the $_FILES[''] vector.
        $file_info = [];
        $file_info['tmp_name'] = $file_path;
Severity: Minor
Found in public/main/lp/aicc.class.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 $zip_file_info is not named in camelCase.
Open

    public function import_package($zip_file_info, $current_dir = '')
    {
        if ($this->debug > 0) {
            error_log('In aicc::import_package('.print_r($zip_file_info, true).',"'.$current_dir.'") method', 0);
        }
Severity: Minor
Found in public/main/lp/aicc.class.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 $course_rel_dir is not named in camelCase.
Open

    public function import_package($zip_file_info, $current_dir = '')
    {
        if ($this->debug > 0) {
            error_log('In aicc::import_package('.print_r($zip_file_info, true).',"'.$current_dir.'") method', 0);
        }
Severity: Minor
Found in public/main/lp/aicc.class.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 $config_dir is not named in camelCase.
Open

    public function import_package($zip_file_info, $current_dir = '')
    {
        if ($this->debug > 0) {
            error_log('In aicc::import_package('.print_r($zip_file_info, true).',"'.$current_dir.'") method', 0);
        }
Severity: Minor
Found in public/main/lp/aicc.class.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 $file_name is not named in camelCase.
Open

    public function import_package($zip_file_info, $current_dir = '')
    {
        if ($this->debug > 0) {
            error_log('In aicc::import_package('.print_r($zip_file_info, true).',"'.$current_dir.'") method', 0);
        }
Severity: Minor
Found in public/main/lp/aicc.class.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 $file_name is not named in camelCase.
Open

    public function import_package($zip_file_info, $current_dir = '')
    {
        if ($this->debug > 0) {
            error_log('In aicc::import_package('.print_r($zip_file_info, true).',"'.$current_dir.'") method', 0);
        }
Severity: Minor
Found in public/main/lp/aicc.class.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 $package_type is not named in camelCase.
Open

    public function import_package($zip_file_info, $current_dir = '')
    {
        if ($this->debug > 0) {
            error_log('In aicc::import_package('.print_r($zip_file_info, true).',"'.$current_dir.'") method', 0);
        }
Severity: Minor
Found in public/main/lp/aicc.class.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_dir is not named in camelCase.
Open

    public function import_package($zip_file_info, $current_dir = '')
    {
        if ($this->debug > 0) {
            error_log('In aicc::import_package('.print_r($zip_file_info, true).',"'.$current_dir.'") method', 0);
        }
Severity: Minor
Found in public/main/lp/aicc.class.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 $lp_id is not named in camelCase.
Open

    public function export_zip($lp_id = null)
    {
        if ($this->debug > 0) {
            error_log('In aicc::export_zip method('.$lp_id.')', 0);
        }
Severity: Minor
Found in public/main/lp/aicc.class.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 $course_id is not named in camelCase.
Open

    public function export_zip($lp_id = null)
    {
        if ($this->debug > 0) {
            error_log('In aicc::export_zip method('.$lp_id.')', 0);
        }
Severity: Minor
Found in public/main/lp/aicc.class.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 $zip_file_path is not named in camelCase.
Open

    public function import_package($zip_file_info, $current_dir = '')
    {
        if ($this->debug > 0) {
            error_log('In aicc::import_package('.print_r($zip_file_info, true).',"'.$current_dir.'") method', 0);
        }
Severity: Minor
Found in public/main/lp/aicc.class.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 $zip_file_info is not named in camelCase.
Open

    public function import_package($zip_file_info, $current_dir = '')
    {
        if ($this->debug > 0) {
            error_log('In aicc::import_package('.print_r($zip_file_info, true).',"'.$current_dir.'") method', 0);
        }
Severity: Minor
Found in public/main/lp/aicc.class.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 $file_name is not named in camelCase.
Open

    public function import_package($zip_file_info, $current_dir = '')
    {
        if ($this->debug > 0) {
            error_log('In aicc::import_package('.print_r($zip_file_info, true).',"'.$current_dir.'") method', 0);
        }
Severity: Minor
Found in public/main/lp/aicc.class.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 $file_name is not named in camelCase.
Open

    public function import_package($zip_file_info, $current_dir = '')
    {
        if ($this->debug > 0) {
            error_log('In aicc::import_package('.print_r($zip_file_info, true).',"'.$current_dir.'") method', 0);
        }
Severity: Minor
Found in public/main/lp/aicc.class.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 $file_name is not named in camelCase.
Open

    public function import_package($zip_file_info, $current_dir = '')
    {
        if ($this->debug > 0) {
            error_log('In aicc::import_package('.print_r($zip_file_info, true).',"'.$current_dir.'") method', 0);
        }
Severity: Minor
Found in public/main/lp/aicc.class.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 $lp_id is not named in camelCase.
Open

    public function export_zip($lp_id = null)
    {
        if ($this->debug > 0) {
            error_log('In aicc::export_zip method('.$lp_id.')', 0);
        }
Severity: Minor
Found in public/main/lp/aicc.class.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 $get_max is not named in camelCase.
Open

    public function import_aicc($course_code)
    {
        $courseInfo = api_get_course_info($course_code);
        $course_id = $courseInfo['real_id'];

Severity: Minor
Found in public/main/lp/aicc.class.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 $res_max is not named in camelCase.
Open

    public function import_aicc($course_code)
    {
        $courseInfo = api_get_course_info($course_code);
        $course_id = $courseInfo['real_id'];

Severity: Minor
Found in public/main/lp/aicc.class.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 $lp_id is not named in camelCase.
Open

    public function import_aicc($course_code)
    {
        $courseInfo = api_get_course_info($course_code);
        $course_id = $courseInfo['real_id'];

Severity: Minor
Found in public/main/lp/aicc.class.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 $field_add is not named in camelCase.
Open

    public function import_aicc($course_code)
    {
        $courseInfo = api_get_course_info($course_code);
        $course_id = $courseInfo['real_id'];

Severity: Minor
Found in public/main/lp/aicc.class.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 $item_id is not named in camelCase.
Open

    public function import_aicc($course_code)
    {
        $courseInfo = api_get_course_info($course_code);
        $course_id = $courseInfo['real_id'];

Severity: Minor
Found in public/main/lp/aicc.class.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_lp_item is not named in camelCase.
Open

    public function import_aicc($course_code)
    {
        $courseInfo = api_get_course_info($course_code);
        $course_id = $courseInfo['real_id'];

Severity: Minor
Found in public/main/lp/aicc.class.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 $course_id is not named in camelCase.
Open

    public function import_aicc($course_code)
    {
        $courseInfo = api_get_course_info($course_code);
        $course_id = $courseInfo['real_id'];

Severity: Minor
Found in public/main/lp/aicc.class.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 $course_rel_dir is not named in camelCase.
Open

    public function import_package($zip_file_info, $current_dir = '')
    {
        if ($this->debug > 0) {
            error_log('In aicc::import_package('.print_r($zip_file_info, true).',"'.$current_dir.'") method', 0);
        }
Severity: Minor
Found in public/main/lp/aicc.class.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 $package_type is not named in camelCase.
Open

    public function import_package($zip_file_info, $current_dir = '')
    {
        if ($this->debug > 0) {
            error_log('In aicc::import_package('.print_r($zip_file_info, true).',"'.$current_dir.'") method', 0);
        }
Severity: Minor
Found in public/main/lp/aicc.class.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_dir is not named in camelCase.
Open

    public function import_package($zip_file_info, $current_dir = '')
    {
        if ($this->debug > 0) {
            error_log('In aicc::import_package('.print_r($zip_file_info, true).',"'.$current_dir.'") method', 0);
        }
Severity: Minor
Found in public/main/lp/aicc.class.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 $file_info is not named in camelCase.
Open

    public function import_local_package($file_path, $current_dir = '')
    {
        // TODO: Prepare info as given by the $_FILES[''] vector.
        $file_info = [];
        $file_info['tmp_name'] = $file_path;
Severity: Minor
Found in public/main/lp/aicc.class.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_dir is not named in camelCase.
Open

    public function import_package($zip_file_info, $current_dir = '')
    {
        if ($this->debug > 0) {
            error_log('In aicc::import_package('.print_r($zip_file_info, true).',"'.$current_dir.'") method', 0);
        }
Severity: Minor
Found in public/main/lp/aicc.class.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_dir is not named in camelCase.
Open

    public function import_package($zip_file_info, $current_dir = '')
    {
        if ($this->debug > 0) {
            error_log('In aicc::import_package('.print_r($zip_file_info, true).',"'.$current_dir.'") method', 0);
        }
Severity: Minor
Found in public/main/lp/aicc.class.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 $file_info is not named in camelCase.
Open

    public function import_package($zip_file_info, $current_dir = '')
    {
        if ($this->debug > 0) {
            error_log('In aicc::import_package('.print_r($zip_file_info, true).',"'.$current_dir.'") method', 0);
        }
Severity: Minor
Found in public/main/lp/aicc.class.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 $file_base_name is not named in camelCase.
Open

    public function import_package($zip_file_info, $current_dir = '')
    {
        if ($this->debug > 0) {
            error_log('In aicc::import_package('.print_r($zip_file_info, true).',"'.$current_dir.'") method', 0);
        }
Severity: Minor
Found in public/main/lp/aicc.class.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 $files_found is not named in camelCase.
Open

    public function import_package($zip_file_info, $current_dir = '')
    {
        if ($this->debug > 0) {
            error_log('In aicc::import_package('.print_r($zip_file_info, true).',"'.$current_dir.'") method', 0);
        }
Severity: Minor
Found in public/main/lp/aicc.class.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 $files_found is not named in camelCase.
Open

    public function import_package($zip_file_info, $current_dir = '')
    {
        if ($this->debug > 0) {
            error_log('In aicc::import_package('.print_r($zip_file_info, true).',"'.$current_dir.'") method', 0);
        }
Severity: Minor
Found in public/main/lp/aicc.class.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 $files_found is not named in camelCase.
Open

    public function import_package($zip_file_info, $current_dir = '')
    {
        if ($this->debug > 0) {
            error_log('In aicc::import_package('.print_r($zip_file_info, true).',"'.$current_dir.'") method', 0);
        }
Severity: Minor
Found in public/main/lp/aicc.class.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 $file_name is not named in camelCase.
Open

    public function import_package($zip_file_info, $current_dir = '')
    {
        if ($this->debug > 0) {
            error_log('In aicc::import_package('.print_r($zip_file_info, true).',"'.$current_dir.'") method', 0);
        }
Severity: Minor
Found in public/main/lp/aicc.class.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_dir is not named in camelCase.
Open

    public function import_package($zip_file_info, $current_dir = '')
    {
        if ($this->debug > 0) {
            error_log('In aicc::import_package('.print_r($zip_file_info, true).',"'.$current_dir.'") method', 0);
        }
Severity: Minor
Found in public/main/lp/aicc.class.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 $course_sys_dir is not named in camelCase.
Open

    public function import_package($zip_file_info, $current_dir = '')
    {
        if ($this->debug > 0) {
            error_log('In aicc::import_package('.print_r($zip_file_info, true).',"'.$current_dir.'") method', 0);
        }
Severity: Minor
Found in public/main/lp/aicc.class.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 $course_id is not named in camelCase.
Open

    public function import_aicc($course_code)
    {
        $courseInfo = api_get_course_info($course_code);
        $course_id = $courseInfo['real_id'];

Severity: Minor
Found in public/main/lp/aicc.class.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 $file_info is not named in camelCase.
Open

    public function import_local_package($file_path, $current_dir = '')
    {
        // TODO: Prepare info as given by the $_FILES[''] vector.
        $file_info = [];
        $file_info['tmp_name'] = $file_path;
Severity: Minor
Found in public/main/lp/aicc.class.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_dir is not named in camelCase.
Open

    public function import_package($zip_file_info, $current_dir = '')
    {
        if ($this->debug > 0) {
            error_log('In aicc::import_package('.print_r($zip_file_info, true).',"'.$current_dir.'") method', 0);
        }
Severity: Minor
Found in public/main/lp/aicc.class.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_dir is not named in camelCase.
Open

    public function import_package($zip_file_info, $current_dir = '')
    {
        if ($this->debug > 0) {
            error_log('In aicc::import_package('.print_r($zip_file_info, true).',"'.$current_dir.'") method', 0);
        }
Severity: Minor
Found in public/main/lp/aicc.class.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 $zip_file_path is not named in camelCase.
Open

    public function import_package($zip_file_info, $current_dir = '')
    {
        if ($this->debug > 0) {
            error_log('In aicc::import_package('.print_r($zip_file_info, true).',"'.$current_dir.'") method', 0);
        }
Severity: Minor
Found in public/main/lp/aicc.class.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 $at_root is not named in camelCase.
Open

    public function import_package($zip_file_info, $current_dir = '')
    {
        if ($this->debug > 0) {
            error_log('In aicc::import_package('.print_r($zip_file_info, true).',"'.$current_dir.'") method', 0);
        }
Severity: Minor
Found in public/main/lp/aicc.class.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 $subdir_isset is not named in camelCase.
Open

    public function import_package($zip_file_info, $current_dir = '')
    {
        if ($this->debug > 0) {
            error_log('In aicc::import_package('.print_r($zip_file_info, true).',"'.$current_dir.'") method', 0);
        }
Severity: Minor
Found in public/main/lp/aicc.class.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 $files_found is not named in camelCase.
Open

    public function import_package($zip_file_info, $current_dir = '')
    {
        if ($this->debug > 0) {
            error_log('In aicc::import_package('.print_r($zip_file_info, true).',"'.$current_dir.'") method', 0);
        }
Severity: Minor
Found in public/main/lp/aicc.class.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 $course_sys_dir is not named in camelCase.
Open

    public function import_package($zip_file_info, $current_dir = '')
    {
        if ($this->debug > 0) {
            error_log('In aicc::import_package('.print_r($zip_file_info, true).',"'.$current_dir.'") method', 0);
        }
Severity: Minor
Found in public/main/lp/aicc.class.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 $lp_id is not named in camelCase.
Open

    public function export_zip($lp_id = null)
    {
        if ($this->debug > 0) {
            error_log('In aicc::export_zip method('.$lp_id.')', 0);
        }
Severity: Minor
Found in public/main/lp/aicc.class.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 $zip_folder is not named in camelCase.
Open

    public function export_zip($lp_id = null)
    {
        if ($this->debug > 0) {
            error_log('In aicc::export_zip method('.$lp_id.')', 0);
        }
Severity: Minor
Found in public/main/lp/aicc.class.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 $ret_array is not named in camelCase.
Open

    public function parse_csv_file($f, $delim = ',', $enclosure = '"', $multiples = false)
    {
        $data = @file_get_contents($f);
        $data = api_convert_encoding($data, api_get_system_encoding(), $this->config_encoding);
        $enclosed = false;
Severity: Minor
Found in public/main/lp/aicc.class.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 $line_idx is not named in camelCase.
Open

    public function parse_csv_file($f, $delim = ',', $enclosure = '"', $multiples = false)
    {
        $data = @file_get_contents($f);
        $data = api_convert_encoding($data, api_get_system_encoding(), $this->config_encoding);
        $enclosed = false;
Severity: Minor
Found in public/main/lp/aicc.class.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 $ret_ret_array is not named in camelCase.
Open

    public function parse_csv_file($f, $delim = ',', $enclosure = '"', $multiples = false)
    {
        $data = @file_get_contents($f);
        $data = api_convert_encoding($data, api_get_system_encoding(), $this->config_encoding);
        $enclosed = false;
Severity: Minor
Found in public/main/lp/aicc.class.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 $ret_ret_array is not named in camelCase.
Open

    public function parse_csv_file($f, $delim = ',', $enclosure = '"', $multiples = false)
    {
        $data = @file_get_contents($f);
        $data = api_convert_encoding($data, api_get_system_encoding(), $this->config_encoding);
        $enclosed = false;
Severity: Minor
Found in public/main/lp/aicc.class.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 $tbl_lp is not named in camelCase.
Open

    public function export_zip($lp_id = null)
    {
        if ($this->debug > 0) {
            error_log('In aicc::export_zip method('.$lp_id.')', 0);
        }
Severity: Minor
Found in public/main/lp/aicc.class.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 $_course is not named in camelCase.
Open

    public function export_zip($lp_id = null)
    {
        if ($this->debug > 0) {
            error_log('In aicc::export_zip method('.$lp_id.')', 0);
        }
Severity: Minor
Found in public/main/lp/aicc.class.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 $LPnamesafe is not named in camelCase.
Open

    public function export_zip($lp_id = null)
    {
        if ($this->debug > 0) {
            error_log('In aicc::export_zip method('.$lp_id.')', 0);
        }
Severity: Minor
Found in public/main/lp/aicc.class.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 $zip_folder is not named in camelCase.
Open

    public function export_zip($lp_id = null)
    {
        if ($this->debug > 0) {
            error_log('In aicc::export_zip method('.$lp_id.')', 0);
        }
Severity: Minor
Found in public/main/lp/aicc.class.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 $LPnamesafe is not named in camelCase.
Open

    public function export_zip($lp_id = null)
    {
        if ($this->debug > 0) {
            error_log('In aicc::export_zip method('.$lp_id.')', 0);
        }
Severity: Minor
Found in public/main/lp/aicc.class.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 $ret_ret_array is not named in camelCase.
Open

    public function parse_csv_file($f, $delim = ',', $enclosure = '"', $multiples = false)
    {
        $data = @file_get_contents($f);
        $data = api_convert_encoding($data, api_get_system_encoding(), $this->config_encoding);
        $enclosed = false;
Severity: Minor
Found in public/main/lp/aicc.class.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 $_course is not named in camelCase.
Open

    public function export_zip($lp_id = null)
    {
        if ($this->debug > 0) {
            error_log('In aicc::export_zip method('.$lp_id.')', 0);
        }
Severity: Minor
Found in public/main/lp/aicc.class.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 $line_idx is not named in camelCase.
Open

    public function parse_csv_file($f, $delim = ',', $enclosure = '"', $multiples = false)
    {
        $data = @file_get_contents($f);
        $data = api_convert_encoding($data, api_get_system_encoding(), $this->config_encoding);
        $enclosed = false;
Severity: Minor
Found in public/main/lp/aicc.class.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 $lp_id is not named in camelCase.
Open

    public function export_zip($lp_id = null)
    {
        if ($this->debug > 0) {
            error_log('In aicc::export_zip method('.$lp_id.')', 0);
        }
Severity: Minor
Found in public/main/lp/aicc.class.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 $pure_data is not named in camelCase.
Open

    public function parse_ini_string_quotes_safe($s, $pure_strings = [])
    {
        $null = '';
        $r = $null;
        $sec = $null;
Severity: Minor
Found in public/main/lp/aicc.class.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 $ret_array is not named in camelCase.
Open

    public function parse_csv_file($f, $delim = ',', $enclosure = '"', $multiples = false)
    {
        $data = @file_get_contents($f);
        $data = api_convert_encoding($data, api_get_system_encoding(), $this->config_encoding);
        $enclosed = false;
Severity: Minor
Found in public/main/lp/aicc.class.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 $tbl_lp is not named in camelCase.
Open

    public function export_zip($lp_id = null)
    {
        if ($this->debug > 0) {
            error_log('In aicc::export_zip method('.$lp_id.')', 0);
        }
Severity: Minor
Found in public/main/lp/aicc.class.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 $_course is not named in camelCase.
Open

    public function export_zip($lp_id = null)
    {
        if ($this->debug > 0) {
            error_log('In aicc::export_zip method('.$lp_id.')', 0);
        }
Severity: Minor
Found in public/main/lp/aicc.class.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 $LPnamesafe is not named in camelCase.
Open

    public function export_zip($lp_id = null)
    {
        if ($this->debug > 0) {
            error_log('In aicc::export_zip method('.$lp_id.')', 0);
        }
Severity: Minor
Found in public/main/lp/aicc.class.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 $LPnamesafe is not named in camelCase.
Open

    public function export_zip($lp_id = null)
    {
        if ($this->debug > 0) {
            error_log('In aicc::export_zip method('.$lp_id.')', 0);
        }
Severity: Minor
Found in public/main/lp/aicc.class.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 $pure_data is not named in camelCase.
Open

    public function parse_ini_string_quotes_safe($s, $pure_strings = [])
    {
        $null = '';
        $r = $null;
        $sec = $null;
Severity: Minor
Found in public/main/lp/aicc.class.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 $ret_array is not named in camelCase.
Open

    public function parse_csv_file($f, $delim = ',', $enclosure = '"', $multiples = false)
    {
        $data = @file_get_contents($f);
        $data = api_convert_encoding($data, api_get_system_encoding(), $this->config_encoding);
        $enclosed = false;
Severity: Minor
Found in public/main/lp/aicc.class.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 $line_idx is not named in camelCase.
Open

    public function parse_csv_file($f, $delim = ',', $enclosure = '"', $multiples = false)
    {
        $data = @file_get_contents($f);
        $data = api_convert_encoding($data, api_get_system_encoding(), $this->config_encoding);
        $enclosed = false;
Severity: Minor
Found in public/main/lp/aicc.class.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 $ret_ret_array is not named in camelCase.
Open

    public function parse_csv_file($f, $delim = ',', $enclosure = '"', $multiples = false)
    {
        $data = @file_get_contents($f);
        $data = api_convert_encoding($data, api_get_system_encoding(), $this->config_encoding);
        $enclosed = false;
Severity: Minor
Found in public/main/lp/aicc.class.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 $line_idx is not named in camelCase.
Open

    public function parse_csv_file($f, $delim = ',', $enclosure = '"', $multiples = false)
    {
        $data = @file_get_contents($f);
        $data = api_convert_encoding($data, api_get_system_encoding(), $this->config_encoding);
        $enclosed = false;
Severity: Minor
Found in public/main/lp/aicc.class.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 $ret_array is not named in camelCase.
Open

    public function parse_csv_file($f, $delim = ',', $enclosure = '"', $multiples = false)
    {
        $data = @file_get_contents($f);
        $data = api_convert_encoding($data, api_get_system_encoding(), $this->config_encoding);
        $enclosed = false;
Severity: Minor
Found in public/main/lp/aicc.class.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 $LPname is not named in camelCase.
Open

    public function export_zip($lp_id = null)
    {
        if ($this->debug > 0) {
            error_log('In aicc::export_zip method('.$lp_id.')', 0);
        }
Severity: Minor
Found in public/main/lp/aicc.class.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 $ret_ret_array is not named in camelCase.
Open

    public function parse_csv_file($f, $delim = ',', $enclosure = '"', $multiples = false)
    {
        $data = @file_get_contents($f);
        $data = api_convert_encoding($data, api_get_system_encoding(), $this->config_encoding);
        $enclosed = false;
Severity: Minor
Found in public/main/lp/aicc.class.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 $pure_data is not named in camelCase.
Open

    public function parse_ini_string_quotes_safe($s, $pure_strings = [])
    {
        $null = '';
        $r = $null;
        $sec = $null;
Severity: Minor
Found in public/main/lp/aicc.class.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 $ret_ret_array is not named in camelCase.
Open

    public function parse_csv_file($f, $delim = ',', $enclosure = '"', $multiples = false)
    {
        $data = @file_get_contents($f);
        $data = api_convert_encoding($data, api_get_system_encoding(), $this->config_encoding);
        $enclosed = false;
Severity: Minor
Found in public/main/lp/aicc.class.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 $LPname is not named in camelCase.
Open

    public function export_zip($lp_id = null)
    {
        if ($this->debug > 0) {
            error_log('In aicc::export_zip method('.$lp_id.')', 0);
        }
Severity: Minor
Found in public/main/lp/aicc.class.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 $line_idx is not named in camelCase.
Open

    public function parse_csv_file($f, $delim = ',', $enclosure = '"', $multiples = false)
    {
        $data = @file_get_contents($f);
        $data = api_convert_encoding($data, api_get_system_encoding(), $this->config_encoding);
        $enclosed = false;
Severity: Minor
Found in public/main/lp/aicc.class.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 $pure_strings is not named in camelCase.
Open

    public function parse_ini_string_quotes_safe($s, $pure_strings = [])
    {
        $null = '';
        $r = $null;
        $sec = $null;
Severity: Minor
Found in public/main/lp/aicc.class.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 $ret_array is not named in camelCase.
Open

    public function parse_csv_file($f, $delim = ',', $enclosure = '"', $multiples = false)
    {
        $data = @file_get_contents($f);
        $data = api_convert_encoding($data, api_get_system_encoding(), $this->config_encoding);
        $enclosed = false;
Severity: Minor
Found in public/main/lp/aicc.class.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 $line_idx is not named in camelCase.
Open

    public function parse_csv_file($f, $delim = ',', $enclosure = '"', $multiples = false)
    {
        $data = @file_get_contents($f);
        $data = api_convert_encoding($data, api_get_system_encoding(), $this->config_encoding);
        $enclosed = false;
Severity: Minor
Found in public/main/lp/aicc.class.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 parse_config_files is not named in camelCase.
Open

    public function parse_config_files($dir = '')
    {
        if ($this->debug > 0) {
            error_log('New LP - In aicc::parse_config_files('.$dir.')', 0);
        }
Severity: Minor
Found in public/main/lp/aicc.class.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 import_aicc is not named in camelCase.
Open

    public function import_aicc($course_code)
    {
        $courseInfo = api_get_course_info($course_code);
        $course_id = $courseInfo['real_id'];

Severity: Minor
Found in public/main/lp/aicc.class.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 import_local_package is not named in camelCase.
Open

    public function import_local_package($file_path, $current_dir = '')
    {
        // TODO: Prepare info as given by the $_FILES[''] vector.
        $file_info = [];
        $file_info['tmp_name'] = $file_path;
Severity: Minor
Found in public/main/lp/aicc.class.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 import_package is not named in camelCase.
Open

    public function import_package($zip_file_info, $current_dir = '')
    {
        if ($this->debug > 0) {
            error_log('In aicc::import_package('.print_r($zip_file_info, true).',"'.$current_dir.'") method', 0);
        }
Severity: Minor
Found in public/main/lp/aicc.class.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 reimport_aicc is not named in camelCase.
Open

    public function reimport_aicc()
    {
        if ($this->debug > 0) {
            error_log('In aicc::reimport_aicc() method', 0);
        }
Severity: Minor
Found in public/main/lp/aicc.class.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 parse_ini_string_quotes_safe is not named in camelCase.
Open

    public function parse_ini_string_quotes_safe($s, $pure_strings = [])
    {
        $null = '';
        $r = $null;
        $sec = $null;
Severity: Minor
Found in public/main/lp/aicc.class.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_res_path is not named in camelCase.
Open

    public function get_res_path($id)
    {
        if ($this->debug > 0) {
            error_log('In aicc::get_res_path('.$id.') method', 0);
        }
Severity: Minor
Found in public/main/lp/aicc.class.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_res_type is not named in camelCase.
Open

    public function get_res_type($id)
    {
        if ($this->debug > 0) {
            error_log('In aicc::get_res_type('.$id.') method', 0);
        }
Severity: Minor
Found in public/main/lp/aicc.class.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 export_zip is not named in camelCase.
Open

    public function export_zip($lp_id = null)
    {
        if ($this->debug > 0) {
            error_log('In aicc::export_zip method('.$lp_id.')', 0);
        }
Severity: Minor
Found in public/main/lp/aicc.class.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_title is not named in camelCase.
Open

    public function get_title()
    {
        if ($this->debug > 0) {
            error_log('In aicc::get_title() method', 0);
        }
Severity: Minor
Found in public/main/lp/aicc.class.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 parse_ini_file_quotes_safe is not named in camelCase.
Open

    public function parse_ini_file_quotes_safe($f)
    {
        $null = '';
        $r = $null;
        $sec = $null;
Severity: Minor
Found in public/main/lp/aicc.class.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 parse_csv_file is not named in camelCase.
Open

    public function parse_csv_file($f, $delim = ',', $enclosure = '"', $multiples = false)
    {
        $data = @file_get_contents($f);
        $data = api_convert_encoding($data, api_get_system_encoding(), $this->config_encoding);
        $enclosed = false;
Severity: Minor
Found in public/main/lp/aicc.class.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