The method indexJson() has an NPath complexity of 1536. The configured NPath complexity threshold is 200. Open
public function indexJson(
Request $request,
CShortcutRepository $shortcutRepository,
EntityManagerInterface $em,
): Response {
- 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
The method autoLaunch() has an NPath complexity of 15808. The configured NPath complexity threshold is 200. Open
private function autoLaunch(): void
{
$autoLaunchWarning = '';
$showAutoLaunchLpWarning = false;
$course_id = api_get_course_int_id();
- 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
Avoid using undefined variables such as '$htmlHeadXtra' which will lead to PHP notices. Open
$htmlHeadXtra[] = $metaInfo;
- 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 using undefined variables such as '$htmlHeadXtra' which will lead to PHP notices. Open
$htmlHeadXtra[] = api_get_asset('readmore-js/readmore.js');
- 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
The class CourseController has a coupling between objects value of 46. Consider to reduce the number of dependencies under 13. Open
class CourseController extends ToolBaseController
{
public function __construct(
private readonly EntityManagerInterface $em,
private readonly SerializerInterface $serializer,
- Read upRead up
- Exclude checks
CouplingBetweenObjects
Since: 1.1.0
A class with too many dependencies has negative impacts on several quality aspects of a class. This includes quality criteria like stability, maintainability and understandability
Example
class Foo {
/**
* @var \foo\bar\X
*/
private $x = null;
/**
* @var \foo\bar\Y
*/
private $y = null;
/**
* @var \foo\bar\Z
*/
private $z = null;
public function setFoo(\Foo $foo) {}
public function setBar(\Bar $bar) {}
public function setBaz(\Baz $baz) {}
/**
* @return \SplObjectStorage
* @throws \OutOfRangeException
* @throws \InvalidArgumentException
* @throws \ErrorException
*/
public function process(\Iterator $it) {}
// ...
}
Source https://phpmd.org/rules/design.html#couplingbetweenobjects
The method autoLaunch uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them. Open
} else {
$session_key = 'lp_autolaunch_'.$session_id.'_'.$course_id.'_'.api_get_user_id();
if (!isset($_SESSION[$session_key])) {
// Redirecting to the LP
$url = api_get_path(WEB_CODE_PATH).'lp/lp_controller.php?'.api_get_cidreq();
- 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 autoLaunch uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them. Open
} else {
$url = api_get_path(WEB_CODE_PATH).'forum/index.php?'.api_get_cidreq();
header(\sprintf('Location: %s', $url));
exit;
- 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 getToolIntro uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them. Open
} else {
$ctool = $ctoolSession;
}
- 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 autoLaunch uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them. Open
} else {
$session_key = 'lp_autolaunch_'.$session_id.'_'.api_get_course_int_id().'_'.api_get_user_id();
if (!isset($_SESSION[$session_key])) {
// Redirecting to the LP
$url = api_get_path(WEB_CODE_PATH).
- 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 checkTermsAndConditionJson uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them. Open
} else {
$request->getSession()->remove('term_and_condition');
}
- 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 autoLaunch uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them. Open
} else {
// Redirecting to an exercise
$table = Database::get_course_table(TABLE_QUIZ_TEST);
$condition = '';
if (!empty($session_id)) {
- 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 autoLaunch uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them. Open
} else {
$lp_table = Database::get_course_table(TABLE_LP_MAIN);
$condition = '';
if (!empty($session_id)) {
$condition = api_get_session_condition($session_id);
- 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 autoLaunch uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them. Open
} else {
// Redirecting to the document
$url = api_get_path(WEB_CODE_PATH).'exercise/exercise.php?'.api_get_cidreq();
header(\sprintf('Location: %s', $url));
- 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 autoLaunch uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them. Open
} else {
// Redirecting to the document
$url = api_get_path(WEB_CODE_PATH).'document/document.php?'.api_get_cidreq();
header("Location: $url");
- 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 parameters such as '$languageRepository'. Open
LanguageRepository $languageRepository,
- Read upRead up
- Exclude checks
UnusedFormalParameter
Since: 0.2
Avoid passing parameters to methods or constructors and then not using those parameters.
Example
class Foo
{
private function bar($howdy)
{
// $howdy is not used
}
}
Source https://phpmd.org/rules/unusedcode.html#unusedformalparameter
Avoid unused private methods such as 'autoLaunch'. Open
private function autoLaunch(): void
{
$autoLaunchWarning = '';
$showAutoLaunchLpWarning = false;
$course_id = api_get_course_int_id();
- Read upRead up
- Exclude checks
UnusedPrivateMethod
Since: 0.2
Unused Private Method detects when a private method is declared but is unused.
Example
class Something
{
private function foo() {} // unused
}
Source https://phpmd.org/rules/unusedcode.html#unusedprivatemethod
Avoid unused local variables such as '$json'. Open
$json = $this->serializer->serialize(
- 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
You must use "/**" style comments for a function comment Open
public function getToolIntro(Request $request, Course $course, EntityManagerInterface $em): Response
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
#[Route('/{id}/addToolIntro', name: 'chamilo_core_course_addtoolintro')]
- Exclude checks
You must use "/**" style comments for a function comment Open
public function createCourse(
- Exclude checks
Variable "session_key" is not in valid camel caps format Open
$_SESSION[$session_key] = true;
- Exclude checks
Variable "course_id" is not in valid camel caps format Open
WHERE c_id = {$course_id} AND autolaunch = 1 {$condition}
- Exclude checks
Variable "lp_table" is not in valid camel caps format Open
$sql = "SELECT iid FROM {$lp_table}
- Exclude checks
You must use "/**" style comments for a function comment Open
public function redirectTool(
- Exclude checks
You must use "/**" style comments for a class comment Open
class CourseController extends ToolBaseController
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
#[Route('/{id}/welcome', name: 'chamilo_core_course_welcome')]
- Exclude checks
You must use "/**" style comments for a function comment Open
public function checkEnrollments(EntityManagerInterface $em, SettingsManager $settingsManager): JsonResponse
- Exclude checks
Variable "session_id" is not in valid camel caps format Open
$session_key = 'lp_autolaunch_'.$session_id.'_'.$course_id.'_'.api_get_user_id();
- Exclude checks
Variable "lp_data" is not in valid camel caps format Open
if (!empty($lp_data['iid'])) {
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
#[Route('/course')]
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
#[Route('/{cid}/home.json', name: 'chamilo_core_course_home_json')]
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
#[Route('/{cid}/tool/{toolName}', name: 'chamilo_core_course_redirect_tool')]
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
#[Route('/create', name: 'chamilo_core_course_create')]
- Exclude checks
Variable "session_id" is not in valid camel caps format Open
$session_id = api_get_session_id();
- Exclude checks
Variable "lp_data" is not in valid camel caps format Open
'lp/lp_controller.php?'.api_get_cidreq().'&action=view&lp_id='.$lp_data['iid'];
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
#[MapEntity(expr: 'repository.find(cid)')]
- Exclude checks
Variable "session_key" is not in valid camel caps format Open
if (!isset($_SESSION[$session_key])) {
- Exclude checks
Variable "course_id" is not in valid camel caps format Open
WHERE c_id = {$course_id} AND autolaunch = 1 {$condition}
- Exclude checks
You must use "/**" style comments for a function comment Open
public function checkTermsAndConditionJson(
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
#[Route('/{id}/about', name: 'chamilo_core_course_about')]
- Exclude checks
You must use "/**" style comments for a function comment Open
public function about(
- Exclude checks
You must use "/**" style comments for a function comment Open
public function addToolIntro(Request $request, Course $course, EntityManagerInterface $em): Response
- Exclude checks
Variable "session_key" is not in valid camel caps format Open
$session_key = 'lp_autolaunch_'.$session_id.'_'.$course_id.'_'.api_get_user_id();
- Exclude checks
You must use "/**" style comments for a function comment Open
public function indexJson(
- Exclude checks
You must use "/**" style comments for a function comment Open
public function updateSettings(
- Exclude checks
Variable "course_id" is not in valid camel caps format Open
$course_id = api_get_course_int_id();
- Exclude checks
Closing brace must be on a line by itself Open
) {}
- Exclude checks
Declare public methods first,then protected ones and finally private ones Open
public function getToolIntro(Request $request, Course $course, EntityManagerInterface $em): Response
- Exclude checks
Variable "session_id" is not in valid camel caps format Open
$session_key = 'lp_autolaunch_'.$session_id.'_'.api_get_course_int_id().'_'.api_get_user_id();
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
#[Route('/{course}/settings/{namespace}', name: 'chamilo_core_course_settings')]
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
#[Route('/{id}/getToolIntro', name: 'chamilo_core_course_gettoolintro')]
- 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 "lp_table" is not in valid camel caps format Open
$sql = "SELECT id FROM {$lp_table}
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
#[IsGranted('ROLE_USER')]
- Exclude checks
You must use "/**" style comments for a function comment Open
public function welcome(Course $course): Response
- Exclude checks
You must use "/**" style comments for a function comment Open
public function searchCourseTemplates(
- Exclude checks
Variable "course_id" is not in valid camel caps format Open
$session_key = 'lp_autolaunch_'.$session_id.'_'.$course_id.'_'.api_get_user_id();
- Exclude checks
Variable "course_id" is not in valid camel caps format Open
WHERE c_id = {$course_id} AND autolaunch = 1 {$condition}
- Exclude checks
Variable "course_id" is not in valid camel caps format Open
WHERE c_id = {$course_id} AND autolaunch = 1 {$condition}
- Exclude checks
Add a single space around assignment operators Open
declare(strict_types=1);
- Exclude checks
Variable "session_key" is not in valid camel caps format Open
$session_key = 'lp_autolaunch_'.$session_id.'_'.api_get_course_int_id().'_'.api_get_user_id();
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
#[Route('/{cid}/checkLegal.json', name: 'chamilo_core_course_check_legal_json')]
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
#[Route('/check-enrollments', name: 'chamilo_core_check_enrollments', methods: ['GET'])]
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
#[Route('/categories', name: 'chamilo_core_course_form_lists')]
- Exclude checks
Variable "session_key" is not in valid camel caps format Open
if (!isset($_SESSION[$session_key])) {
- Exclude checks
Variable "session_key" is not in valid camel caps format Open
$_SESSION[$session_key] = true;
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
#[Route('/search_templates', name: 'chamilo_core_course_search_templates')]
- Exclude checks
Variable "lp_data" is not in valid camel caps format Open
$lp_data = Database::fetch_array($result);
- Exclude checks
Variable "session_id" is not in valid camel caps format Open
if (!empty($session_id)) {
- Exclude checks
Variable "session_id" is not in valid camel caps format Open
if (!empty($session_id)) {
- Exclude checks
Variable "session_id" is not in valid camel caps format Open
$condition = api_get_session_condition($session_id);
- Exclude checks
Missing function doc comment Open
public function __construct(
- Exclude checks
You must use "/**" style comments for a function comment Open
public function getCategories(
- Exclude checks
Variable "session_id" is not in valid camel caps format Open
$condition = api_get_session_condition($session_id);
- Exclude checks
Line indented incorrectly; expected 4 spaces, found 8 Open
private readonly SerializerInterface $serializer,
- Exclude checks
Closing brace must be on a line by itself Open
) {}
- Exclude checks
Line indented incorrectly; expected 4 spaces, found 8 Open
private readonly UserHelper $userHelper,
- Exclude checks
Line indented incorrectly; expected 4 spaces, found 8 Open
private readonly EntityManagerInterface $em,
- Exclude checks
The variable $session_key is not named in camelCase. Open
private function autoLaunch(): void
{
$autoLaunchWarning = '';
$showAutoLaunchLpWarning = false;
$course_id = api_get_course_int_id();
- 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 autoLaunch(): void
{
$autoLaunchWarning = '';
$showAutoLaunchLpWarning = false;
$course_id = api_get_course_int_id();
- 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 autoLaunch(): void
{
$autoLaunchWarning = '';
$showAutoLaunchLpWarning = false;
$course_id = api_get_course_int_id();
- 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 $session_id is not named in camelCase. Open
private function autoLaunch(): void
{
$autoLaunchWarning = '';
$showAutoLaunchLpWarning = false;
$course_id = api_get_course_int_id();
- 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 $session_id is not named in camelCase. Open
private function autoLaunch(): void
{
$autoLaunchWarning = '';
$showAutoLaunchLpWarning = false;
$course_id = api_get_course_int_id();
- 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 $session_key is not named in camelCase. Open
private function autoLaunch(): void
{
$autoLaunchWarning = '';
$showAutoLaunchLpWarning = false;
$course_id = api_get_course_int_id();
- 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 $session_key is not named in camelCase. Open
private function autoLaunch(): void
{
$autoLaunchWarning = '';
$showAutoLaunchLpWarning = false;
$course_id = api_get_course_int_id();
- 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 $session_id is not named in camelCase. Open
private function autoLaunch(): void
{
$autoLaunchWarning = '';
$showAutoLaunchLpWarning = false;
$course_id = api_get_course_int_id();
- 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 autoLaunch(): void
{
$autoLaunchWarning = '';
$showAutoLaunchLpWarning = false;
$course_id = api_get_course_int_id();
- 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_data is not named in camelCase. Open
private function autoLaunch(): void
{
$autoLaunchWarning = '';
$showAutoLaunchLpWarning = false;
$course_id = api_get_course_int_id();
- 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 $session_id is not named in camelCase. Open
private function autoLaunch(): void
{
$autoLaunchWarning = '';
$showAutoLaunchLpWarning = false;
$course_id = api_get_course_int_id();
- 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 $session_id is not named in camelCase. Open
private function autoLaunch(): void
{
$autoLaunchWarning = '';
$showAutoLaunchLpWarning = false;
$course_id = api_get_course_int_id();
- 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 autoLaunch(): void
{
$autoLaunchWarning = '';
$showAutoLaunchLpWarning = false;
$course_id = api_get_course_int_id();
- 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 $session_id is not named in camelCase. Open
private function autoLaunch(): void
{
$autoLaunchWarning = '';
$showAutoLaunchLpWarning = false;
$course_id = api_get_course_int_id();
- 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 $session_id is not named in camelCase. Open
private function autoLaunch(): void
{
$autoLaunchWarning = '';
$showAutoLaunchLpWarning = false;
$course_id = api_get_course_int_id();
- 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 autoLaunch(): void
{
$autoLaunchWarning = '';
$showAutoLaunchLpWarning = false;
$course_id = api_get_course_int_id();
- 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 autoLaunch(): void
{
$autoLaunchWarning = '';
$showAutoLaunchLpWarning = false;
$course_id = api_get_course_int_id();
- 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 $session_key is not named in camelCase. Open
private function autoLaunch(): void
{
$autoLaunchWarning = '';
$showAutoLaunchLpWarning = false;
$course_id = api_get_course_int_id();
- 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_data is not named in camelCase. Open
private function autoLaunch(): void
{
$autoLaunchWarning = '';
$showAutoLaunchLpWarning = false;
$course_id = api_get_course_int_id();
- 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 $session_key is not named in camelCase. Open
private function autoLaunch(): void
{
$autoLaunchWarning = '';
$showAutoLaunchLpWarning = false;
$course_id = api_get_course_int_id();
- 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 $session_key is not named in camelCase. Open
private function autoLaunch(): void
{
$autoLaunchWarning = '';
$showAutoLaunchLpWarning = false;
$course_id = api_get_course_int_id();
- 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_data is not named in camelCase. Open
private function autoLaunch(): void
{
$autoLaunchWarning = '';
$showAutoLaunchLpWarning = false;
$course_id = api_get_course_int_id();
- 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 autoLaunch(): void
{
$autoLaunchWarning = '';
$showAutoLaunchLpWarning = false;
$course_id = api_get_course_int_id();
- 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 autoLaunch(): void
{
$autoLaunchWarning = '';
$showAutoLaunchLpWarning = false;
$course_id = api_get_course_int_id();
- 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 autoLaunch(): void
{
$autoLaunchWarning = '';
$showAutoLaunchLpWarning = false;
$course_id = api_get_course_int_id();
- 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();
}
}