The function initializeItem() has an NPath complexity of 3072. The configured NPath complexity threshold is 200. Open
function initializeItem($lpId, $user_id, $view_id, $next_item, $startTime = 0)
{
$debug = 0;
$return = '';
if ($debug) {
- Read upRead up
- Exclude checks
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 '58', column '22'). Open
$mylpi = new learnpathItem($next_item);
- Read upRead up
- Exclude checks
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 initializeItem uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them. Open
} else {
if ($debug) {
error_log('In initialize_item - generating new item object '.$next_item, 0);
}
$mylpi = new learnpathItem($next_item);
- Read upRead up
- Exclude checks
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 $user_id is not named in camelCase. Open
function initializeItem($lpId, $user_id, $view_id, $next_item, $startTime = 0)
{
$debug = 0;
$return = '';
if ($debug) {
- Read upRead up
- Exclude checks
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 $next_item is not named in camelCase. Open
function initializeItem($lpId, $user_id, $view_id, $next_item, $startTime = 0)
{
$debug = 0;
$return = '';
if ($debug) {
- Read upRead up
- Exclude checks
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 $view_id is not named in camelCase. Open
function initializeItem($lpId, $user_id, $view_id, $next_item, $startTime = 0)
{
$debug = 0;
$return = '';
if ($debug) {
- Read upRead up
- Exclude checks
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 "next_item" is not in valid camel caps format Open
error_log('In initialize_item('.$lpId.','.$user_id.','.$view_id.','.$next_item.')');
- Exclude checks
Missing parameter name Open
* @param int View ID
- Exclude checks
Missing parameter name Open
* @param int user ID
- Exclude checks
Missing parameter name Open
* @param int LP ID
- Exclude checks
Missing parameter name Open
* @param int Current item ID
- Exclude checks
Consider putting global function "initializeItem" in a static class Open
function initializeItem($lpId, $user_id, $view_id, $next_item, $startTime = 0)
- Exclude checks
Variable "use_anonymous" is not in valid camel caps format Open
$use_anonymous = true;
- Exclude checks
Missing parameter name Open
* @param int New item ID
- Exclude checks
Variable "user_id" is not in valid camel caps format Open
function initializeItem($lpId, $user_id, $view_id, $next_item, $startTime = 0)
- Exclude checks
Variable "view_id" is not in valid camel caps format Open
function initializeItem($lpId, $user_id, $view_id, $next_item, $startTime = 0)
- Exclude checks
Variable "view_id" is not in valid camel caps format Open
error_log('In initialize_item('.$lpId.','.$user_id.','.$view_id.','.$next_item.')');
- Exclude checks
Variable "next_item" is not in valid camel caps format Open
function initializeItem($lpId, $user_id, $view_id, $next_item, $startTime = 0)
- Exclude checks
Variable "user_id" is not in valid camel caps format Open
error_log('In initialize_item('.$lpId.','.$user_id.','.$view_id.','.$next_item.')');
- Exclude checks
Variable "user_id" is not in valid camel caps format Open
$mylp = learnpath::getLpFromSession(api_get_course_int_id(), $lpId, $user_id);
- Exclude checks
Variable "mylesson_status" is not in valid camel caps format Open
$mylesson_status = $mylpi->get_status();
- Exclude checks
Variable "mymax_time_allowed" is not in valid camel caps format Open
$mymax_time_allowed = $mylpi->get_max_time_allowed();
- Exclude checks
Variable "mylp_iv_id" is not in valid camel caps format Open
WHERE lp_iv_id = $mylp_iv_id AND c_id = $course_id
- Exclude checks
Variable "mymastery_score" is not in valid camel caps format Open
"olms.mastery_score = '".$mymastery_score."';".
- Exclude checks
Variable "mymax_time_allowed" is not in valid camel caps format Open
"olms.max_time_allowed = '".$mymax_time_allowed."';".
- Exclude checks
Variable "user_id" is not in valid camel caps format Open
"olms.lms_user_id=".$user_id.";".
- Exclude checks
Variable "next_item" is not in valid camel caps format Open
$mylpi = $mylp->items[$next_item];
- Exclude checks
Variable "mysuspend_data" is not in valid camel caps format Open
$mysuspend_data = $mylpi->get_suspend_data();
- Exclude checks
Variable "mylesson_status" is not in valid camel caps format Open
"olms.lesson_status='".$mylesson_status."';".
- Exclude checks
Variable "mylaunch_data" is not in valid camel caps format Open
"olms.lms_item_launch_data = '".$mylaunch_data."';".
- Exclude checks
Variable "next_item" is not in valid camel caps format Open
error_log('In initialize_item - recovering existing item object '.$next_item, 0);
- Exclude checks
Variable "next_item" is not in valid camel caps format Open
error_log('In initialize_item - generating new item object '.$next_item, 0);
- Exclude checks
Variable "mylp_iv_id" is not in valid camel caps format Open
if (!empty($mylp_iv_id)) {
- Exclude checks
Variable "mylaunch_data" is not in valid camel caps format Open
$mylaunch_data = $mylpi->get_launch_data();
- Exclude checks
Variable "myinteractions_count" is not in valid camel caps format Open
$myinteractions_count = $mylpi->get_interactions_count();
- Exclude checks
Variable "myinteractions_count" is not in valid camel caps format Open
"olms.lms_item_objectives_count = '".$myinteractions_count."';".
- Exclude checks
Variable "next_item" is not in valid camel caps format Open
$mylp->set_current_item($next_item);
- Exclude checks
Variable "mytotal_time" is not in valid camel caps format Open
"olms.total_time = '".$mytotal_time."';".
- Exclude checks
Variable "mycore_exit" is not in valid camel caps format Open
"olms.lms_item_core_exit = '".$mycore_exit."';".
- Exclude checks
Variable "next_item" is not in valid camel caps format Open
$mylpi = new learnpathItem($next_item);
- Exclude checks
Variable "lp_view_session_id" is not in valid camel caps format Open
error_log("mylp->lp_view_session_id: ".$mylp->lp_view_session_id);
- Exclude checks
Variable "view_id" is not in valid camel caps format Open
$mylpi->set_lp_view($view_id);
- Exclude checks
Variable "mylaunch_data" is not in valid camel caps format Open
"olms.launch_data = '".$mylaunch_data."';".
- Exclude checks
Variable "course_id" is not in valid camel caps format Open
$course_id = api_get_course_int_id();
- Exclude checks
Variable "mylesson_location" is not in valid camel caps format Open
"olms.lesson_location='".$mylesson_location."';".
- Exclude checks
Variable "course_id" is not in valid camel caps format Open
WHERE lp_iv_id = $mylp_iv_id AND c_id = $course_id
- Exclude checks
Variable "next_item" is not in valid camel caps format Open
"olms.lms_item_id=".$next_item.";".
- Exclude checks
Variable "mylesson_mode" is not in valid camel caps format Open
"olms.lms_item_lesson_mode = '".$mylesson_mode."';".
- Exclude checks
Variable "mylesson_location" is not in valid camel caps format Open
$mylesson_location = $mylpi->get_lesson_location();
- Exclude checks
Variable "mysession_time" is not in valid camel caps format Open
"olms.session_time='".$mysession_time."';".
- Exclude checks
Variable "mylesson_mode" is not in valid camel caps format Open
$mylesson_mode = $mylpi->get_lesson_mode();
- Exclude checks
Variable "mycore_exit" is not in valid camel caps format Open
$mycore_exit = $mylpi->get_core_exit();
- Exclude checks
Variable "view_id" is not in valid camel caps format Open
"olms.lms_view_id=".$view_id.";".
- Exclude checks
Variable "myinteractions_count" is not in valid camel caps format Open
"olms.lms_item_interactions_count = '".$myinteractions_count."';".
- Exclude checks
Variable "mylp_iv_id" is not in valid camel caps format Open
$mylp_iv_id = $mylpi->db_item_view_id;
- Exclude checks
Variable "next_item" is not in valid camel caps format Open
error_log('In initialize_item() - new item is '.$next_item);
- Exclude checks
Variable "mytotal_time" is not in valid camel caps format Open
$mytotal_time = $mylpi->get_scorm_time('js', null, true);
- Exclude checks
Variable "mymastery_score" is not in valid camel caps format Open
$mymastery_score = $mylpi->get_mastery_score();
- Exclude checks
Variable "mylaunch_data" is not in valid camel caps format Open
$mylaunch_data = $mylpi->get_launch_data();
- Exclude checks
Variable "db_item_view_id" is not in valid camel caps format Open
$mylp_iv_id = $mylpi->db_item_view_id;
- Exclude checks
Variable "next_item" is not in valid camel caps format Open
if (is_object($mylp->items[$next_item])) {
- Exclude checks
Variable "mysession_time" is not in valid camel caps format Open
$mysession_time = $mylpi->get_total_time();
- Exclude checks
Variable "mysuspend_data" is not in valid camel caps format Open
"olms.suspend_data='".$mysuspend_data."';".
- Exclude checks
Variable "next_item" is not in valid camel caps format Open
"olms.next_item=".$next_item.";".// This one is very important to replace possible literal strings.
- Exclude checks
The variable $view_id is not named in camelCase. Open
function initializeItem($lpId, $user_id, $view_id, $next_item, $startTime = 0)
{
$debug = 0;
$return = '';
if ($debug) {
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $mylesson_location is not named in camelCase. Open
function initializeItem($lpId, $user_id, $view_id, $next_item, $startTime = 0)
{
$debug = 0;
$return = '';
if ($debug) {
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is 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
function initializeItem($lpId, $user_id, $view_id, $next_item, $startTime = 0)
{
$debug = 0;
$return = '';
if ($debug) {
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is 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
function initializeItem($lpId, $user_id, $view_id, $next_item, $startTime = 0)
{
$debug = 0;
$return = '';
if ($debug) {
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $view_id is not named in camelCase. Open
function initializeItem($lpId, $user_id, $view_id, $next_item, $startTime = 0)
{
$debug = 0;
$return = '';
if ($debug) {
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $mysuspend_data is not named in camelCase. Open
function initializeItem($lpId, $user_id, $view_id, $next_item, $startTime = 0)
{
$debug = 0;
$return = '';
if ($debug) {
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $mymax_time_allowed is not named in camelCase. Open
function initializeItem($lpId, $user_id, $view_id, $next_item, $startTime = 0)
{
$debug = 0;
$return = '';
if ($debug) {
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $mysession_time is not named in camelCase. Open
function initializeItem($lpId, $user_id, $view_id, $next_item, $startTime = 0)
{
$debug = 0;
$return = '';
if ($debug) {
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $mymastery_score is not named in camelCase. Open
function initializeItem($lpId, $user_id, $view_id, $next_item, $startTime = 0)
{
$debug = 0;
$return = '';
if ($debug) {
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $mytotal_time is not named in camelCase. Open
function initializeItem($lpId, $user_id, $view_id, $next_item, $startTime = 0)
{
$debug = 0;
$return = '';
if ($debug) {
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $next_item is not named in camelCase. Open
function initializeItem($lpId, $user_id, $view_id, $next_item, $startTime = 0)
{
$debug = 0;
$return = '';
if ($debug) {
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $mylesson_mode is not named in camelCase. Open
function initializeItem($lpId, $user_id, $view_id, $next_item, $startTime = 0)
{
$debug = 0;
$return = '';
if ($debug) {
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $mylaunch_data is not named in camelCase. Open
function initializeItem($lpId, $user_id, $view_id, $next_item, $startTime = 0)
{
$debug = 0;
$return = '';
if ($debug) {
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is 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
function initializeItem($lpId, $user_id, $view_id, $next_item, $startTime = 0)
{
$debug = 0;
$return = '';
if ($debug) {
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $mylp_iv_id is not named in camelCase. Open
function initializeItem($lpId, $user_id, $view_id, $next_item, $startTime = 0)
{
$debug = 0;
$return = '';
if ($debug) {
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $mylaunch_data is not named in camelCase. Open
function initializeItem($lpId, $user_id, $view_id, $next_item, $startTime = 0)
{
$debug = 0;
$return = '';
if ($debug) {
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $view_id is not named in camelCase. Open
function initializeItem($lpId, $user_id, $view_id, $next_item, $startTime = 0)
{
$debug = 0;
$return = '';
if ($debug) {
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is 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 initializeItem($lpId, $user_id, $view_id, $next_item, $startTime = 0)
{
$debug = 0;
$return = '';
if ($debug) {
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $mysuspend_data is not named in camelCase. Open
function initializeItem($lpId, $user_id, $view_id, $next_item, $startTime = 0)
{
$debug = 0;
$return = '';
if ($debug) {
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $next_item is not named in camelCase. Open
function initializeItem($lpId, $user_id, $view_id, $next_item, $startTime = 0)
{
$debug = 0;
$return = '';
if ($debug) {
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $next_item is not named in camelCase. Open
function initializeItem($lpId, $user_id, $view_id, $next_item, $startTime = 0)
{
$debug = 0;
$return = '';
if ($debug) {
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $mylesson_location is not named in camelCase. Open
function initializeItem($lpId, $user_id, $view_id, $next_item, $startTime = 0)
{
$debug = 0;
$return = '';
if ($debug) {
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $mymax_time_allowed is not named in camelCase. Open
function initializeItem($lpId, $user_id, $view_id, $next_item, $startTime = 0)
{
$debug = 0;
$return = '';
if ($debug) {
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $myinteractions_count is not named in camelCase. Open
function initializeItem($lpId, $user_id, $view_id, $next_item, $startTime = 0)
{
$debug = 0;
$return = '';
if ($debug) {
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $next_item is not named in camelCase. Open
function initializeItem($lpId, $user_id, $view_id, $next_item, $startTime = 0)
{
$debug = 0;
$return = '';
if ($debug) {
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $myinteractions_count is not named in camelCase. Open
function initializeItem($lpId, $user_id, $view_id, $next_item, $startTime = 0)
{
$debug = 0;
$return = '';
if ($debug) {
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $next_item is not named in camelCase. Open
function initializeItem($lpId, $user_id, $view_id, $next_item, $startTime = 0)
{
$debug = 0;
$return = '';
if ($debug) {
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $mylp_iv_id is not named in camelCase. Open
function initializeItem($lpId, $user_id, $view_id, $next_item, $startTime = 0)
{
$debug = 0;
$return = '';
if ($debug) {
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $mycore_exit is not named in camelCase. Open
function initializeItem($lpId, $user_id, $view_id, $next_item, $startTime = 0)
{
$debug = 0;
$return = '';
if ($debug) {
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $mylaunch_data is not named in camelCase. Open
function initializeItem($lpId, $user_id, $view_id, $next_item, $startTime = 0)
{
$debug = 0;
$return = '';
if ($debug) {
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $mysession_time is not named in camelCase. Open
function initializeItem($lpId, $user_id, $view_id, $next_item, $startTime = 0)
{
$debug = 0;
$return = '';
if ($debug) {
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $mylaunch_data is not named in camelCase. Open
function initializeItem($lpId, $user_id, $view_id, $next_item, $startTime = 0)
{
$debug = 0;
$return = '';
if ($debug) {
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $next_item is not named in camelCase. Open
function initializeItem($lpId, $user_id, $view_id, $next_item, $startTime = 0)
{
$debug = 0;
$return = '';
if ($debug) {
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $next_item is not named in camelCase. Open
function initializeItem($lpId, $user_id, $view_id, $next_item, $startTime = 0)
{
$debug = 0;
$return = '';
if ($debug) {
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $mylesson_status is not named in camelCase. Open
function initializeItem($lpId, $user_id, $view_id, $next_item, $startTime = 0)
{
$debug = 0;
$return = '';
if ($debug) {
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $mymastery_score is not named in camelCase. Open
function initializeItem($lpId, $user_id, $view_id, $next_item, $startTime = 0)
{
$debug = 0;
$return = '';
if ($debug) {
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $mylesson_status is not named in camelCase. Open
function initializeItem($lpId, $user_id, $view_id, $next_item, $startTime = 0)
{
$debug = 0;
$return = '';
if ($debug) {
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $mycore_exit is not named in camelCase. Open
function initializeItem($lpId, $user_id, $view_id, $next_item, $startTime = 0)
{
$debug = 0;
$return = '';
if ($debug) {
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $next_item is not named in camelCase. Open
function initializeItem($lpId, $user_id, $view_id, $next_item, $startTime = 0)
{
$debug = 0;
$return = '';
if ($debug) {
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $next_item is not named in camelCase. Open
function initializeItem($lpId, $user_id, $view_id, $next_item, $startTime = 0)
{
$debug = 0;
$return = '';
if ($debug) {
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $next_item is not named in camelCase. Open
function initializeItem($lpId, $user_id, $view_id, $next_item, $startTime = 0)
{
$debug = 0;
$return = '';
if ($debug) {
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $mylp_iv_id is not named in camelCase. Open
function initializeItem($lpId, $user_id, $view_id, $next_item, $startTime = 0)
{
$debug = 0;
$return = '';
if ($debug) {
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is 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 initializeItem($lpId, $user_id, $view_id, $next_item, $startTime = 0)
{
$debug = 0;
$return = '';
if ($debug) {
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $mytotal_time is not named in camelCase. Open
function initializeItem($lpId, $user_id, $view_id, $next_item, $startTime = 0)
{
$debug = 0;
$return = '';
if ($debug) {
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $myinteractions_count is not named in camelCase. Open
function initializeItem($lpId, $user_id, $view_id, $next_item, $startTime = 0)
{
$debug = 0;
$return = '';
if ($debug) {
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $mylesson_mode is not named in camelCase. Open
function initializeItem($lpId, $user_id, $view_id, $next_item, $startTime = 0)
{
$debug = 0;
$return = '';
if ($debug) {
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}