chamilo/chamilo-lms

View on GitHub
public/main/lp/scorm_api.php

Summary

Maintainability
A
0 mins
Test Coverage

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

    if (1 == $oLP->force_commit) {
Severity: Minor
Found in public/main/lp/scorm_api.php by phpcodesniffer

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

var scorm_logs=<?php echo (empty($oLP->scorm_debug) || (!api_is_course_admin() && !api_is_platform_admin())) ? '0' : '3'; ?>;
Severity: Minor
Found in public/main/lp/scorm_api.php by phpcodesniffer

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

$use_anonymous = true;
Severity: Minor
Found in public/main/lp/scorm_api.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

 * @param    integer Priority (0 for top priority, 3 for lowest)
Severity: Minor
Found in public/main/lp/scorm_api.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

 * @param   string    used in addEventListener
Severity: Minor
Found in public/main/lp/scorm_api.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

 * @param    string    Message to log
Severity: Minor
Found in public/main/lp/scorm_api.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

 * @param    integer Priority (0 for top priority, 3 for lowest)
Severity: Minor
Found in public/main/lp/scorm_api.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

 * @param    integer    Number of completed items
Severity: Minor
Found in public/main/lp/scorm_api.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

 * @param   string    Function name (the event handler)
Severity: Minor
Found in public/main/lp/scorm_api.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

 * @param    integer    Item id to update
Severity: Minor
Found in public/main/lp/scorm_api.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

 * @param    string  Display mode (absolute 'abs' or percentage '%').Defaults to %
Severity: Minor
Found in public/main/lp/scorm_api.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

 * @param    integer    Number of completed items
Severity: Minor
Found in public/main/lp/scorm_api.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

 * @param    string  Display mode (absolute 'abs' or percentage '%').Defaults to %
Severity: Minor
Found in public/main/lp/scorm_api.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

 *                        item (like 'next', 'previous', 'first' or 'last') or the id to the next item
Severity: Minor
Found in public/main/lp/scorm_api.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

 * @param    integer    Number of items in total
Severity: Minor
Found in public/main/lp/scorm_api.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

 * @param    integer    Number of items in total
Severity: Minor
Found in public/main/lp/scorm_api.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

 * @param   string    Event type (load, unload, click, keyDown, ...)
Severity: Minor
Found in public/main/lp/scorm_api.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

 * @param    string    Message to log
Severity: Minor
Found in public/main/lp/scorm_api.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

 * @param    integer        Chamilo ID for the current item
Severity: Minor
Found in public/main/lp/scorm_api.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

        olms.G_LastError         = G_NotInitialized;
Severity: Minor
Found in public/main/lp/scorm_api.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

 * @param    string    Action to be taken
Severity: Minor
Found in public/main/lp/scorm_api.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

 * @param    string        This parameter can be a string specifying the next
Severity: Minor
Found in public/main/lp/scorm_api.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

 * @param    element    Element that needs an event attached
Severity: Minor
Found in public/main/lp/scorm_api.php by phpcodesniffer

Line indented incorrectly; expected 0 spaces, found 4
Open

    } else {
Severity: Minor
Found in public/main/lp/scorm_api.php by phpcodesniffer

Line indented incorrectly; expected 0 spaces, found 4
Open

    } ?>
Severity: Minor
Found in public/main/lp/scorm_api.php by phpcodesniffer

There are no issues that match your filters.

Category
Status