chamilo/chamilo-lms

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

Summary

Maintainability
A
0 mins
Test Coverage

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

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

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

    case 'cmi.suspend_data'            : suspend_data = val;   break;
Severity: Minor
Found in public/main/lp/aicc_api.php by phpcodesniffer

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

            $who = addslashes(api_get_person_name($_user['firstName'], $_user['lastName']));
Severity: Minor
Found in public/main/lp/aicc_api.php by phpcodesniffer

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

    case 'cmi.core.lesson_status'    :
Severity: Minor
Found in public/main/lp/aicc_api.php by phpcodesniffer

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

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

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

?>var scorm_logs=<?php echo empty($oLP->scorm_debug) ? '0' : '3'; ?>; //debug log level for SCORM. 0 = none, 1=light, 2=a lot, 3=all - displays logs in log frame
Severity: Minor
Found in public/main/lp/aicc_api.php by phpcodesniffer

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

    $who = addslashes(api_get_person_name($_user['firstName'], $_user['lastName']));
Severity: Minor
Found in public/main/lp/aicc_api.php by phpcodesniffer

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

    case 'cmi.core.session_time'    : session_time = val;    break;
Severity: Minor
Found in public/main/lp/aicc_api.php by phpcodesniffer

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

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

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

    case 'cmi.score.scaled'            : score = val ;            break; //1.3
Severity: Minor
Found in public/main/lp/aicc_api.php by phpcodesniffer

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

    case 'cmi.core.score.max'        : max = val;            break;
Severity: Minor
Found in public/main/lp/aicc_api.php by phpcodesniffer

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

    case 'cmi.core.score.min'        : min = val;            break;
Severity: Minor
Found in public/main/lp/aicc_api.php by phpcodesniffer

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

    $who = addslashes(api_get_person_name($_user['firstName'], $_user['lastName']));
Severity: Minor
Found in public/main/lp/aicc_api.php by phpcodesniffer

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

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

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

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

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

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

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

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

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

 * @param    string        This parameter can be a string specifying the next
Severity: Minor
Found in public/main/lp/aicc_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/aicc_api.php by phpcodesniffer

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

    case 'cmi.success_status'        : success_status = val; break; //1.3
Severity: Minor
Found in public/main/lp/aicc_api.php by phpcodesniffer

Closing brace indented incorrectly; expected 4 spaces, found 0
Open

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

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

    <?php if ($autocomplete_when_80pct) {
Severity: Minor
Found in public/main/lp/aicc_api.php by phpcodesniffer

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

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

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

var lms_progress_bar_mode = '<?php echo $oLP->progress_bar_mode; ?>';
Severity: Minor
Found in public/main/lp/aicc_api.php by phpcodesniffer

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

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

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

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

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

$autocomplete_when_80pct = 0;
Severity: Minor
Found in public/main/lp/aicc_api.php by phpcodesniffer

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

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

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

    case 'cmi.core.score.raw'        : score= val ;            break;
Severity: Minor
Found in public/main/lp/aicc_api.php by phpcodesniffer

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

    case 'cmi.completion_status'    : lesson_status = val;    break; //1.3
Severity: Minor
Found in public/main/lp/aicc_api.php by phpcodesniffer

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

var lms_user_id = '<?php echo $_user['user_id']; ?>';
Severity: Minor
Found in public/main/lp/aicc_api.php by phpcodesniffer

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

            $who = addslashes(api_get_person_name($_user['firstName'], $_user['lastName']));
Severity: Minor
Found in public/main/lp/aicc_api.php by phpcodesniffer

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

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

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

            result='<?php echo $_user['user_id']; ?>';
Severity: Minor
Found in public/main/lp/aicc_api.php by phpcodesniffer

Closing brace indented incorrectly; expected 8 spaces, found 10
Open

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

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

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

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

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

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

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

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

        result='<?php echo $_user['user_id']; ?>';
Severity: Minor
Found in public/main/lp/aicc_api.php by phpcodesniffer

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

          ?>    break;
Severity: Minor
Found in public/main/lp/aicc_api.php by phpcodesniffer

Spaces must be used for alignment; 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/aicc_api.php by phpcodesniffer

Line indented incorrectly; expected 0 spaces, found 10
Open

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

Closing brace indented incorrectly; expected 8 spaces, found 10
Open

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

Line indented incorrectly; expected 12 spaces, found 10
Open

          <?php
Severity: Minor
Found in public/main/lp/aicc_api.php by phpcodesniffer

Line indented incorrectly; expected 16 spaces, found 14
Open

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

Line indented incorrectly; expected 0 spaces, found 4
Open

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

Line indented incorrectly; expected 12 spaces, found 10
Open

          ?>    break;
Severity: Minor
Found in public/main/lp/aicc_api.php by phpcodesniffer

Closing brace indented incorrectly; expected 4 spaces, found 0
Open

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

There are no issues that match your filters.

Category
Status