chamilo/chamilo-lms

View on GitHub
public/main/admin/special_exports.php

Summary

Maintainability
A
0 mins
Test Coverage

Avoid using undefined variables such as '$values' which will lead to PHP notices.
Open

    $values['backup_option'] = 'full_backup';
Severity: Minor
Found in public/main/admin/special_exports.php by phpmd

UndefinedVariable

Since: 2.8.0

Detects when a variable is used that has not been defined before.

Example

class Foo
{
    private function bar()
    {
        // $message is undefined
        echo $message;
    }
}

Source https://phpmd.org/rules/cleancode.html#undefinedvariable

Avoid using undefined variables such as '$values' which will lead to PHP notices.
Open

    $form->setDefaults($values);
Severity: Minor
Found in public/main/admin/special_exports.php by phpmd

UndefinedVariable

Since: 2.8.0

Detects when a variable is used that has not been defined before.

Example

class Foo
{
    private function bar()
    {
        // $message is undefined
        echo $message;
    }
}

Source https://phpmd.org/rules/cleancode.html#undefinedvariable

Missing class import via use statement (line '147', column '17').
Open

    $form = new FormValidator('special_exports', 'post');
Severity: Minor
Found in public/main/admin/special_exports.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 '219', column '23').
Open

    $zip_folder = new PclZip($FileZip['TEMP_FILE_ZIP']);
Severity: Minor
Found in public/main/admin/special_exports.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

The method rename_zip uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
Open

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

        } else {
            $export = true;

            return $name;
        }
Severity: Minor
Found in public/main/admin/special_exports.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 fullexportspecial uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
Open

            } else {
                $querypath = $FileZip['PATH'];
            }
Severity: Minor
Found in public/main/admin/special_exports.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 fullexportspecial uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
Open

    } else {
        echo Display::return_message(get_lang('There were no courses registered or may not have made the association with the sessions'), 'error'); //main API
        $export = false;

        return false;
Severity: Minor
Found in public/main/admin/special_exports.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 create_zip uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
Open

    } else {
        $handle = opendir($temp_zip_dir);
        while (false !== ($file = readdir($handle))) {
            if ("." != $file && ".." != $file) {
                $Diff = (time() - filemtime("$temp_zip_dir/$file")) / 60 / 60; //the "age" of the file in hours
Severity: Minor
Found in public/main/admin/special_exports.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 parameter $FileZip is not named in camelCase.
Open

function rename_zip($FileZip)
{
    Event::event_download(('/' == $FileZip['PATH']) ? 'full_export_'.date('Ymd').'.zip (folder)' : basename($FileZip['PATH']).'.zip (folder)');
    $name = ('/' == $FileZip['PATH']) ? 'full_export_'.date('Ymd').'.zip' : basename($FileZip['PATH']).'.zip';
    if (file_exists($FileZip['PATH_TEMP_ARCHIVE'].'/'.$name)) {
Severity: Minor
Found in public/main/admin/special_exports.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 "tbl_session_course" is not in valid camel caps format
Open

$tbl_session_course = Database::get_main_table(TABLE_MAIN_SESSION_COURSE);

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

                $_course = api_get_course_info($Code_course);

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

            foreach ($Resource as $Code_course => $Sessions) {

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

        $groupCondition = " props.to_group_id = $to_group_id";

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

        if (empty($to_group_id)) {

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

            $ListSession[$rows_session['id']] = $rows_session['title'];

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

        $zip_folder = new PclZip($FileZip['TEMP_FILE_ZIP']);

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

            foreach ($Resource as $Code_course => $Sessions) {

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

        $query_session = Database::query($sql_session);

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

        $ListSession = [];

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

                $course_id = $_course['real_id'];

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

        $sql_session = "SELECT id, title FROM $tbl_session ";

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

                foreach ($Sessions as $IdSession => $value) {

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

    $remove_dir = ('/' != $path) ? substr($path, 0, strlen($path) - strlen(basename($path))) : '/';

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

            $Resource = $_POST['resource'];

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

            foreach ($Resource as $Code_course => $Sessions) {

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

                    $zip_folder->add(

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

                            $FileZip['PATH_COURSE'].$_course['directory'].'/document'.$FileZip['PATH_REMOVE']

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

                $tbl_property = Database::get_course_table(TABLE_ITEM_PROPERTY);

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

        while ($rows_session = Database::fetch_assoc($query_session)) {

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

                            $FileZip['PATH_COURSE'].$_course['directory'].'/document'.$rows_course_session_file['path'],

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

        $to_group_id = 0;

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

            $ListSession[$rows_session['id']] = $rows_session['title'];

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

                $course_id = $_course['real_id'];

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

        $sql_session = "SELECT id, title FROM $tbl_session ";

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

        while ($rows_session = Database::fetch_assoc($query_session)) {

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

            $ListSession[$rows_session['id']] = $rows_session['title'];

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

                $_course = api_get_course_info($Code_course);

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

                        $FileZip['PATH_COURSE'].$_course['directory']."/document".$rows_course_file['path'],

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

        $FileZip = create_zip();

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

        $zip_folder = new PclZip($FileZip['TEMP_FILE_ZIP']);

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

                foreach ($Sessions as $IdSession => $value) {

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

                    $session_id = (int) $IdSession;

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

                            AND docs.session_id = '$session_id'

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

                    while ($rows_course_session_file = Database::fetch_assoc($query_session_doc)) {

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

                            $FileZip['PATH_COURSE'].$_course['directory'].'/document'.$rows_course_session_file['path'],

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

                            $_course['directory']."/".$ListSession[$session_id],

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

        $handle = opendir($temp_zip_dir);

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

    Event::event_download(('/' == $FileZip['PATH']) ? 'full_export_'.date('Ymd').'.zip (folder)' : basename($FileZip['PATH']).'.zip (folder)');

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

    if (file_exists($FileZip['PATH_TEMP_ARCHIVE'].'/'.$name)) {

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

                    AND props.c_id = $course_id";

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

                    INNER JOIN $tbl_session s

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

                    $sql_session_doc = "SELECT path FROM $tbl_document AS docs, $tbl_property AS props

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

                    $query_session_doc = Database::query($sql_session_doc);

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

            $name = rename_zip($FileZip);

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

                $Diff = (time() - filemtime("$temp_zip_dir/$file")) / 60 / 60; //the "age" of the file in hours

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

            $course_id = $_course['real_id'];

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

            while ($rows_course_file = Database::fetch_assoc($query)) {

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

                    $FileZip['PATH_COURSE'].$_course['directory']."/document".$rows_course_file['path'],

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

                    $FileZip['PATH_COURSE'].$_course['directory']."/document".$FileZip['PATH_REMOVE']

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

                        AND docs.session_id = '$session_id'

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

$this_section = SECTION_PLATFORM_ADMIN;

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

$tbl_session = Database::get_main_table(TABLE_MAIN_SESSION);

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

        $query_session = Database::query($sql_session);

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

                while ($rows_course_file = Database::fetch_assoc($query)) {

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

                        $FileZip['PATH_COURSE'].$_course['directory']."/document".$rows_course_file['path'],

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

                    $session_id = (int) $IdSession;

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

                    $sql_session_doc = "SELECT path FROM $tbl_document AS docs, $tbl_property AS props

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

                    while ($rows_course_session_file = Database::fetch_assoc($query_session_doc)) {

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

                            $_course['directory']."/".$ListSession[$session_id],

Missing function doc comment
Open

function create_zip()

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

        'TEMP_FILE_ZIP' => $temp_zip_file,

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

            $FileZip['PATH_TEMP_ARCHIVE'].'/'.$name

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

                    AND docs.c_id = $course_id

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

                    $_course['directory'],

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

                    FROM $tbl_session_course sc

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

    $temp_zip_dir = $sys_archive_path;

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

        mkdir($temp_zip_dir, api_get_permissions_for_new_directories());

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

function rename_zip($FileZip)

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

            $sql = "SELECT path FROM $tbl_document AS docs, $tbl_property AS props

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

                $session_id = $rows_session['id'];

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

                $query_session_doc = Database::query($sql_session_doc);

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

        foreach ($list_course as $_course) {

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

            $course_id = $_course['real_id'];

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

                    $zip_folder->add(

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

                        $_course['directory']."/".$rows_session['title'],

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

                $sql = "SELECT path FROM $tbl_document AS docs, $tbl_property AS props

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

                        AND docs.c_id = $course_id

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

                        AND props.c_id = $course_id";

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

                        $FileZip['PATH_COURSE'].$_course['directory']."/document".$FileZip['PATH_REMOVE']

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

    $FileZip = create_zip();

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

    $zip_folder = new PclZip($FileZip['TEMP_FILE_ZIP']);

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

            if ('/' == $FileZip['PATH']) {

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

                $zip_folder->add(

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

                    $FileZip['PATH_COURSE'].$_course['directory']."/document".$FileZip['PATH_REMOVE']

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

                $query_session_doc = Database::query($sql_session_doc);

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

                while ($rows_course_session_file = Database::fetch_assoc($query_session_doc)) {

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

                        $FileZip['PATH_COURSE'].$_course['directory'].'/document'.$rows_course_session_file['path'],

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

                        $_course['directory']."/".$rows_session['title'],

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

                    unlink("$temp_zip_dir/$file");

Missing function doc comment
Open

function fullexportspecial()

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

                    $FileZip['PATH_COURSE'].$_course['directory']."/document".$FileZip['PATH_REMOVE']

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

                        AND docs.c_id = $course_id

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

                $tbl_document = Database::get_course_table(TABLE_DOCUMENT);

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

                        $_course['directory'],

Missing function doc comment
Open

function form_special_export()

Consider putting global function "rename_zip" in a static class
Open

function rename_zip($FileZip)

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

    if (count($list_course) > 0) {

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

                    $FileZip['PATH_COURSE'].$_course['directory']."/document".$rows_course_file['path'],

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

                while ($rows_course_session_file = Database::fetch_assoc($query_session_doc)) {

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

                        $FileZip['PATH_COURSE'].$_course['directory'].'/document'.$FileZip['PATH_REMOVE']

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

                $sql = "SELECT path FROM $tbl_document AS docs, $tbl_property AS props

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

                            AND docs.c_id = $course_id

Consider putting global function "create_zip" in a static class
Open

function create_zip()

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

        'PATH_TEMP_ARCHIVE' => $temp_zip_dir,

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

        'PATH_COURSE' => $sys_course_path,

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

        unlink($FileZip['PATH_TEMP_ARCHIVE'].'/'.$name);

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

    global $tbl_session, $tbl_session_course, $export;

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

    $to_group_id = 0;

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

    $zip_folder = new PclZip($FileZip['TEMP_FILE_ZIP']);

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

            while ($rows_session = Database::fetch_assoc($query_session)) {

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

                        $FileZip['PATH_COURSE'].$_course['directory'].'/document'.$rows_course_session_file['path'],

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

                        $FileZip['PATH_COURSE'].$_course['directory']."/document".$FileZip['PATH_REMOVE']

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

        'PATH_REMOVE' => $remove_dir,

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

                $querypath = $FileZip['PATH'];

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

                $session_id = $rows_session['id'];

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

                        AND props.c_id = $course_id ";

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

                            AND props.c_id = $course_id";

Consider putting global function "form_special_export" in a static class
Open

function form_special_export()

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

    $temp_zip_dir = $sys_archive_path;

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

    if (!is_dir($temp_zip_dir)) {

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

                $Diff = (time() - filemtime("$temp_zip_dir/$file")) / 60 / 60; //the "age" of the file in hours

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

    $temp_zip_file = $temp_zip_dir."/".md5(time()).".zip"; //create zipfile of given directory

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

    Event::event_download(('/' == $FileZip['PATH']) ? 'full_export_'.date('Ymd').'.zip (folder)' : basename($FileZip['PATH']).'.zip (folder)');

Consider putting global function "fullexportspecial" in a static class
Open

function fullexportspecial()

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

    $tbl_document = Database::get_course_table(TABLE_DOCUMENT);

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

    $groupCondition = " props.to_group_id = $to_group_id";

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

            $sql = "SELECT path FROM $tbl_document AS docs, $tbl_property AS props

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

                        $FileZip['PATH_COURSE'].$_course['directory']."/document".$rows_course_file['path'],

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

                    $sql_session_doc = "SELECT path FROM $tbl_document AS docs, $tbl_property AS props

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

                    $query_session_doc = Database::query($sql_session_doc);

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

                        $zip_folder->add(

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

    $sys_archive_path = api_get_path(SYS_ARCHIVE_PATH).'special_export/';

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

    $temp_zip_file = $temp_zip_dir."/".md5(time()).".zip"; //create zipfile of given directory

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

            $FileZip['TEMP_FILE_ZIP'],

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

    global $tbl_session, $tbl_session_course, $export;

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

    if (empty($to_group_id)) {

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

                    $FileZip['PATH_COURSE'].$_course['directory']."/document".$rows_course_file['path'],

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

            while ($rows_session = Database::fetch_assoc($query_session)) {

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

                        $FileZip['PATH_COURSE'].$_course['directory']."/document".$FileZip['PATH_REMOVE']

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

                            $FileZip['PATH_COURSE'].$_course['directory'].'/document'.$FileZip['PATH_REMOVE']

Missing function doc comment
Open

function rename_zip($FileZip)

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

    $name = ('/' == $FileZip['PATH']) ? 'full_export_'.date('Ymd').'.zip' : basename($FileZip['PATH']).'.zip';

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

    $tbl_property = Database::get_course_table(TABLE_ITEM_PROPERTY);

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

            $query_session = Database::query($sql);

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

                    FROM $tbl_document AS docs, $tbl_property AS props

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

                        $FileZip['PATH_COURSE'].$_course['directory'].'/document'.$rows_course_session_file['path'],

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

                            $FileZip['PATH_COURSE'].$_course['directory'].'/document'.$FileZip['PATH_REMOVE']

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

    if (file_exists($FileZip['TEMP_FILE_ZIP'])) {

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

    $list_course = CourseManager::get_course_list();

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

        foreach ($list_course as $_course) {

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

                            $_course['directory']."/".$ListSession[$session_id],

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

    $sys_course_path = api_get_path(SYS_COURSE_PATH);

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

    $name = ('/' == $FileZip['PATH']) ? 'full_export_'.date('Ymd').'.zip' : basename($FileZip['PATH']).'.zip';

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

                    WHERE c_id = '$course_id' ";

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

                            $FileZip['PATH_COURSE'].$_course['directory'].'/document'.$rows_course_session_file['path'],

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

                if ($Diff > 4) {

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

                $sql_session_doc = "SELECT path

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

                    FROM $tbl_document AS docs, $tbl_property AS props

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

                        $FileZip['PATH_COURSE'].$_course['directory'].'/document'.$FileZip['PATH_REMOVE']

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

                        $FileZip['PATH_COURSE'].$_course['directory'].'/document'.$FileZip['PATH_REMOVE']

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

        $name = rename_zip($FileZip);

The variable $tbl_document is not named in camelCase.
Open

function fullexportspecial()
{
    global $tbl_session, $tbl_session_course, $export;
    $FileZip = create_zip();
    $to_group_id = 0;
Severity: Minor
Found in public/main/admin/special_exports.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $rows_session is not named in camelCase.
Open

function fullexportspecial()
{
    global $tbl_session, $tbl_session_course, $export;
    $FileZip = create_zip();
    $to_group_id = 0;
Severity: Minor
Found in public/main/admin/special_exports.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $sys_course_path is not named in camelCase.
Open

function create_zip()
{
    $path = '';
    if (empty($path)) {
        $path = '/';
Severity: Minor
Found in public/main/admin/special_exports.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $remove_dir is not named in camelCase.
Open

function create_zip()
{
    $path = '';
    if (empty($path)) {
        $path = '/';
Severity: Minor
Found in public/main/admin/special_exports.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $FileZip is not named in camelCase.
Open

function rename_zip($FileZip)
{
    Event::event_download(('/' == $FileZip['PATH']) ? 'full_export_'.date('Ymd').'.zip (folder)' : basename($FileZip['PATH']).'.zip (folder)');
    $name = ('/' == $FileZip['PATH']) ? 'full_export_'.date('Ymd').'.zip' : basename($FileZip['PATH']).'.zip';
    if (file_exists($FileZip['PATH_TEMP_ARCHIVE'].'/'.$name)) {
Severity: Minor
Found in public/main/admin/special_exports.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $to_group_id is not named in camelCase.
Open

function fullexportspecial()
{
    global $tbl_session, $tbl_session_course, $export;
    $FileZip = create_zip();
    $to_group_id = 0;
Severity: Minor
Found in public/main/admin/special_exports.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $FileZip is not named in camelCase.
Open

function fullexportspecial()
{
    global $tbl_session, $tbl_session_course, $export;
    $FileZip = create_zip();
    $to_group_id = 0;
Severity: Minor
Found in public/main/admin/special_exports.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $list_course is not named in camelCase.
Open

function fullexportspecial()
{
    global $tbl_session, $tbl_session_course, $export;
    $FileZip = create_zip();
    $to_group_id = 0;
Severity: Minor
Found in public/main/admin/special_exports.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $FileZip is not named in camelCase.
Open

function fullexportspecial()
{
    global $tbl_session, $tbl_session_course, $export;
    $FileZip = create_zip();
    $to_group_id = 0;
Severity: Minor
Found in public/main/admin/special_exports.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $Diff is not named in camelCase.
Open

function create_zip()
{
    $path = '';
    if (empty($path)) {
        $path = '/';
Severity: Minor
Found in public/main/admin/special_exports.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $FileZip is not named in camelCase.
Open

function fullexportspecial()
{
    global $tbl_session, $tbl_session_course, $export;
    $FileZip = create_zip();
    $to_group_id = 0;
Severity: Minor
Found in public/main/admin/special_exports.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $FileZip is not named in camelCase.
Open

function rename_zip($FileZip)
{
    Event::event_download(('/' == $FileZip['PATH']) ? 'full_export_'.date('Ymd').'.zip (folder)' : basename($FileZip['PATH']).'.zip (folder)');
    $name = ('/' == $FileZip['PATH']) ? 'full_export_'.date('Ymd').'.zip' : basename($FileZip['PATH']).'.zip';
    if (file_exists($FileZip['PATH_TEMP_ARCHIVE'].'/'.$name)) {
Severity: Minor
Found in public/main/admin/special_exports.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $FileZip is not named in camelCase.
Open

function rename_zip($FileZip)
{
    Event::event_download(('/' == $FileZip['PATH']) ? 'full_export_'.date('Ymd').'.zip (folder)' : basename($FileZip['PATH']).'.zip (folder)');
    $name = ('/' == $FileZip['PATH']) ? 'full_export_'.date('Ymd').'.zip' : basename($FileZip['PATH']).'.zip';
    if (file_exists($FileZip['PATH_TEMP_ARCHIVE'].'/'.$name)) {
Severity: Minor
Found in public/main/admin/special_exports.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $FileZip is not named in camelCase.
Open

function fullexportspecial()
{
    global $tbl_session, $tbl_session_course, $export;
    $FileZip = create_zip();
    $to_group_id = 0;
Severity: Minor
Found in public/main/admin/special_exports.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $sys_course_path is not named in camelCase.
Open

function create_zip()
{
    $path = '';
    if (empty($path)) {
        $path = '/';
Severity: Minor
Found in public/main/admin/special_exports.php by phpmd

CamelCaseVariableName

Since: 0.2

It is 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

function fullexportspecial()
{
    global $tbl_session, $tbl_session_course, $export;
    $FileZip = create_zip();
    $to_group_id = 0;
Severity: Minor
Found in public/main/admin/special_exports.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $FileZip is not named in camelCase.
Open

function rename_zip($FileZip)
{
    Event::event_download(('/' == $FileZip['PATH']) ? 'full_export_'.date('Ymd').'.zip (folder)' : basename($FileZip['PATH']).'.zip (folder)');
    $name = ('/' == $FileZip['PATH']) ? 'full_export_'.date('Ymd').'.zip' : basename($FileZip['PATH']).'.zip';
    if (file_exists($FileZip['PATH_TEMP_ARCHIVE'].'/'.$name)) {
Severity: Minor
Found in public/main/admin/special_exports.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $FileZip is not named in camelCase.
Open

function fullexportspecial()
{
    global $tbl_session, $tbl_session_course, $export;
    $FileZip = create_zip();
    $to_group_id = 0;
Severity: Minor
Found in public/main/admin/special_exports.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $to_group_id is not named in camelCase.
Open

function fullexportspecial()
{
    global $tbl_session, $tbl_session_course, $export;
    $FileZip = create_zip();
    $to_group_id = 0;
Severity: Minor
Found in public/main/admin/special_exports.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $rows_course_file is not named in camelCase.
Open

function fullexportspecial()
{
    global $tbl_session, $tbl_session_course, $export;
    $FileZip = create_zip();
    $to_group_id = 0;
Severity: Minor
Found in public/main/admin/special_exports.php by phpmd

CamelCaseVariableName

Since: 0.2

It is 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

function fullexportspecial()
{
    global $tbl_session, $tbl_session_course, $export;
    $FileZip = create_zip();
    $to_group_id = 0;
Severity: Minor
Found in public/main/admin/special_exports.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $query_session is not named in camelCase.
Open

function fullexportspecial()
{
    global $tbl_session, $tbl_session_course, $export;
    $FileZip = create_zip();
    $to_group_id = 0;
Severity: Minor
Found in public/main/admin/special_exports.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $temp_zip_dir is not named in camelCase.
Open

function create_zip()
{
    $path = '';
    if (empty($path)) {
        $path = '/';
Severity: Minor
Found in public/main/admin/special_exports.php by phpmd

CamelCaseVariableName

Since: 0.2

It is 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

function fullexportspecial()
{
    global $tbl_session, $tbl_session_course, $export;
    $FileZip = create_zip();
    $to_group_id = 0;
Severity: Minor
Found in public/main/admin/special_exports.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $FileZip is not named in camelCase.
Open

function fullexportspecial()
{
    global $tbl_session, $tbl_session_course, $export;
    $FileZip = create_zip();
    $to_group_id = 0;
Severity: Minor
Found in public/main/admin/special_exports.php by phpmd

CamelCaseVariableName

Since: 0.2

It is 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

function fullexportspecial()
{
    global $tbl_session, $tbl_session_course, $export;
    $FileZip = create_zip();
    $to_group_id = 0;
Severity: Minor
Found in public/main/admin/special_exports.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $rows_course_file is not named in camelCase.
Open

function fullexportspecial()
{
    global $tbl_session, $tbl_session_course, $export;
    $FileZip = create_zip();
    $to_group_id = 0;
Severity: Minor
Found in public/main/admin/special_exports.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $query_session_doc is not named in camelCase.
Open

function fullexportspecial()
{
    global $tbl_session, $tbl_session_course, $export;
    $FileZip = create_zip();
    $to_group_id = 0;
Severity: Minor
Found in public/main/admin/special_exports.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $query_session_doc is not named in camelCase.
Open

function fullexportspecial()
{
    global $tbl_session, $tbl_session_course, $export;
    $FileZip = create_zip();
    $to_group_id = 0;
Severity: Minor
Found in public/main/admin/special_exports.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $rows_session is not named in camelCase.
Open

function fullexportspecial()
{
    global $tbl_session, $tbl_session_course, $export;
    $FileZip = create_zip();
    $to_group_id = 0;
Severity: Minor
Found in public/main/admin/special_exports.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $Diff is not named in camelCase.
Open

function create_zip()
{
    $path = '';
    if (empty($path)) {
        $path = '/';
Severity: Minor
Found in public/main/admin/special_exports.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $FileZip is not named in camelCase.
Open

function rename_zip($FileZip)
{
    Event::event_download(('/' == $FileZip['PATH']) ? 'full_export_'.date('Ymd').'.zip (folder)' : basename($FileZip['PATH']).'.zip (folder)');
    $name = ('/' == $FileZip['PATH']) ? 'full_export_'.date('Ymd').'.zip' : basename($FileZip['PATH']).'.zip';
    if (file_exists($FileZip['PATH_TEMP_ARCHIVE'].'/'.$name)) {
Severity: Minor
Found in public/main/admin/special_exports.php by phpmd

CamelCaseVariableName

Since: 0.2

It is 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

function fullexportspecial()
{
    global $tbl_session, $tbl_session_course, $export;
    $FileZip = create_zip();
    $to_group_id = 0;
Severity: Minor
Found in public/main/admin/special_exports.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $temp_zip_dir is not named in camelCase.
Open

function create_zip()
{
    $path = '';
    if (empty($path)) {
        $path = '/';
Severity: Minor
Found in public/main/admin/special_exports.php by phpmd

CamelCaseVariableName

Since: 0.2

It is 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_document is not named in camelCase.
Open

function fullexportspecial()
{
    global $tbl_session, $tbl_session_course, $export;
    $FileZip = create_zip();
    $to_group_id = 0;
Severity: Minor
Found in public/main/admin/special_exports.php by phpmd

CamelCaseVariableName

Since: 0.2

It is 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_session is not named in camelCase.
Open

function fullexportspecial()
{
    global $tbl_session, $tbl_session_course, $export;
    $FileZip = create_zip();
    $to_group_id = 0;
Severity: Minor
Found in public/main/admin/special_exports.php by phpmd

CamelCaseVariableName

Since: 0.2

It is 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

function fullexportspecial()
{
    global $tbl_session, $tbl_session_course, $export;
    $FileZip = create_zip();
    $to_group_id = 0;
Severity: Minor
Found in public/main/admin/special_exports.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $FileZip is not named in camelCase.
Open

function fullexportspecial()
{
    global $tbl_session, $tbl_session_course, $export;
    $FileZip = create_zip();
    $to_group_id = 0;
Severity: Minor
Found in public/main/admin/special_exports.php by phpmd

CamelCaseVariableName

Since: 0.2

It is 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

function fullexportspecial()
{
    global $tbl_session, $tbl_session_course, $export;
    $FileZip = create_zip();
    $to_group_id = 0;
Severity: Minor
Found in public/main/admin/special_exports.php by phpmd

CamelCaseVariableName

Since: 0.2

It is 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_session is not named in camelCase.
Open

function fullexportspecial()
{
    global $tbl_session, $tbl_session_course, $export;
    $FileZip = create_zip();
    $to_group_id = 0;
Severity: Minor
Found in public/main/admin/special_exports.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $temp_zip_dir is not named in camelCase.
Open

function create_zip()
{
    $path = '';
    if (empty($path)) {
        $path = '/';
Severity: Minor
Found in public/main/admin/special_exports.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $temp_zip_dir is not named in camelCase.
Open

function create_zip()
{
    $path = '';
    if (empty($path)) {
        $path = '/';
Severity: Minor
Found in public/main/admin/special_exports.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $temp_zip_file is not named in camelCase.
Open

function create_zip()
{
    $path = '';
    if (empty($path)) {
        $path = '/';
Severity: Minor
Found in public/main/admin/special_exports.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $FileZip is not named in camelCase.
Open

function rename_zip($FileZip)
{
    Event::event_download(('/' == $FileZip['PATH']) ? 'full_export_'.date('Ymd').'.zip (folder)' : basename($FileZip['PATH']).'.zip (folder)');
    $name = ('/' == $FileZip['PATH']) ? 'full_export_'.date('Ymd').'.zip' : basename($FileZip['PATH']).'.zip';
    if (file_exists($FileZip['PATH_TEMP_ARCHIVE'].'/'.$name)) {
Severity: Minor
Found in public/main/admin/special_exports.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $temp_zip_file is not named in camelCase.
Open

function create_zip()
{
    $path = '';
    if (empty($path)) {
        $path = '/';
Severity: Minor
Found in public/main/admin/special_exports.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $session_id is not named in camelCase.
Open

function fullexportspecial()
{
    global $tbl_session, $tbl_session_course, $export;
    $FileZip = create_zip();
    $to_group_id = 0;
Severity: Minor
Found in public/main/admin/special_exports.php by phpmd

CamelCaseVariableName

Since: 0.2

It is 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

function fullexportspecial()
{
    global $tbl_session, $tbl_session_course, $export;
    $FileZip = create_zip();
    $to_group_id = 0;
Severity: Minor
Found in public/main/admin/special_exports.php by phpmd

CamelCaseVariableName

Since: 0.2

It is 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_property is not named in camelCase.
Open

function fullexportspecial()
{
    global $tbl_session, $tbl_session_course, $export;
    $FileZip = create_zip();
    $to_group_id = 0;
Severity: Minor
Found in public/main/admin/special_exports.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $rows_session is not named in camelCase.
Open

function fullexportspecial()
{
    global $tbl_session, $tbl_session_course, $export;
    $FileZip = create_zip();
    $to_group_id = 0;
Severity: Minor
Found in public/main/admin/special_exports.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $rows_course_session_file is not named in camelCase.
Open

function fullexportspecial()
{
    global $tbl_session, $tbl_session_course, $export;
    $FileZip = create_zip();
    $to_group_id = 0;
Severity: Minor
Found in public/main/admin/special_exports.php by phpmd

CamelCaseVariableName

Since: 0.2

It is 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

function fullexportspecial()
{
    global $tbl_session, $tbl_session_course, $export;
    $FileZip = create_zip();
    $to_group_id = 0;
Severity: Minor
Found in public/main/admin/special_exports.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $temp_zip_dir is not named in camelCase.
Open

function create_zip()
{
    $path = '';
    if (empty($path)) {
        $path = '/';
Severity: Minor
Found in public/main/admin/special_exports.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $temp_zip_dir is not named in camelCase.
Open

function create_zip()
{
    $path = '';
    if (empty($path)) {
        $path = '/';
Severity: Minor
Found in public/main/admin/special_exports.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $to_group_id is not named in camelCase.
Open

function fullexportspecial()
{
    global $tbl_session, $tbl_session_course, $export;
    $FileZip = create_zip();
    $to_group_id = 0;
Severity: Minor
Found in public/main/admin/special_exports.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $list_course is not named in camelCase.
Open

function fullexportspecial()
{
    global $tbl_session, $tbl_session_course, $export;
    $FileZip = create_zip();
    $to_group_id = 0;
Severity: Minor
Found in public/main/admin/special_exports.php by phpmd

CamelCaseVariableName

Since: 0.2

It is 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_session_doc is not named in camelCase.
Open

function fullexportspecial()
{
    global $tbl_session, $tbl_session_course, $export;
    $FileZip = create_zip();
    $to_group_id = 0;
Severity: Minor
Found in public/main/admin/special_exports.php by phpmd

CamelCaseVariableName

Since: 0.2

It is 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

function fullexportspecial()
{
    global $tbl_session, $tbl_session_course, $export;
    $FileZip = create_zip();
    $to_group_id = 0;
Severity: Minor
Found in public/main/admin/special_exports.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $temp_zip_dir is not named in camelCase.
Open

function create_zip()
{
    $path = '';
    if (empty($path)) {
        $path = '/';
Severity: Minor
Found in public/main/admin/special_exports.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $FileZip is not named in camelCase.
Open

function rename_zip($FileZip)
{
    Event::event_download(('/' == $FileZip['PATH']) ? 'full_export_'.date('Ymd').'.zip (folder)' : basename($FileZip['PATH']).'.zip (folder)');
    $name = ('/' == $FileZip['PATH']) ? 'full_export_'.date('Ymd').'.zip' : basename($FileZip['PATH']).'.zip';
    if (file_exists($FileZip['PATH_TEMP_ARCHIVE'].'/'.$name)) {
Severity: Minor
Found in public/main/admin/special_exports.php by phpmd

CamelCaseVariableName

Since: 0.2

It is 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_session_course is not named in camelCase.
Open

function fullexportspecial()
{
    global $tbl_session, $tbl_session_course, $export;
    $FileZip = create_zip();
    $to_group_id = 0;
Severity: Minor
Found in public/main/admin/special_exports.php by phpmd

CamelCaseVariableName

Since: 0.2

It is 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

function fullexportspecial()
{
    global $tbl_session, $tbl_session_course, $export;
    $FileZip = create_zip();
    $to_group_id = 0;
Severity: Minor
Found in public/main/admin/special_exports.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $FileZip is not named in camelCase.
Open

function rename_zip($FileZip)
{
    Event::event_download(('/' == $FileZip['PATH']) ? 'full_export_'.date('Ymd').'.zip (folder)' : basename($FileZip['PATH']).'.zip (folder)');
    $name = ('/' == $FileZip['PATH']) ? 'full_export_'.date('Ymd').'.zip' : basename($FileZip['PATH']).'.zip';
    if (file_exists($FileZip['PATH_TEMP_ARCHIVE'].'/'.$name)) {
Severity: Minor
Found in public/main/admin/special_exports.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $FileZip is not named in camelCase.
Open

function fullexportspecial()
{
    global $tbl_session, $tbl_session_course, $export;
    $FileZip = create_zip();
    $to_group_id = 0;
Severity: Minor
Found in public/main/admin/special_exports.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $rows_course_session_file is not named in camelCase.
Open

function fullexportspecial()
{
    global $tbl_session, $tbl_session_course, $export;
    $FileZip = create_zip();
    $to_group_id = 0;
Severity: Minor
Found in public/main/admin/special_exports.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $FileZip is not named in camelCase.
Open

function fullexportspecial()
{
    global $tbl_session, $tbl_session_course, $export;
    $FileZip = create_zip();
    $to_group_id = 0;
Severity: Minor
Found in public/main/admin/special_exports.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $sys_archive_path is not named in camelCase.
Open

function create_zip()
{
    $path = '';
    if (empty($path)) {
        $path = '/';
Severity: Minor
Found in public/main/admin/special_exports.php by phpmd

CamelCaseVariableName

Since: 0.2

It is 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

function fullexportspecial()
{
    global $tbl_session, $tbl_session_course, $export;
    $FileZip = create_zip();
    $to_group_id = 0;
Severity: Minor
Found in public/main/admin/special_exports.php by phpmd

CamelCaseVariableName

Since: 0.2

It is 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

function fullexportspecial()
{
    global $tbl_session, $tbl_session_course, $export;
    $FileZip = create_zip();
    $to_group_id = 0;
Severity: Minor
Found in public/main/admin/special_exports.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $FileZip is not named in camelCase.
Open

function fullexportspecial()
{
    global $tbl_session, $tbl_session_course, $export;
    $FileZip = create_zip();
    $to_group_id = 0;
Severity: Minor
Found in public/main/admin/special_exports.php by phpmd

CamelCaseVariableName

Since: 0.2

It is 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

function fullexportspecial()
{
    global $tbl_session, $tbl_session_course, $export;
    $FileZip = create_zip();
    $to_group_id = 0;
Severity: Minor
Found in public/main/admin/special_exports.php by phpmd

CamelCaseVariableName

Since: 0.2

It is 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_document is not named in camelCase.
Open

function fullexportspecial()
{
    global $tbl_session, $tbl_session_course, $export;
    $FileZip = create_zip();
    $to_group_id = 0;
Severity: Minor
Found in public/main/admin/special_exports.php by phpmd

CamelCaseVariableName

Since: 0.2

It is 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_property is not named in camelCase.
Open

function fullexportspecial()
{
    global $tbl_session, $tbl_session_course, $export;
    $FileZip = create_zip();
    $to_group_id = 0;
Severity: Minor
Found in public/main/admin/special_exports.php by phpmd

CamelCaseVariableName

Since: 0.2

It is 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

function fullexportspecial()
{
    global $tbl_session, $tbl_session_course, $export;
    $FileZip = create_zip();
    $to_group_id = 0;
Severity: Minor
Found in public/main/admin/special_exports.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $FileZip is not named in camelCase.
Open

function rename_zip($FileZip)
{
    Event::event_download(('/' == $FileZip['PATH']) ? 'full_export_'.date('Ymd').'.zip (folder)' : basename($FileZip['PATH']).'.zip (folder)');
    $name = ('/' == $FileZip['PATH']) ? 'full_export_'.date('Ymd').'.zip' : basename($FileZip['PATH']).'.zip';
    if (file_exists($FileZip['PATH_TEMP_ARCHIVE'].'/'.$name)) {
Severity: Minor
Found in public/main/admin/special_exports.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $list_course is not named in camelCase.
Open

function fullexportspecial()
{
    global $tbl_session, $tbl_session_course, $export;
    $FileZip = create_zip();
    $to_group_id = 0;
Severity: Minor
Found in public/main/admin/special_exports.php by phpmd

CamelCaseVariableName

Since: 0.2

It is 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

function fullexportspecial()
{
    global $tbl_session, $tbl_session_course, $export;
    $FileZip = create_zip();
    $to_group_id = 0;
Severity: Minor
Found in public/main/admin/special_exports.php by phpmd

CamelCaseVariableName

Since: 0.2

It is 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_property is not named in camelCase.
Open

function fullexportspecial()
{
    global $tbl_session, $tbl_session_course, $export;
    $FileZip = create_zip();
    $to_group_id = 0;
Severity: Minor
Found in public/main/admin/special_exports.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $query_session is not named in camelCase.
Open

function fullexportspecial()
{
    global $tbl_session, $tbl_session_course, $export;
    $FileZip = create_zip();
    $to_group_id = 0;
Severity: Minor
Found in public/main/admin/special_exports.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $session_id is not named in camelCase.
Open

function fullexportspecial()
{
    global $tbl_session, $tbl_session_course, $export;
    $FileZip = create_zip();
    $to_group_id = 0;
Severity: Minor
Found in public/main/admin/special_exports.php by phpmd

CamelCaseVariableName

Since: 0.2

It is 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

function fullexportspecial()
{
    global $tbl_session, $tbl_session_course, $export;
    $FileZip = create_zip();
    $to_group_id = 0;
Severity: Minor
Found in public/main/admin/special_exports.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $remove_dir is not named in camelCase.
Open

function create_zip()
{
    $path = '';
    if (empty($path)) {
        $path = '/';
Severity: Minor
Found in public/main/admin/special_exports.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $sys_archive_path is not named in camelCase.
Open

function create_zip()
{
    $path = '';
    if (empty($path)) {
        $path = '/';
Severity: Minor
Found in public/main/admin/special_exports.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $temp_zip_dir is not named in camelCase.
Open

function create_zip()
{
    $path = '';
    if (empty($path)) {
        $path = '/';
Severity: Minor
Found in public/main/admin/special_exports.php by phpmd

CamelCaseVariableName

Since: 0.2

It is 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_session_course is not named in camelCase.
Open

function fullexportspecial()
{
    global $tbl_session, $tbl_session_course, $export;
    $FileZip = create_zip();
    $to_group_id = 0;
Severity: Minor
Found in public/main/admin/special_exports.php by phpmd

CamelCaseVariableName

Since: 0.2

It is 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_session_doc is not named in camelCase.
Open

function fullexportspecial()
{
    global $tbl_session, $tbl_session_course, $export;
    $FileZip = create_zip();
    $to_group_id = 0;
Severity: Minor
Found in public/main/admin/special_exports.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $FileZip is not named in camelCase.
Open

function fullexportspecial()
{
    global $tbl_session, $tbl_session_course, $export;
    $FileZip = create_zip();
    $to_group_id = 0;
Severity: Minor
Found in public/main/admin/special_exports.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

There are no issues that match your filters.

Category
Status