The method __construct() has an NPath complexity of 3628800. The configured NPath complexity threshold is 200. Open
public function __construct(
$form_type,
$category_object,
$link_type,
$link_object,
- 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 '$values' which will lead to PHP notices. Open
$defaults['weight_mask'] = $values['weight'];
- 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 '$values' which will lead to PHP notices. Open
$values['weight'] = $link->get_weight();
- 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 '$values' which will lead to PHP notices. Open
$values['weight'] = $link->get_weight();
- 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 method __construct uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them. Open
} else {
$select = $this->addSelect('select_link', get_lang('ChooseItem'));
foreach ($link->get_all_links() as $newlink) {
$name = strip_tags(Exercise::get_formated_title_variable($newlink[1]));
$select->addOption($name, $newlink[0]);
- 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 __construct uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them. Open
} else {
$this->addButtonUpdate(get_lang('Edit link'));
}
- 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 __construct uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them. Open
} else {
exit('LinkAddEditForm error: define link_type/category_object or link_object');
}
- 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 __construct uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them. Open
} else {
$this->addText('max', get_lang('Maximum score'), true, ['size' => '4', 'maxlength' => '5']);
$this->addRule('max', get_lang('Only numbers'), 'numeric');
$this->addRule(
'max',
- 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 __construct uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them. Open
} else {
$select_gradebook = $this->addSelect(
'select_gradebook',
get_lang('Select assessment'),
[],
- 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 __construct uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them. Open
} else {
$this->addElement(
'label',
get_lang('Name'),
'<span class="freeze">'.$link->get_name().' ['.$link->get_type_name().']</span>'
- 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 __construct uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them. Open
} else {
$select_gradebook->addOption($my_cat->get_name(), $my_cat->get_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 __construct uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them. Open
} else {
$select_gradebook->addOption(get_lang('Select'), 0);
}
- 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 __construct uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them. Open
} else {
$cat = Category::load($parent_cat[0]->get_parent_id());
//$global_weight = $cat[0]->get_weight();
//$values['weight'] = $link->get_weight()/$parent_cat[0]->get_weight()*$global_weight;
//var_dump($global_weight, $link->get_weight(), $parent_cat[0]->get_weight());
- 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 '$cat'. Open
$cat = Category::load($parent_cat[0]->get_parent_id());
- 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
Avoid unused local variables such as '$default_weight'. Open
$default_weight = 0;
- 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
Avoid unused local variables such as '$visible'. Open
$visible = (self::TYPE_EDIT == $form_type && $link->is_visible()) ? '1' : '0';
- 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 parameter $link_type is not named in camelCase. Open
public function __construct(
$form_type,
$category_object,
$link_type,
$link_object,
- 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 $form_name is not named in camelCase. Open
public function __construct(
$form_type,
$category_object,
$link_type,
$link_object,
- 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 $category_object is not named in camelCase. Open
public function __construct(
$form_type,
$category_object,
$link_type,
$link_object,
- 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 $link_object is not named in camelCase. Open
public function __construct(
$form_type,
$category_object,
$link_type,
$link_object,
- 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 $form_type is not named in camelCase. Open
public function __construct(
$form_type,
$category_object,
$link_type,
$link_object,
- 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 "link_type" is not in valid camel caps format Open
$link_type,
- Exclude checks
Variable "category_object" is not in valid camel caps format Open
$link->set_category_id($category_object[0]->get_id());
- Exclude checks
Variable "form_type" is not in valid camel caps format Open
if (self::TYPE_EDIT == $form_type) {
- Exclude checks
Variable "category_object" is not in valid camel caps format Open
$this->addElement('hidden', 'select_gradebook', $category_object[0]->get_id());
- Exclude checks
Variable "category_object" is not in valid camel caps format Open
if (!empty($category_object)) {
- Exclude checks
Variable "my_cat" is not in valid camel caps format Open
foreach ($category_object as $my_cat) {
- Exclude checks
Variable "my_cat" is not in valid camel caps format Open
$select_gradebook->addOption($my_cat->get_name(), $my_cat->get_id());
- Exclude checks
Variable "my_cat" is not in valid camel caps format Open
$select_gradebook->addOption($my_cat->get_name(), $my_cat->get_id());
- Exclude checks
Variable "category_object" is not in valid camel caps format Open
' [0 .. <span id="max_weight">'.$category_object[0]->get_weight(
- Exclude checks
Variable "form_type" is not in valid camel caps format Open
$form_type,
- Exclude checks
Variable "category_object" is not in valid camel caps format Open
} elseif (isset($link_type) && isset($category_object)) {
- Exclude checks
Variable "form_type" is not in valid camel caps format Open
if (self::TYPE_ADD == $form_type || $link->is_allowed_to_change_name()) {
- Exclude checks
Variable "category_object" is not in valid camel caps format Open
$category_object,
- Exclude checks
Variable "form_name" is not in valid camel caps format Open
$form_name,
- Exclude checks
Variable "parent_cat" is not in valid camel caps format Open
if (0 == $parent_cat[0]->get_parent_id()) {
- Exclude checks
Variable "visibility_default" is not in valid camel caps format Open
$visibility_default = 0;
- Exclude checks
Variable "default_weight" is not in valid camel caps format Open
$default_weight = $my_cat->get_weight();
- Exclude checks
Variable "my_cat" is not in valid camel caps format Open
$select_gradebook->addOption(get_lang('Default'), $my_cat->get_id());
- Exclude checks
Variable "form_type" is not in valid camel caps format Open
$visible = (self::TYPE_EDIT == $form_type && $link->is_visible()) ? '1' : '0';
- Exclude checks
Variable "link_object" is not in valid camel caps format Open
$link = $link_object;
- Exclude checks
Variable "select_gradebook" is not in valid camel caps format Open
$select_gradebook = $this->addSelect(
- Exclude checks
Variable "form_type" is not in valid camel caps format Open
if (self::TYPE_ADD == $form_type) {
- Exclude checks
Variable "visibility_default" is not in valid camel caps format Open
$defaults['visible'] = $visibility_default;
- Exclude checks
Variable "link_type" is not in valid camel caps format Open
$link = LinkFactory:: create($link_type);
- Exclude checks
Variable "default_weight" is not in valid camel caps format Open
$default_weight = 0;
- Exclude checks
Variable "my_cat" is not in valid camel caps format Open
$default_weight = $my_cat->get_weight();
- Exclude checks
Variable "select_gradebook" is not in valid camel caps format Open
$select_gradebook->addOption(get_lang('Select'), 0);
- Exclude checks
Variable "default_weight" is not in valid camel caps format Open
$default_weight = $my_cat->get_weight();
- Exclude checks
Variable "form_type" is not in valid camel caps format Open
if (self::TYPE_EDIT == $form_type) {
- Exclude checks
Variable "form_name" is not in valid camel caps format Open
parent::__construct($form_name, 'post', $action);
- Exclude checks
Variable "link_type" is not in valid camel caps format Open
} elseif (isset($link_type) && isset($category_object)) {
- Exclude checks
Variable "form_type" is not in valid camel caps format Open
if (self::TYPE_ADD == $form_type) {
- Exclude checks
Variable "visibility_default" is not in valid camel caps format Open
$visibility_default = 1;
- Exclude checks
Variable "my_cat" is not in valid camel caps format Open
if ($my_cat->getCourseId() == api_get_course_int_id()) {
- Exclude checks
Variable "link_object" is not in valid camel caps format Open
if (isset($link_object)) {
- Exclude checks
Variable "select_gradebook" is not in valid camel caps format Open
$select_gradebook->addOption($my_cat->get_name(), $my_cat->get_id());
- Exclude checks
Variable "category_object" is not in valid camel caps format Open
foreach ($category_object as $my_cat) {
- Exclude checks
Variable "grade_model_id" is not in valid camel caps format Open
if (empty($grade_model_id)) {
- Exclude checks
Variable "parent_cat" is not in valid camel caps format Open
$parent_cat = Category::load($link->get_category_id());
- Exclude checks
Variable "form_type" is not in valid camel caps format Open
if (self::TYPE_EDIT == $form_type && $link->has_results()) {
- Exclude checks
Variable "form_type" is not in valid camel caps format Open
if (self::TYPE_ADD == $form_type && $link->needs_results()) {
- Exclude checks
Variable "category_object" is not in valid camel caps format Open
if (1 == count($category_object)) {
- Exclude checks
Variable "my_cat" is not in valid camel caps format Open
if (0 == $my_cat->get_parent_id()) {
- Exclude checks
Variable "select_gradebook" is not in valid camel caps format Open
$select_gradebook->addOption(get_lang('Default'), $my_cat->get_id());
- Exclude checks
Variable "my_cat" is not in valid camel caps format Open
if ($link->get_category_id() == $my_cat->get_id()) {
- Exclude checks
Variable "form_type" is not in valid camel caps format Open
if (self::TYPE_EDIT == $form_type) {
- Exclude checks
Variable "form_type" is not in valid camel caps format Open
if (self::TYPE_EDIT == $form_type) {
- Exclude checks
Variable "link_object" is not in valid camel caps format Open
$link_object,
- Exclude checks
Variable "grade_model_id" is not in valid camel caps format Open
$grade_model_id = $my_cat->get_grade_model_id();
- Exclude checks
Variable "my_cat" is not in valid camel caps format Open
$grade_model_id = $my_cat->get_grade_model_id();
- Exclude checks
Variable "my_cat" is not in valid camel caps format Open
$default_weight = $my_cat->get_weight();
- Exclude checks
Variable "parent_cat" is not in valid camel caps format Open
$cat = Category::load($parent_cat[0]->get_parent_id());
- Exclude checks
The variable $category_object is not named in camelCase. Open
public function __construct(
$form_type,
$category_object,
$link_type,
$link_object,
- 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 $my_cat is not named in camelCase. Open
public function __construct(
$form_type,
$category_object,
$link_type,
$link_object,
- 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 $link_object is not named in camelCase. Open
public function __construct(
$form_type,
$category_object,
$link_type,
$link_object,
- 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 $my_cat is not named in camelCase. Open
public function __construct(
$form_type,
$category_object,
$link_type,
$link_object,
- 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 $default_weight is not named in camelCase. Open
public function __construct(
$form_type,
$category_object,
$link_type,
$link_object,
- 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 $form_name is not named in camelCase. Open
public function __construct(
$form_type,
$category_object,
$link_type,
$link_object,
- 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 $category_object is not named in camelCase. Open
public function __construct(
$form_type,
$category_object,
$link_type,
$link_object,
- 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 $select_gradebook is not named in camelCase. Open
public function __construct(
$form_type,
$category_object,
$link_type,
$link_object,
- 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 $link_type is not named in camelCase. Open
public function __construct(
$form_type,
$category_object,
$link_type,
$link_object,
- 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 $category_object is not named in camelCase. Open
public function __construct(
$form_type,
$category_object,
$link_type,
$link_object,
- 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 $category_object is not named in camelCase. Open
public function __construct(
$form_type,
$category_object,
$link_type,
$link_object,
- 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 $select_gradebook is not named in camelCase. Open
public function __construct(
$form_type,
$category_object,
$link_type,
$link_object,
- 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 $my_cat is not named in camelCase. Open
public function __construct(
$form_type,
$category_object,
$link_type,
$link_object,
- 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 $my_cat is not named in camelCase. Open
public function __construct(
$form_type,
$category_object,
$link_type,
$link_object,
- 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 $my_cat is not named in camelCase. Open
public function __construct(
$form_type,
$category_object,
$link_type,
$link_object,
- 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 $category_object is not named in camelCase. Open
public function __construct(
$form_type,
$category_object,
$link_type,
$link_object,
- 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 $my_cat is not named in camelCase. Open
public function __construct(
$form_type,
$category_object,
$link_type,
$link_object,
- 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 $default_weight is not named in camelCase. Open
public function __construct(
$form_type,
$category_object,
$link_type,
$link_object,
- 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 $grade_model_id is not named in camelCase. Open
public function __construct(
$form_type,
$category_object,
$link_type,
$link_object,
- 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 $form_type is not named in camelCase. Open
public function __construct(
$form_type,
$category_object,
$link_type,
$link_object,
- 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 $category_object is not named in camelCase. Open
public function __construct(
$form_type,
$category_object,
$link_type,
$link_object,
- 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 $grade_model_id is not named in camelCase. Open
public function __construct(
$form_type,
$category_object,
$link_type,
$link_object,
- 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 $link_object is not named in camelCase. Open
public function __construct(
$form_type,
$category_object,
$link_type,
$link_object,
- 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 $link_type is not named in camelCase. Open
public function __construct(
$form_type,
$category_object,
$link_type,
$link_object,
- 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 $my_cat is not named in camelCase. Open
public function __construct(
$form_type,
$category_object,
$link_type,
$link_object,
- 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 $select_gradebook is not named in camelCase. Open
public function __construct(
$form_type,
$category_object,
$link_type,
$link_object,
- 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 $my_cat is not named in camelCase. Open
public function __construct(
$form_type,
$category_object,
$link_type,
$link_object,
- 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 $form_type is not named in camelCase. Open
public function __construct(
$form_type,
$category_object,
$link_type,
$link_object,
- 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 $my_cat is not named in camelCase. Open
public function __construct(
$form_type,
$category_object,
$link_type,
$link_object,
- 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 $form_type is not named in camelCase. Open
public function __construct(
$form_type,
$category_object,
$link_type,
$link_object,
- 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 $visibility_default is not named in camelCase. Open
public function __construct(
$form_type,
$category_object,
$link_type,
$link_object,
- 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 $category_object is not named in camelCase. Open
public function __construct(
$form_type,
$category_object,
$link_type,
$link_object,
- 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 $form_type is not named in camelCase. Open
public function __construct(
$form_type,
$category_object,
$link_type,
$link_object,
- 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 $my_cat is not named in camelCase. Open
public function __construct(
$form_type,
$category_object,
$link_type,
$link_object,
- 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 $default_weight is not named in camelCase. Open
public function __construct(
$form_type,
$category_object,
$link_type,
$link_object,
- 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 $parent_cat is not named in camelCase. Open
public function __construct(
$form_type,
$category_object,
$link_type,
$link_object,
- 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 $form_type is not named in camelCase. Open
public function __construct(
$form_type,
$category_object,
$link_type,
$link_object,
- 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 $visibility_default is not named in camelCase. Open
public function __construct(
$form_type,
$category_object,
$link_type,
$link_object,
- 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 $form_type is not named in camelCase. Open
public function __construct(
$form_type,
$category_object,
$link_type,
$link_object,
- 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 $form_type is not named in camelCase. Open
public function __construct(
$form_type,
$category_object,
$link_type,
$link_object,
- 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 $visibility_default is not named in camelCase. Open
public function __construct(
$form_type,
$category_object,
$link_type,
$link_object,
- 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 $form_type is not named in camelCase. Open
public function __construct(
$form_type,
$category_object,
$link_type,
$link_object,
- 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 $parent_cat is not named in camelCase. Open
public function __construct(
$form_type,
$category_object,
$link_type,
$link_object,
- 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 $parent_cat is not named in camelCase. Open
public function __construct(
$form_type,
$category_object,
$link_type,
$link_object,
- 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 $form_type is not named in camelCase. Open
public function __construct(
$form_type,
$category_object,
$link_type,
$link_object,
- 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 $form_type is not named in camelCase. Open
public function __construct(
$form_type,
$category_object,
$link_type,
$link_object,
- 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 $select_gradebook is not named in camelCase. Open
public function __construct(
$form_type,
$category_object,
$link_type,
$link_object,
- 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();
}
}