Avoid using undefined variables such as '$score' which will lead to PHP notices. Open
$score[$key] = $row['score'];
- Read upRead up
- Exclude checks
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 assigning values to variables in if clauses and the like (line '128', column '17'). Open
private function get_information($course_id, $lp_id, $has_document_id = true)
{
$course_information = api_get_course_info($course_id);
$course_id = $course_information['real_id'];
$course_path = $course_information['path'];
- Read upRead up
- Exclude checks
IfStatementAssignment
Since: 2.7.0
Assignments in if clauses and the like are considered a code smell. Assignments in PHP return the right operand as their result. In many cases, this is an expected behavior, but can lead to many difficult to spot bugs, especially when the right operand could result in zero, null or an empty string and the like.
Example
class Foo
{
public function bar($flag)
{
if ($foo = 'bar') { // possible typo
// ...
}
if ($baz = 0) { // always false
// ...
}
}
}
Source http://phpmd.org/rules/cleancode.html#ifstatementassignment
The method process uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them. Open
} else { // course not visible for user
if ($search_show_unlinked_results) {
$result['url'] = '';
$results[] = $result;
}
- 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 method get_information uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them. Open
} else {
$sql = "SELECT $lpi_table.id, $lp_table.name, $lp_table.author
FROM $lp_table, $lpi_table
WHERE
$lpi_table.c_id = $course_id AND
- 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 method get_information uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them. Open
} else {
return [];
}
- 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
Avoid unused local variables such as '$path'. Open
$path = '';
- Read upRead up
- Exclude checks
UnusedLocalVariable
Since: 0.2
Detects when a local variable is declared and/or assigned, but not used.
Example
class Foo {
public function doSomething()
{
$i = 5; // Unused
}
}
Source https://phpmd.org/rules/unusedcode.html#unusedlocalvariable
The class learnpath_processor is not named in CamelCase. Open
class learnpath_processor extends search_processor
{
public $learnpaths = [];
public function __construct($rows)
- Read upRead up
- Exclude checks
CamelCaseClassName
Since: 0.2
It is considered best practice to use the CamelCase notation to name classes.
Example
class class_name {
}
Source
The parameter $lp_id is not named in camelCase. Open
private function get_information($course_id, $lp_id, $has_document_id = true)
{
$course_information = api_get_course_info($course_id);
$course_id = $course_information['real_id'];
$course_path = $course_information['path'];
- 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 $course_id is not named in camelCase. Open
private function get_information($course_id, $lp_id, $has_document_id = true)
{
$course_information = api_get_course_info($course_id);
$course_id = $course_information['real_id'];
$course_path = $course_information['path'];
- 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 $has_document_id is not named in camelCase. Open
private function get_information($course_id, $lp_id, $has_document_id = true)
{
$course_information = api_get_course_info($course_id);
$course_id = $course_information['real_id'];
$course_path = $course_information['path'];
- 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 "document_id" is not in valid camel caps format Open
$document_id = $row_val['xapian_data'][SE_DATA]['document_id'];
- Exclude checks
Variable "lp_id" is not in valid camel caps format Open
$this->learnpaths[$courseid][$lp_id]['total_score'] += $row_val['score'];
- Exclude checks
Variable "document_id" is not in valid camel caps format Open
$this->learnpaths[$courseid][$lp_id]['has_document_id'] = is_numeric($document_id);
- Exclude checks
Variable "row_val" is not in valid camel caps format Open
'score' => $row_val['score'],
- Exclude checks
Variable "row_val" is not in valid camel caps format Open
$lp_item = $row_val['xapian_data'][SE_DATA]['lp_item'];
- Exclude checks
Variable "row_val" is not in valid camel caps format Open
$lp_id = $row_val['xapian_data'][SE_DATA]['lp_id'];
- Exclude checks
Variable "row_val" is not in valid camel caps format Open
$this->learnpaths[$courseid][$lp_id]['total_score'] += $row_val['score'];
- Exclude checks
Variable "row_val" is not in valid camel caps format Open
$document_id = $row_val['xapian_data'][SE_DATA]['document_id'];
- Exclude checks
Variable "lp_item" is not in valid camel caps format Open
'lp_item' => $lp_item,
- Exclude checks
Variable "row_id" is not in valid camel caps format Open
foreach ($rows as $row_id => $row_val) {
- Exclude checks
Variable "lp_item" is not in valid camel caps format Open
$lp_item = $row_val['xapian_data'][SE_DATA]['lp_item'];
- Exclude checks
Variable "row_val" is not in valid camel caps format Open
$courseid = $row_val['courseid'];
- Exclude checks
Variable "row_id" is not in valid camel caps format Open
'row_id' => $row_id,
- Exclude checks
Missing function doc comment Open
public function __construct($rows)
- Exclude checks
Variable "lp_id" is not in valid camel caps format Open
$this->learnpaths[$courseid][$lp_id]['has_document_id'] = is_numeric($document_id);
- Exclude checks
Variable "row_val" is not in valid camel caps format Open
foreach ($rows as $row_id => $row_val) {
- Exclude checks
Variable "search_show_unlinked_results" is not in valid camel caps format Open
$search_show_unlinked_results = 'true' == api_get_setting('search_show_unlinked_results');
- Exclude checks
Variable "lp_id" is not in valid camel caps format Open
$this->learnpaths[$courseid][$lp_id][] = $item;
- Exclude checks
Variable "lp_id" is not in valid camel caps format Open
$lp_id = $row_val['xapian_data'][SE_DATA]['lp_id'];
- Exclude checks
Variable "lp_table" is not in valid camel caps format Open
$sql = "SELECT $lpi_table.id, $lp_table.name, $lp_table.author, $doc_table.path
- Exclude checks
Variable "lpi_table" is not in valid camel caps format Open
WHERE $lpi_table.c_id = $course_id AND
- Exclude checks
Variable "course_id" is not in valid camel caps format Open
$doc_table.c_id = $course_id AND
- Exclude checks
Variable "course_visible_for_user" is not in valid camel caps format Open
if ($course_visible_for_user) {
- Exclude checks
Variable "lp_table" is not in valid camel caps format Open
FROM $lp_table, $lpi_table
- Exclude checks
Variable "lpi_table" is not in valid camel caps format Open
$lpi_table.c_id = $course_id AND
- Exclude checks
Variable "lp_id" is not in valid camel caps format Open
list($thumbnail, $image, $name, $author) = $this->get_information($courseid, $lp_id, $lp['has_document_id']);
- Exclude checks
Variable "has_document_id" is not in valid camel caps format Open
private function get_information($course_id, $lp_id, $has_document_id = true)
- Exclude checks
Variable "lpi_table" is not in valid camel caps format Open
FROM $lp_table, $lpi_table
- Exclude checks
Variable "course_path" is not in valid camel caps format Open
$img_location = api_get_path(WEB_COURSE_PATH).$course_path."/document/";
- Exclude checks
Variable "search_show_unlinked_results" is not in valid camel caps format Open
if ($course_visible_for_user || $search_show_unlinked_results) {
- Exclude checks
Variable "lp_id" is not in valid camel caps format Open
foreach ($learnpaths as $lp_id => $lp) {
- Exclude checks
Variable "lp_id" is not in valid camel caps format Open
$url = sprintf($url, $courseid, $lp_id);
- Exclude checks
Method name "learnpath_processor::get_information" is not in camel caps format Open
private function get_information($course_id, $lp_id, $has_document_id = true)
- Exclude checks
Variable "course_id" is not in valid camel caps format Open
$course_information = api_get_course_info($course_id);
- Exclude checks
Variable "course_id" is not in valid camel caps format Open
$course_id = $course_information['real_id'];
- Exclude checks
Variable "lpi_table" is not in valid camel caps format Open
$lpi_table.display_order = 1 AND
- Exclude checks
Variable "lp_table" is not in valid camel caps format Open
$lp_table.c_id = $course_id AND
- Exclude checks
Variable "thumbnail_path" is not in valid camel caps format Open
$thumbnail_path = str_replace('.png.html', '_thumb.png', $row['path']);
- Exclude checks
Variable "lp_id" is not in valid camel caps format Open
private function get_information($course_id, $lp_id, $has_document_id = true)
- Exclude checks
Variable "course_information" is not in valid camel caps format Open
$course_information = api_get_course_info($course_id);
- Exclude checks
Variable "course_path" is not in valid camel caps format Open
$course_path = $course_information['path'];
- Exclude checks
Variable "course_id" is not in valid camel caps format Open
WHERE $lpi_table.c_id = $course_id AND
- Exclude checks
Variable "lp_table" is not in valid camel caps format Open
$sql = "SELECT $lpi_table.id, $lp_table.name, $lp_table.author
- Exclude checks
Variable "lpi_table" is not in valid camel caps format Open
FROM $lp_table, $lpi_table
- Exclude checks
Variable "dk_result" is not in valid camel caps format Open
$dk_result = Database::query($sql);
- Exclude checks
Variable "course_visible_for_user" is not in valid camel caps format Open
if ($course_visible_for_user || $search_show_unlinked_results) {
- Exclude checks
Variable "search_show_unlinked_results" is not in valid camel caps format Open
if ($search_show_unlinked_results) {
- Exclude checks
Variable "lpi_table" is not in valid camel caps format Open
$lpi_table = Database::get_course_table(TABLE_LP_ITEM);
- Exclude checks
Variable "doc_table" is not in valid camel caps format Open
$doc_table = Database::get_course_table(TABLE_DOCUMENT);
- Exclude checks
Variable "course_id" is not in valid camel caps format Open
INNER JOIN $doc_table ON $lpi_table.path = $doc_table.id AND $lpi_table.c_id = $course_id
- Exclude checks
Variable "lp_table" is not in valid camel caps format Open
$lp_table.id = $lpi_table.lp_id
- Exclude checks
Variable "course_information" is not in valid camel caps format Open
$course_path = $course_information['path'];
- Exclude checks
Variable "img_location" is not in valid camel caps format Open
$img_location = api_get_path(WEB_COURSE_PATH).$course_path."/document/";
- Exclude checks
Variable "lp_table" is not in valid camel caps format Open
$sql = "SELECT $lpi_table.id, $lp_table.name, $lp_table.author, $doc_table.path
- Exclude checks
Variable "img_location" is not in valid camel caps format Open
$thumbnail = $img_location.$thumbnail_path;
- Exclude checks
Variable "doc_table" is not in valid camel caps format Open
$doc_table.c_id = $course_id AND
- Exclude checks
Variable "big_img_path" is not in valid camel caps format Open
$image = $img_location.$big_img_path;
- Exclude checks
Variable "lpi_table" is not in valid camel caps format Open
$lpi_table.lp_id = $lp_id AND
- Exclude checks
Variable "dk_result" is not in valid camel caps format Open
if ($row = Database::fetch_array($dk_result)) {
- Exclude checks
Variable "thumbnail_path" is not in valid camel caps format Open
if (!empty($thumbnail_path)) {
- Exclude checks
Variable "lp_id" is not in valid camel caps format Open
$lp_id
- Exclude checks
Variable "course_information" is not in valid camel caps format Open
if (!empty($course_information)) {
- Exclude checks
Variable "lp_id" is not in valid camel caps format Open
$lp_id = intval($lp_id);
- Exclude checks
Variable "lpi_table" is not in valid camel caps format Open
INNER JOIN $doc_table ON $lpi_table.path = $doc_table.id AND $lpi_table.c_id = $course_id
- Exclude checks
Variable "doc_table" is not in valid camel caps format Open
INNER JOIN $doc_table ON $lpi_table.path = $doc_table.id AND $lpi_table.c_id = $course_id
- Exclude checks
Variable "lp_table" is not in valid camel caps format Open
$sql = "SELECT $lpi_table.id, $lp_table.name, $lp_table.author
- Exclude checks
Variable "lp_id" is not in valid camel caps format Open
$lpi_table.lp_id = $lp_id AND
- Exclude checks
Variable "thumbnail_path" is not in valid camel caps format Open
$thumbnail = $img_location.$thumbnail_path;
- Exclude checks
Variable "course_visible_for_user" is not in valid camel caps format Open
$course_visible_for_user = api_is_course_visible_for_user(null, $courseid);
- Exclude checks
Variable "lpi_table" is not in valid camel caps format Open
$sql = "SELECT $lpi_table.id, $lp_table.name, $lp_table.author, $doc_table.path
- Exclude checks
Variable "doc_table" is not in valid camel caps format Open
INNER JOIN $doc_table ON $lpi_table.path = $doc_table.id AND $lpi_table.c_id = $course_id
- Exclude checks
Variable "lpi_table" is not in valid camel caps format Open
$lp_table.id = $lpi_table.lp_id
- Exclude checks
Variable "lpi_table" is not in valid camel caps format Open
$sql = "SELECT $lpi_table.id, $lp_table.name, $lp_table.author
- Exclude checks
Variable "lp_table" is not in valid camel caps format Open
$lp_table = Database::get_course_table(TABLE_LP_MAIN);
- Exclude checks
Variable "has_document_id" is not in valid camel caps format Open
if ($has_document_id) {
- Exclude checks
Variable "course_information" is not in valid camel caps format Open
$course_id = $course_information['real_id'];
- Exclude checks
Variable "lpi_table" is not in valid camel caps format Open
INNER JOIN $doc_table ON $lpi_table.path = $doc_table.id AND $lpi_table.c_id = $course_id
- Exclude checks
Variable "lp_id" is not in valid camel caps format Open
$lp_id = intval($lp_id);
- Exclude checks
Variable "course_id" is not in valid camel caps format Open
$lpi_table.c_id = $course_id AND
- Exclude checks
Variable "lpi_table" is not in valid camel caps format Open
$lpi_table.lp_id = $lp_id AND
- Exclude checks
Variable "lp_id" is not in valid camel caps format Open
$lpi_table.lp_id = $lp_id AND
- Exclude checks
Variable "lp_table" is not in valid camel caps format Open
FROM $lp_table, $lpi_table
- Exclude checks
Variable "img_location" is not in valid camel caps format Open
$image = $img_location.$big_img_path;
- Exclude checks
Variable "course_id" is not in valid camel caps format Open
$lp_table.c_id = $course_id AND
- Exclude checks
Variable "lpi_table" is not in valid camel caps format Open
$lpi_table.display_order = 1 AND
- Exclude checks
Variable "lp_table" is not in valid camel caps format Open
$lp_table.id = $lpi_table.lp_id
- Exclude checks
Variable "lpi_table" is not in valid camel caps format Open
$lp_table.id = $lpi_table.lp_id
- Exclude checks
Variable "big_img_path" is not in valid camel caps format Open
$big_img_path = str_replace('.png.html', '.png', $row['path']);
- Exclude checks
Variable "course_id" is not in valid camel caps format Open
private function get_information($course_id, $lp_id, $has_document_id = true)
- Exclude checks
Variable "doc_table" is not in valid camel caps format Open
$sql = "SELECT $lpi_table.id, $lp_table.name, $lp_table.author, $doc_table.path
- Exclude checks
Variable "big_img_path" is not in valid camel caps format Open
if (!empty($big_img_path)) {
- Exclude checks
Class name "learnpath_processor" is not in camel caps format Open
class learnpath_processor extends search_processor
- Exclude checks
The variable $row_val is not named in camelCase. Open
public function __construct($rows)
{
$this->rows = $rows;
// group by learning path
foreach ($rows as $row_id => $row_val) {
- 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 $row_val is not named in camelCase. Open
public function __construct($rows)
{
$this->rows = $rows;
// group by learning path
foreach ($rows as $row_id => $row_val) {
- 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 $row_val is not named in camelCase. Open
public function __construct($rows)
{
$this->rows = $rows;
// group by learning path
foreach ($rows as $row_id => $row_val) {
- 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 $lp_table is not named in camelCase. Open
private function get_information($course_id, $lp_id, $has_document_id = true)
{
$course_information = api_get_course_info($course_id);
$course_id = $course_information['real_id'];
$course_path = $course_information['path'];
- 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 $lp_table is not named in camelCase. Open
private function get_information($course_id, $lp_id, $has_document_id = true)
{
$course_information = api_get_course_info($course_id);
$course_id = $course_information['real_id'];
$course_path = $course_information['path'];
- 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 $row_val is not named in camelCase. Open
public function __construct($rows)
{
$this->rows = $rows;
// group by learning path
foreach ($rows as $row_id => $row_val) {
- 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 $search_show_unlinked_results is not named in camelCase. Open
public function process()
{
$results = [];
foreach ($this->learnpaths as $courseid => $learnpaths) {
$search_show_unlinked_results = 'true' == api_get_setting('search_show_unlinked_results');
- 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 $lp_item is not named in camelCase. Open
public function __construct($rows)
{
$this->rows = $rows;
// group by learning path
foreach ($rows as $row_id => $row_val) {
- 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 $row_val is not named in camelCase. Open
public function __construct($rows)
{
$this->rows = $rows;
// group by learning path
foreach ($rows as $row_id => $row_val) {
- 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 $lp_id is not named in camelCase. Open
public function __construct($rows)
{
$this->rows = $rows;
// group by learning path
foreach ($rows as $row_id => $row_val) {
- 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 $lp_id is not named in camelCase. Open
public function process()
{
$results = [];
foreach ($this->learnpaths as $courseid => $learnpaths) {
$search_show_unlinked_results = 'true' == api_get_setting('search_show_unlinked_results');
- 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_visible_for_user is not named in camelCase. Open
public function process()
{
$results = [];
foreach ($this->learnpaths as $courseid => $learnpaths) {
$search_show_unlinked_results = 'true' == api_get_setting('search_show_unlinked_results');
- 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 $document_id is not named in camelCase. Open
public function __construct($rows)
{
$this->rows = $rows;
// group by learning path
foreach ($rows as $row_id => $row_val) {
- 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 $search_show_unlinked_results is not named in camelCase. Open
public function process()
{
$results = [];
foreach ($this->learnpaths as $courseid => $learnpaths) {
$search_show_unlinked_results = 'true' == api_get_setting('search_show_unlinked_results');
- 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_path is not named in camelCase. Open
private function get_information($course_id, $lp_id, $has_document_id = true)
{
$course_information = api_get_course_info($course_id);
$course_id = $course_information['real_id'];
$course_path = $course_information['path'];
- 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 $lp_table is not named in camelCase. Open
private function get_information($course_id, $lp_id, $has_document_id = true)
{
$course_information = api_get_course_info($course_id);
$course_id = $course_information['real_id'];
$course_path = $course_information['path'];
- 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 $lpi_table is not named in camelCase. Open
private function get_information($course_id, $lp_id, $has_document_id = true)
{
$course_information = api_get_course_info($course_id);
$course_id = $course_information['real_id'];
$course_path = $course_information['path'];
- 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 $document_id is not named in camelCase. Open
public function __construct($rows)
{
$this->rows = $rows;
// group by learning path
foreach ($rows as $row_id => $row_val) {
- 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 $lp_item is not named in camelCase. Open
public function __construct($rows)
{
$this->rows = $rows;
// group by learning path
foreach ($rows as $row_id => $row_val) {
- 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 $search_show_unlinked_results is not named in camelCase. Open
public function process()
{
$results = [];
foreach ($this->learnpaths as $courseid => $learnpaths) {
$search_show_unlinked_results = 'true' == api_get_setting('search_show_unlinked_results');
- 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 $lp_id is not named in camelCase. Open
private function get_information($course_id, $lp_id, $has_document_id = true)
{
$course_information = api_get_course_info($course_id);
$course_id = $course_information['real_id'];
$course_path = $course_information['path'];
- 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
private function get_information($course_id, $lp_id, $has_document_id = true)
{
$course_information = api_get_course_info($course_id);
$course_id = $course_information['real_id'];
$course_path = $course_information['path'];
- 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 $row_val is not named in camelCase. Open
public function __construct($rows)
{
$this->rows = $rows;
// group by learning path
foreach ($rows as $row_id => $row_val) {
- 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
private function get_information($course_id, $lp_id, $has_document_id = true)
{
$course_information = api_get_course_info($course_id);
$course_id = $course_information['real_id'];
$course_path = $course_information['path'];
- 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 $has_document_id is not named in camelCase. Open
private function get_information($course_id, $lp_id, $has_document_id = true)
{
$course_information = api_get_course_info($course_id);
$course_id = $course_information['real_id'];
$course_path = $course_information['path'];
- 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 $doc_table is not named in camelCase. Open
private function get_information($course_id, $lp_id, $has_document_id = true)
{
$course_information = api_get_course_info($course_id);
$course_id = $course_information['real_id'];
$course_path = $course_information['path'];
- 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 $lpi_table is not named in camelCase. Open
private function get_information($course_id, $lp_id, $has_document_id = true)
{
$course_information = api_get_course_info($course_id);
$course_id = $course_information['real_id'];
$course_path = $course_information['path'];
- 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 $dk_result is not named in camelCase. Open
private function get_information($course_id, $lp_id, $has_document_id = true)
{
$course_information = api_get_course_info($course_id);
$course_id = $course_information['real_id'];
$course_path = $course_information['path'];
- 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 $thumbnail_path is not named in camelCase. Open
private function get_information($course_id, $lp_id, $has_document_id = true)
{
$course_information = api_get_course_info($course_id);
$course_id = $course_information['real_id'];
$course_path = $course_information['path'];
- 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 $thumbnail_path is not named in camelCase. Open
private function get_information($course_id, $lp_id, $has_document_id = true)
{
$course_information = api_get_course_info($course_id);
$course_id = $course_information['real_id'];
$course_path = $course_information['path'];
- 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 $row_id is not named in camelCase. Open
public function __construct($rows)
{
$this->rows = $rows;
// group by learning path
foreach ($rows as $row_id => $row_val) {
- 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 $row_val is not named in camelCase. Open
public function __construct($rows)
{
$this->rows = $rows;
// group by learning path
foreach ($rows as $row_id => $row_val) {
- 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_visible_for_user is not named in camelCase. Open
public function process()
{
$results = [];
foreach ($this->learnpaths as $courseid => $learnpaths) {
$search_show_unlinked_results = 'true' == api_get_setting('search_show_unlinked_results');
- 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 $doc_table is not named in camelCase. Open
private function get_information($course_id, $lp_id, $has_document_id = true)
{
$course_information = api_get_course_info($course_id);
$course_id = $course_information['real_id'];
$course_path = $course_information['path'];
- 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 $lpi_table is not named in camelCase. Open
private function get_information($course_id, $lp_id, $has_document_id = true)
{
$course_information = api_get_course_info($course_id);
$course_id = $course_information['real_id'];
$course_path = $course_information['path'];
- 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
private function get_information($course_id, $lp_id, $has_document_id = true)
{
$course_information = api_get_course_info($course_id);
$course_id = $course_information['real_id'];
$course_path = $course_information['path'];
- 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 $thumbnail_path is not named in camelCase. Open
private function get_information($course_id, $lp_id, $has_document_id = true)
{
$course_information = api_get_course_info($course_id);
$course_id = $course_information['real_id'];
$course_path = $course_information['path'];
- 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 $lp_id is not named in camelCase. Open
public function __construct($rows)
{
$this->rows = $rows;
// group by learning path
foreach ($rows as $row_id => $row_val) {
- 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 $lp_id is not named in camelCase. Open
public function process()
{
$results = [];
foreach ($this->learnpaths as $courseid => $learnpaths) {
$search_show_unlinked_results = 'true' == api_get_setting('search_show_unlinked_results');
- 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
private function get_information($course_id, $lp_id, $has_document_id = true)
{
$course_information = api_get_course_info($course_id);
$course_id = $course_information['real_id'];
$course_path = $course_information['path'];
- 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 $lp_table is not named in camelCase. Open
private function get_information($course_id, $lp_id, $has_document_id = true)
{
$course_information = api_get_course_info($course_id);
$course_id = $course_information['real_id'];
$course_path = $course_information['path'];
- 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 $lp_id is not named in camelCase. Open
public function __construct($rows)
{
$this->rows = $rows;
// group by learning path
foreach ($rows as $row_id => $row_val) {
- 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 $row_id is not named in camelCase. Open
public function __construct($rows)
{
$this->rows = $rows;
// group by learning path
foreach ($rows as $row_id => $row_val) {
- 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 $lp_id is not named in camelCase. Open
public function process()
{
$results = [];
foreach ($this->learnpaths as $courseid => $learnpaths) {
$search_show_unlinked_results = 'true' == api_get_setting('search_show_unlinked_results');
- 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 $lpi_table is not named in camelCase. Open
private function get_information($course_id, $lp_id, $has_document_id = true)
{
$course_information = api_get_course_info($course_id);
$course_id = $course_information['real_id'];
$course_path = $course_information['path'];
- 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
private function get_information($course_id, $lp_id, $has_document_id = true)
{
$course_information = api_get_course_info($course_id);
$course_id = $course_information['real_id'];
$course_path = $course_information['path'];
- 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 $lpi_table is not named in camelCase. Open
private function get_information($course_id, $lp_id, $has_document_id = true)
{
$course_information = api_get_course_info($course_id);
$course_id = $course_information['real_id'];
$course_path = $course_information['path'];
- 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 $lp_table is not named in camelCase. Open
private function get_information($course_id, $lp_id, $has_document_id = true)
{
$course_information = api_get_course_info($course_id);
$course_id = $course_information['real_id'];
$course_path = $course_information['path'];
- 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 $lp_table is not named in camelCase. Open
private function get_information($course_id, $lp_id, $has_document_id = true)
{
$course_information = api_get_course_info($course_id);
$course_id = $course_information['real_id'];
$course_path = $course_information['path'];
- 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 $dk_result is not named in camelCase. Open
private function get_information($course_id, $lp_id, $has_document_id = true)
{
$course_information = api_get_course_info($course_id);
$course_id = $course_information['real_id'];
$course_path = $course_information['path'];
- 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_visible_for_user is not named in camelCase. Open
public function process()
{
$results = [];
foreach ($this->learnpaths as $courseid => $learnpaths) {
$search_show_unlinked_results = 'true' == api_get_setting('search_show_unlinked_results');
- 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 $lp_id is not named in camelCase. Open
public function process()
{
$results = [];
foreach ($this->learnpaths as $courseid => $learnpaths) {
$search_show_unlinked_results = 'true' == api_get_setting('search_show_unlinked_results');
- 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_information is not named in camelCase. Open
private function get_information($course_id, $lp_id, $has_document_id = true)
{
$course_information = api_get_course_info($course_id);
$course_id = $course_information['real_id'];
$course_path = $course_information['path'];
- 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_information is not named in camelCase. Open
private function get_information($course_id, $lp_id, $has_document_id = true)
{
$course_information = api_get_course_info($course_id);
$course_id = $course_information['real_id'];
$course_path = $course_information['path'];
- 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 $doc_table is not named in camelCase. Open
private function get_information($course_id, $lp_id, $has_document_id = true)
{
$course_information = api_get_course_info($course_id);
$course_id = $course_information['real_id'];
$course_path = $course_information['path'];
- 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 $lp_table is not named in camelCase. Open
private function get_information($course_id, $lp_id, $has_document_id = true)
{
$course_information = api_get_course_info($course_id);
$course_id = $course_information['real_id'];
$course_path = $course_information['path'];
- 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 $lpi_table is not named in camelCase. Open
private function get_information($course_id, $lp_id, $has_document_id = true)
{
$course_information = api_get_course_info($course_id);
$course_id = $course_information['real_id'];
$course_path = $course_information['path'];
- 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 $big_img_path is not named in camelCase. Open
private function get_information($course_id, $lp_id, $has_document_id = true)
{
$course_information = api_get_course_info($course_id);
$course_id = $course_information['real_id'];
$course_path = $course_information['path'];
- 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 $lp_id is not named in camelCase. Open
public function __construct($rows)
{
$this->rows = $rows;
// group by learning path
foreach ($rows as $row_id => $row_val) {
- 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_information is not named in camelCase. Open
private function get_information($course_id, $lp_id, $has_document_id = true)
{
$course_information = api_get_course_info($course_id);
$course_id = $course_information['real_id'];
$course_path = $course_information['path'];
- 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 $lp_id is not named in camelCase. Open
private function get_information($course_id, $lp_id, $has_document_id = true)
{
$course_information = api_get_course_info($course_id);
$course_id = $course_information['real_id'];
$course_path = $course_information['path'];
- 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 $doc_table is not named in camelCase. Open
private function get_information($course_id, $lp_id, $has_document_id = true)
{
$course_information = api_get_course_info($course_id);
$course_id = $course_information['real_id'];
$course_path = $course_information['path'];
- 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 $lp_table is not named in camelCase. Open
private function get_information($course_id, $lp_id, $has_document_id = true)
{
$course_information = api_get_course_info($course_id);
$course_id = $course_information['real_id'];
$course_path = $course_information['path'];
- 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 $big_img_path is not named in camelCase. Open
private function get_information($course_id, $lp_id, $has_document_id = true)
{
$course_information = api_get_course_info($course_id);
$course_id = $course_information['real_id'];
$course_path = $course_information['path'];
- 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 $lp_id is not named in camelCase. Open
private function get_information($course_id, $lp_id, $has_document_id = true)
{
$course_information = api_get_course_info($course_id);
$course_id = $course_information['real_id'];
$course_path = $course_information['path'];
- 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 $lp_table is not named in camelCase. Open
private function get_information($course_id, $lp_id, $has_document_id = true)
{
$course_information = api_get_course_info($course_id);
$course_id = $course_information['real_id'];
$course_path = $course_information['path'];
- 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
private function get_information($course_id, $lp_id, $has_document_id = true)
{
$course_information = api_get_course_info($course_id);
$course_id = $course_information['real_id'];
$course_path = $course_information['path'];
- 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 $lpi_table is not named in camelCase. Open
private function get_information($course_id, $lp_id, $has_document_id = true)
{
$course_information = api_get_course_info($course_id);
$course_id = $course_information['real_id'];
$course_path = $course_information['path'];
- 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_path is not named in camelCase. Open
private function get_information($course_id, $lp_id, $has_document_id = true)
{
$course_information = api_get_course_info($course_id);
$course_id = $course_information['real_id'];
$course_path = $course_information['path'];
- 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 $doc_table is not named in camelCase. Open
private function get_information($course_id, $lp_id, $has_document_id = true)
{
$course_information = api_get_course_info($course_id);
$course_id = $course_information['real_id'];
$course_path = $course_information['path'];
- 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 $lpi_table is not named in camelCase. Open
private function get_information($course_id, $lp_id, $has_document_id = true)
{
$course_information = api_get_course_info($course_id);
$course_id = $course_information['real_id'];
$course_path = $course_information['path'];
- 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 $lpi_table is not named in camelCase. Open
private function get_information($course_id, $lp_id, $has_document_id = true)
{
$course_information = api_get_course_info($course_id);
$course_id = $course_information['real_id'];
$course_path = $course_information['path'];
- 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 $lp_id is not named in camelCase. Open
private function get_information($course_id, $lp_id, $has_document_id = true)
{
$course_information = api_get_course_info($course_id);
$course_id = $course_information['real_id'];
$course_path = $course_information['path'];
- 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 $img_location is not named in camelCase. Open
private function get_information($course_id, $lp_id, $has_document_id = true)
{
$course_information = api_get_course_info($course_id);
$course_id = $course_information['real_id'];
$course_path = $course_information['path'];
- 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_information is not named in camelCase. Open
private function get_information($course_id, $lp_id, $has_document_id = true)
{
$course_information = api_get_course_info($course_id);
$course_id = $course_information['real_id'];
$course_path = $course_information['path'];
- 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 $lp_table is not named in camelCase. Open
private function get_information($course_id, $lp_id, $has_document_id = true)
{
$course_information = api_get_course_info($course_id);
$course_id = $course_information['real_id'];
$course_path = $course_information['path'];
- 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 $lpi_table is not named in camelCase. Open
private function get_information($course_id, $lp_id, $has_document_id = true)
{
$course_information = api_get_course_info($course_id);
$course_id = $course_information['real_id'];
$course_path = $course_information['path'];
- 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 $lpi_table is not named in camelCase. Open
private function get_information($course_id, $lp_id, $has_document_id = true)
{
$course_information = api_get_course_info($course_id);
$course_id = $course_information['real_id'];
$course_path = $course_information['path'];
- 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
private function get_information($course_id, $lp_id, $has_document_id = true)
{
$course_information = api_get_course_info($course_id);
$course_id = $course_information['real_id'];
$course_path = $course_information['path'];
- 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 $lpi_table is not named in camelCase. Open
private function get_information($course_id, $lp_id, $has_document_id = true)
{
$course_information = api_get_course_info($course_id);
$course_id = $course_information['real_id'];
$course_path = $course_information['path'];
- 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 $img_location is not named in camelCase. Open
private function get_information($course_id, $lp_id, $has_document_id = true)
{
$course_information = api_get_course_info($course_id);
$course_id = $course_information['real_id'];
$course_path = $course_information['path'];
- 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 $lpi_table is not named in camelCase. Open
private function get_information($course_id, $lp_id, $has_document_id = true)
{
$course_information = api_get_course_info($course_id);
$course_id = $course_information['real_id'];
$course_path = $course_information['path'];
- 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 $img_location is not named in camelCase. Open
private function get_information($course_id, $lp_id, $has_document_id = true)
{
$course_information = api_get_course_info($course_id);
$course_id = $course_information['real_id'];
$course_path = $course_information['path'];
- 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 $big_img_path is not named in camelCase. Open
private function get_information($course_id, $lp_id, $has_document_id = true)
{
$course_information = api_get_course_info($course_id);
$course_id = $course_information['real_id'];
$course_path = $course_information['path'];
- 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 $lpi_table is not named in camelCase. Open
private function get_information($course_id, $lp_id, $has_document_id = true)
{
$course_information = api_get_course_info($course_id);
$course_id = $course_information['real_id'];
$course_path = $course_information['path'];
- 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 $lpi_table is not named in camelCase. Open
private function get_information($course_id, $lp_id, $has_document_id = true)
{
$course_information = api_get_course_info($course_id);
$course_id = $course_information['real_id'];
$course_path = $course_information['path'];
- 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 method get_information is not named in camelCase. Open
private function get_information($course_id, $lp_id, $has_document_id = true)
{
$course_information = api_get_course_info($course_id);
$course_id = $course_information['real_id'];
$course_path = $course_information['path'];
- Read upRead up
- Exclude checks
CamelCaseMethodName
Since: 0.2
It is considered best practice to use the camelCase notation to name methods.
Example
class ClassName {
public function get_name() {
}
}