The method build_basic_form() has an NPath complexity of 720. The configured NPath complexity threshold is 200. Open
private function build_basic_form($edit = 0)
{
$form_title = get_lang('Add classroom activity');
if (!empty($_GET['editeval']) && 1 == $_GET['editeval']) {
$form_title = get_lang('Edit evaluation');
- 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 '$cats_added' which will lead to PHP notices. Open
$cats_added[] = $my_cat->get_id();
- 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 '$evaluation_object' which will lead to PHP notices. Open
'hid_user_id' => $evaluation_object->user_id ?? 0,
- 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 '$cats_added' which will lead to PHP notices. Open
$cats_added[] = $my_cat->get_id();
- 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 '$defaults' which will lead to PHP notices. Open
$this->setDefaults($defaults);
- 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 '$defaults' which will lead to PHP notices. Open
$defaults['max'] = $item['max'];
- 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 '$defaults' which will lead to PHP notices. Open
$defaults['max'] = $item['max'];
- 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 '$defaults' which will lead to PHP notices. Open
$defaults['max'] = isset($default_max) ? $default_max : 100;
- 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 '$defaults' which will lead to PHP notices. Open
$this->setDefaults($defaults);
- 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 '$defaults' which will lead to PHP notices. Open
$this->setDefaults($defaults);
- 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 build_all_results_edit_form uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them. Open
} else {
$questionWeighting = $this->evaluation_object->get_max();
$select = $this->addSelect(
'score['.$result->get_id().']',
get_lang('Score'),
- 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 build_result_add_form uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them. Open
} else {
$user_info = '<td align="left" >'.$user[2].'</td>';
$user_info .= '<td align="left" >'.$user[3].'</td>';
}
- 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 build_editing_form 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();
$weight_mask = $global_weight * $this->evaluation_object->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
The method build_add_user_to_eval uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them. Open
} else {
$select->addOption($letter, $letter);
}
- 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 build_all_results_edit_form uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them. Open
} else {
$user_info = '<td align="left" >'.$user['lastname'].'</td>';
$user_info .= '<td align="left" >'.$user['firstname'].'</td>';
}
- 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 build_basic_form 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(
'hid_category_id',
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 build_basic_form 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'), get_lang('Cannot change the score')],
false,
- 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 build_basic_form uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them. Open
} else {
if (empty($model)) {
$this->addText(
'max',
get_lang('Maximum score'),
- 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 sort_by_user uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them. Open
} else {
$result = api_strcmp($user1['lastname'], $user2['lastname']);
if (0 == $result) {
return api_strcmp($user1['firstname'], $user2['firstname']);
}
- 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 build_add_form uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them. Open
} else {
$this->addElement('checkbox', 'addresult', null, get_lang('Grade learners'));
}
- 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 build_basic_form uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them. Open
} else {
$class = '';
foreach ($model['score_list'] as $item) {
$class = $item['css_class'];
}
- 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 build_result_add_form uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them. Open
} else {
$renderer->setHeaderTemplate(
'<tr>
<th>'.get_lang('Code').'</th>
<th>'.get_lang('Username').'</th>
- 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 build_result_edit_form uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them. Open
} else {
$questionWeighting = $this->evaluation_object->get_max();
$select = $this->addSelect('score', get_lang('Score'), [], ['disable_js' => true]);
foreach ($model['score_list'] as $item) {
- Read upRead up
- Exclude checks
ElseExpression
Since: 1.4.0
An if expression with an else branch is basically not necessary. You can rewrite the conditions in a way that the else clause is not necessary and the code becomes simpler to read. To achieve this, use early return statements, though you may need to split the code it several smaller methods. For very simple assignments you could also use the ternary operations.
Example
class Foo
{
public function bar($flag)
{
if ($flag) {
// one branch
} else {
// another branch
}
}
}
Source https://phpmd.org/rules/cleancode.html#elseexpression
The method build_all_results_edit_form uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them. Open
} else {
$renderer->setHeaderTemplate(
'<tr>
<th>'.get_lang('Code').'</th>
<th>'.get_lang('Username').'</th>
- 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 build_basic_form uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them. Open
} else {
$class = '';
foreach ($model['score_list'] as $item) {
$class = $item['css_class'];
}
- 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 build_basic_form 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());
$cats_added[] = $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 build_basic_form 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
Avoid unused local variables such as '$evaluation_object'. Open
'hid_user_id' => $evaluation_object->user_id ?? 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 parameters such as '$extra2'. Open
$extra2 = null
- 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 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
The parameter $form_name is not named in camelCase. Open
public function __construct(
$form_type,
$evaluation_object,
$result_object,
$form_name,
- 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 property $result_object is not named in camelCase. Open
class EvalForm extends FormValidator
{
const TYPE_ADD = 1;
const TYPE_EDIT = 2;
const TYPE_MOVE = 3;
- Read upRead up
- Exclude checks
CamelCasePropertyName
Since: 0.2
It is considered best practice to use the camelCase notation to name attributes.
Example
class ClassName {
protected $property_name;
}
Source
The parameter $form_type is not named in camelCase. Open
public function __construct(
$form_type,
$evaluation_object,
$result_object,
$form_name,
- 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 $evaluation_object is not named in camelCase. Open
public function __construct(
$form_type,
$evaluation_object,
$result_object,
$form_name,
- 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 $result_object is not named in camelCase. Open
public function __construct(
$form_type,
$evaluation_object,
$result_object,
$form_name,
- 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 property $evaluation_object is not named in camelCase. Open
class EvalForm extends FormValidator
{
const TYPE_ADD = 1;
const TYPE_EDIT = 2;
const TYPE_MOVE = 3;
- Read upRead up
- Exclude checks
CamelCasePropertyName
Since: 0.2
It is considered best practice to use the camelCase notation to name attributes.
Example
class ClassName {
protected $property_name;
}
Source
Method name "EvalForm::build_add_user_to_eval" is not in camel caps format Open
protected function build_add_user_to_eval()
- Exclude checks
Variable "user_info" is not in valid camel caps format Open
'.$user_info.'
- Exclude checks
Variable "evaluation_object" is not in valid camel caps format Open
'hid_course_id' => $this->evaluation_object->getCourseId(),
- Exclude checks
Variable "parent_cat" is not in valid camel caps format Open
if (0 == $parent_cat[0]->get_parent_id()) {
- Exclude checks
Variable "evaluation_object" is not in valid camel caps format Open
'name' => $this->evaluation_object->get_name(),
- Exclude checks
Variable "evaluation_object" is not in valid camel caps format Open
foreach ($this->evaluation_object->get_not_subscribed_students() as $user) {
- Exclude checks
Variable "user_info" is not in valid camel caps format Open
$user_info .= '<td align="left" >'.$user['lastname'].'</td>';
- Exclude checks
Variable "user_info" is not in valid camel caps format Open
$user_info .= '<td align="left" >'.$user[2].'</td>';
- Exclude checks
Variable "result_object" is not in valid camel caps format Open
$userInfo = api_get_user_info($this->result_object->get_user_id());
- Exclude checks
Variable "evaluation_object" is not in valid camel caps format Open
$this->evaluation_object->get_max()
- Exclude checks
Variable "evaluation_object" is not in valid camel caps format Open
$parent_cat = Category::load($this->evaluation_object->get_category_id());
- Exclude checks
Variable "evaluation_object" is not in valid camel caps format Open
$weight_mask = $this->evaluation_object->get_weight();
- Exclude checks
Variable "weight_mask" is not in valid camel caps format Open
$weight_mask = $global_weight * $this->evaluation_object->get_weight() / $parent_cat[0]->get_weight();
- Exclude checks
Variable "all_categories" is not in valid camel caps format Open
$all_categories = Category:: load(
- Exclude checks
Variable "cat_id" is not in valid camel caps format Open
$this->addElement('hidden', 'hid_category_id', $cat_id);
- 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 "cats_added" is not in valid camel caps format Open
$cats_added[] = $my_cat->get_id();
- Exclude checks
Variable "my_cat" is not in valid camel caps format Open
$cats_added[] = $my_cat->get_id();
- Exclude checks
Expected 30 spaces after parameter type; 5 found Open
* @param string $method
- Exclude checks
Variable "result_object" is not in valid camel caps format Open
$this->result_object = $result_object;
- Exclude checks
Missing function doc comment Open
public function display()
- Exclude checks
Variable "result_object" is not in valid camel caps format Open
foreach ($this->result_object as $result) {
- Exclude checks
Variable "result_and_user" is not in valid camel caps format Open
foreach ($results_and_users as $result_and_user) {
- Exclude checks
Variable "user_info" is not in valid camel caps format Open
$user_info = '<td align="left" >'.$user[2].'</td>';
- Exclude checks
Variable "global_weight" is not in valid camel caps format Open
$weight_mask = $global_weight * $this->evaluation_object->get_weight() / $parent_cat[0]->get_weight();
- Exclude checks
Variable "evaluation_object" is not in valid camel caps format Open
'hid_category_id' => $this->evaluation_object->get_category_id(),
- Exclude checks
Variable "cat_id" is not in valid camel caps format Open
$cat_id = $this->evaluation_object->get_category_id();
- Exclude checks
Variable "select_gradebook" is not in valid camel caps format Open
$select_gradebook = $this->addSelect(
- Exclude checks
Variable "all_categories" is not in valid camel caps format Open
if (!empty($all_categories)) {
- Exclude checks
Variable "grade_model_id" is not in valid camel caps format Open
if (empty($grade_model_id)) {
- Exclude checks
Variable "evaluation_object" is not in valid camel caps format Open
$this->evaluation_object = $evaluation_object;
- Exclude checks
Variable "results_and_users" is not in valid camel caps format Open
foreach ($results_and_users as $result_and_user) {
- Exclude checks
Variable "user_info" is not in valid camel caps format Open
'.$user_info.'
- Exclude checks
Variable "element_name" is not in valid camel caps format Open
$element_name,
- Exclude checks
Variable "element_name" is not in valid camel caps format Open
$renderer->setElementTemplate($template, $element_name);
- Exclude checks
Variable "template_submit" is not in valid camel caps format Open
$template_submit = '<tr>
- Exclude checks
Variable "weight_mask" is not in valid camel caps format Open
$weight_mask = $this->evaluation_object->get_weight();
- 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 "default_weight" is not in valid camel caps format Open
$default_weight = $my_cat->get_weight();
- Exclude checks
Method name "EvalForm::sort_by_user" is not in camel caps format Open
public function sort_by_user($item1, $item2)
- Exclude checks
Method name "EvalForm::build_all_results_edit_form" is not in camel caps format Open
protected function build_all_results_edit_form()
- Exclude checks
Variable "form_template" is not in valid camel caps format Open
$renderer->setFormTemplate($form_template);
- Exclude checks
Variable "evaluation_object" is not in valid camel caps format Open
<td align="left">{element} / '.$this->evaluation_object->get_max().'
- Exclude checks
Variable "evaluation_object" is not in valid camel caps format Open
'hid_category_id' => $this->evaluation_object->get_category_id(),
- Exclude checks
Variable "evaluation_object" is not in valid camel caps format Open
$weight_mask = $global_weight * $this->evaluation_object->get_weight() / $parent_cat[0]->get_weight();
- Exclude checks
Variable "evaluation_object" is not in valid camel caps format Open
'max' => $this->evaluation_object->get_max(),
- Exclude checks
Method name "EvalForm::build_basic_form" is not in camel caps format Open
private function build_basic_form($edit = 0)
- Exclude checks
Variable "all_categories" is not in valid camel caps format Open
if (1 == count($all_categories)) {
- Exclude checks
Variable "all_categories" is not in valid camel caps format Open
foreach ($all_categories as $my_cat) {
- 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 "my_cat" is not in valid camel caps format Open
$grade_model_id = $my_cat->get_grade_model_id();
- Exclude checks
Variable "select_gradebook" is not in valid camel caps format Open
$select_gradebook->addOption(get_lang('Select'), 0);
- Exclude checks
Variable "form_type" is not in valid camel caps format Open
$form_type,
- Exclude checks
Variable "evaluation_object" is not in valid camel caps format Open
if (isset($evaluation_object)) {
- Exclude checks
Variable "user_info" is not in valid camel caps format Open
$user_info .= '<td align="left" >'.$user['firstname'].'</td>';
- Exclude checks
Variable "evaluation_object" is not in valid camel caps format Open
$this->evaluation_object->get_max()
- Exclude checks
Variable "evaluation_object" is not in valid camel caps format Open
$this->addElement('hidden', 'maxvalue', $this->evaluation_object->get_max());
- Exclude checks
Variable "nr_users" is not in valid camel caps format Open
$this->addElement('hidden', 'nr_users', $nr_users);
- 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 "evaluation_object" is not in valid camel caps format Open
if ($this->evaluation_object->get_category_id() == $my_cat->get_id()) {
- Exclude checks
Variable "result_object" is not in valid camel caps format Open
if (isset($result_object)) {
- Exclude checks
Variable "result_and_user" is not in valid camel caps format Open
$result = $result_and_user['result'];
- Exclude checks
Variable "result_object" is not in valid camel caps format Open
$this->addElement('hidden', 'evaluation_id', $this->result_object->get_evaluation_id());
- Exclude checks
Variable "result_object" is not in valid camel caps format Open
'score' => $this->result_object->get_score(),
- Exclude checks
Variable "evaluation_object" is not in valid camel caps format Open
'maximum' => $this->evaluation_object->get_max(),
- Exclude checks
Method name "EvalForm::build_add_form" is not in camel caps format Open
protected function build_add_form()
- Exclude checks
Variable "evaluation_object" is not in valid camel caps format Open
'hid_course_id' => $this->evaluation_object->getCourseId(),
- Exclude checks
Variable "form_title" is not in valid camel caps format Open
$form_title = get_lang('Edit evaluation');
- 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
$cats_added[] = $my_cat->get_id();
- Exclude checks
Expected 30 spaces after parameter type; 5 found Open
* @param string $action
- Exclude checks
Variable "results_and_users" is not in valid camel caps format Open
$results_and_users = [];
- Exclude checks
Variable "evaluation_object" is not in valid camel caps format Open
$this->evaluation_object->get_max()
- Exclude checks
Variable "evaluation_object" is not in valid camel caps format Open
<td align="left">{element} / '.$this->evaluation_object->get_max().'
- Exclude checks
Variable "parent_cat" is not in valid camel caps format Open
$weight_mask = $global_weight * $this->evaluation_object->get_weight() / $parent_cat[0]->get_weight();
- Exclude checks
Variable "weight_mask" is not in valid camel caps format Open
$weight = $weight_mask = $this->evaluation_object->get_weight();
- Exclude checks
Variable "user_id" is not in valid camel caps format Open
'hid_user_id' => $evaluation_object->user_id ?? 0,
- Exclude checks
Variable "evaluation_object" is not in valid camel caps format Open
'created_at' => api_get_utc_datetime($this->evaluation_object->get_date()),
- Exclude checks
Variable "evaluation_object" is not in valid camel caps format Open
'visible' => $this->evaluation_object->is_visible(),
- Exclude checks
Variable "evaluation_object" is not in valid camel caps format Open
$cat_id = $this->evaluation_object->get_category_id();
- Exclude checks
Variable "session_id" is not in valid camel caps format Open
$session_id = api_get_session_id();
- Exclude checks
Variable "session_id" is not in valid camel caps format Open
$session_id,
- Exclude checks
Variable "form_type" is not in valid camel caps format Open
switch ($form_type) {
- Exclude checks
Variable "parent_cat" is not in valid camel caps format Open
$cat = Category::load($parent_cat[0]->get_parent_id());
- Exclude checks
Variable "id_current" is not in valid camel caps format Open
$this->addElement('hidden', 'hid_id', $id_current);
- Exclude checks
Variable "form_title" is not in valid camel caps format Open
$form_title = get_lang('Add classroom activity');
- 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 "evaluation_object" is not in valid camel caps format Open
'hid_course_code' => $this->evaluation_object->get_course_code(),
- Exclude checks
Variable "evaluation_object" is not in valid camel caps format Open
'hid_user_id' => $evaluation_object->user_id ?? 0,
- Exclude checks
Variable "evaluation_object" is not in valid camel caps format Open
$evaluation_object,
- Exclude checks
Variable "all_categories" is not in valid camel caps format Open
' [0 .. <span id="max_weight">'.$all_categories[0]->get_weight().'</span>] ',
- Exclude checks
Variable "parent_cat" is not in valid camel caps format Open
$parent_cat = Category::load($this->evaluation_object->get_category_id());
- Exclude checks
Variable "global_weight" is not in valid camel caps format Open
$global_weight = $cat[0]->get_weight();
- Exclude checks
Variable "opendocurl_end" is not in valid camel caps format Open
return $opendocurl_start.api_get_person_name($firstname, $lastname).' ('.$username.')'.$opendocurl_end;
- Exclude checks
Variable "evaluation_object" is not in valid camel caps format Open
'hid_id' => $this->evaluation_object->get_id(),
- Exclude checks
Variable "evaluation_object" is not in valid camel caps format Open
'description' => $this->evaluation_object->get_description(),
- Exclude checks
Variable "weight_mask" is not in valid camel caps format Open
'weight_mask' => $weight_mask,
- Exclude checks
Variable "cats_added" is not in valid camel caps format Open
$cats_added[] = $my_cat->get_id();
- Exclude checks
Variable "opendocurl_start" is not in valid camel caps format Open
$opendocurl_start = '';
- Exclude checks
Variable "opendocurl_start" is not in valid camel caps format Open
$opendocurl_start .= '<a href="'.$doc_url.'" target="_blank">';
- Exclude checks
Variable "visibility_default" is not in valid camel caps format Open
$visibility_default = 0;
- Exclude checks
Variable "evaluation_object" is not in valid camel caps format Open
$link = LinkFactory::get_evaluation_link($this->evaluation_object->get_id());
- Exclude checks
Variable "default_weight" is not in valid camel caps format Open
$default_weight = $my_cat->get_weight();
- Exclude checks
Variable "visibility_default" is not in valid camel caps format Open
$visibility_default = 1;
- Exclude checks
Variable "form_name" is not in valid camel caps format Open
$form_name,
- Exclude checks
Variable "result_object" is not in valid camel caps format Open
$this->result_object = $result_object;
- Exclude checks
Variable "results_and_users" is not in valid camel caps format Open
usort($results_and_users, ['EvalForm', 'sort_by_user']);
- Exclude checks
Variable "evaluation_object" is not in valid camel caps format Open
foreach ($this->evaluation_object->get_target_categories() as $cat) {
- Exclude checks
Method name "EvalForm::build_result_add_form" is not in camel caps format Open
protected function build_result_add_form(): void
- Exclude checks
Variable "evaluation_object" is not in valid camel caps format Open
$users = GradebookUtils::get_users_in_course($this->evaluation_object->getCourseId());
- Exclude checks
Method name "EvalForm::build_result_edit_form" is not in camel caps format Open
protected function build_result_edit_form()
- Exclude checks
Method name "EvalForm::build_editing_form" is not in camel caps format Open
protected function build_editing_form()
- Exclude checks
Variable "evaluation_object" is not in valid camel caps format Open
$weight = $weight_mask = $this->evaluation_object->get_weight();
- 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('Default'), $my_cat->get_id());
- 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 "doc_url" is not in valid camel caps format Open
$opendocurl_start .= '<a href="'.$doc_url.'" target="_blank">';
- Exclude checks
Variable "result_object" is not in valid camel caps format Open
$result_object,
- Exclude checks
Missing function doc comment Open
public function sort_by_user($item1, $item2)
- Exclude checks
Variable "results_and_users" is not in valid camel caps format Open
$results_and_users[] = ['result' => $result, 'user' => $user];
- Exclude checks
Variable "result_and_user" is not in valid camel caps format Open
$user = $result_and_user['user'];
- Exclude checks
Variable "template_submit" is not in valid camel caps format Open
$renderer->setElementTemplate($template_submit, 'submit');
- Exclude checks
Variable "evaluation_object" is not in valid camel caps format Open
$this->addElement('static', null, null, '"'.$this->evaluation_object->get_name().'" ');
- Exclude checks
Variable "user_info" is not in valid camel caps format Open
$user_info = '<td align="left" >'.$user[3].'</td>';
- Exclude checks
Variable "user_info" is not in valid camel caps format Open
'.$user_info.'
- Exclude checks
Variable "result_object" is not in valid camel caps format Open
$this->addElement('hidden', 'hid_user_id', $this->result_object->get_user_id());
- Exclude checks
Variable "evaluation_object" is not in valid camel caps format Open
'hid_user_id' => $this->evaluation_object->get_user_id(),
- Exclude checks
Variable "opendocurl_start" is not in valid camel caps format Open
return $opendocurl_start.api_get_person_name($firstname, $lastname).' ('.$username.')'.$opendocurl_end;
- Exclude checks
Variable "evaluation_object" is not in valid camel caps format Open
if ($this->evaluation_object->get_category_id() < 0) {
- Exclude checks
Expected 30 spaces after parameter type; 5 found Open
* @param string $form_name
- Exclude checks
Variable "evaluation_object" is not in valid camel caps format Open
$this->evaluation_object = $evaluation_object;
- Exclude checks
Variable "form_template" is not in valid camel caps format Open
$form_template = '<form{attributes}>
- Exclude checks
Method name "EvalForm::build_move_form" is not in camel caps format Open
protected function build_move_form()
- Exclude checks
Variable "element_name" is not in valid camel caps format Open
$element_name = 'score['.$user[0].']';
- Exclude checks
Variable "nr_users" is not in valid camel caps format Open
$nr_users++;
- Exclude checks
Variable "template_submit" is not in valid camel caps format Open
$renderer->setElementTemplate($template_submit, 'submit');
- Exclude checks
Variable "opendocurl_end" is not in valid camel caps format Open
$opendocurl_end = '</a>';
- Exclude checks
Variable "my_cat" is not in valid camel caps format Open
$default_weight = $my_cat->get_weight();
- Exclude checks
Variable "doc_url" is not in valid camel caps format Open
if (null != $doc_url) {
- Exclude checks
Variable "form_name" is not in valid camel caps format Open
parent::__construct($form_name, $method, $action);
- Exclude checks
Variable "evaluation_object" is not in valid camel caps format Open
if (null == $this->evaluation_object->getCourseId()) {
- Exclude checks
Variable "id_current" is not in valid camel caps format Open
$id_current = isset($this->id) ? $this->id : null;
- Exclude checks
Variable "my_cat" is not in valid camel caps format Open
foreach ($all_categories as $my_cat) {
- Exclude checks
Variable "my_cat" is not in valid camel caps format Open
if (0 == $my_cat->get_parent_id()) {
- Exclude checks
Variable "default_max" is not in valid camel caps format Open
$defaults['max'] = isset($default_max) ? $default_max : 100;
- Exclude checks
Variable "default_max" is not in valid camel caps format Open
$default_max = api_get_setting('gradebook_default_weight');
- Exclude checks
Variable "opendocurl_end" is not in valid camel caps format Open
$opendocurl_end = '';
- Exclude checks
Variable "evaluation_object" is not in valid camel caps format Open
if (!$this->evaluation_object->has_results()) {
- Exclude checks
Variable "visibility_default" is not in valid camel caps format Open
$this->setDefaults(['visible' => $visibility_default]);
- Exclude checks
Method name "EvalForm::build_stud_label" is not in camel caps format Open
private function build_stud_label($id, $username, $lastname, $firstname)
- Exclude checks
Expected 33 spaces after parameter type; 8 found Open
* @param int $form_type 1=add, 2=edit,3=move,4=result_add
- Exclude checks
Expected 26 spaces after parameter type; 1 found Open
* @param Evaluation $evaluation_object the category object
- Exclude checks
Missing parameter name Open
* @param $result_object the result object
- Exclude checks
Missing function doc comment Open
public function setDefaults($defaultValues = [], $filter = null)
- Exclude checks
Variable "template_submit" is not in valid camel caps format Open
$template_submit = '<tr>
- Exclude checks
Variable "user_info" is not in valid camel caps format Open
$user_info = '<td align="left" >'.$user['firstname'].'</td>';
- Exclude checks
Variable "user_info" is not in valid camel caps format Open
$user_info = '<td align="left" >'.$user['lastname'].'</td>';
- Exclude checks
Variable "evaluation_object" is not in valid camel caps format Open
$questionWeighting = $this->evaluation_object->get_max();
- Exclude checks
Variable "nr_users" is not in valid camel caps format Open
$nr_users = 0;
- Exclude checks
Variable "user_info" is not in valid camel caps format Open
$user_info .= '<td align="left" >'.$user[3].'</td>';
- Exclude checks
Variable "evaluation_object" is not in valid camel caps format Open
'/ '.$this->evaluation_object->get_max(),
- Exclude checks
Variable "evaluation_object" is not in valid camel caps format Open
$questionWeighting = $this->evaluation_object->get_max();
- Exclude checks
Variable "result_object" is not in valid camel caps format Open
if ($this->result_object->get_score() == $i) {
- Exclude checks
Variable "evaluation_object" is not in valid camel caps format Open
'hid_course_code' => $this->evaluation_object->get_course_code(),
- Exclude checks
Variable "form_title" is not in valid camel caps format Open
$this->addHeader($form_title);
- Exclude checks
Variable "my_cat" is not in valid camel caps format Open
if ($this->evaluation_object->get_category_id() == $my_cat->get_id()) {
- Exclude checks
Variable "default_max" is not in valid camel caps format Open
$defaults['max'] = isset($default_max) ? $default_max : 100;
- Exclude checks
Variable "doc_url" is not in valid camel caps format Open
$doc_url = $link->get_view_url($id);
- Exclude checks
The variable $id_current is not named in camelCase. Open
protected function build_editing_form()
{
$parent_cat = Category::load($this->evaluation_object->get_category_id());
//@TODO $weight_mask is replaced?
if (0 == $parent_cat[0]->get_parent_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 $my_cat is not named in camelCase. Open
private function build_basic_form($edit = 0)
{
$form_title = get_lang('Add classroom activity');
if (!empty($_GET['editeval']) && 1 == $_GET['editeval']) {
$form_title = get_lang('Edit evaluation');
- 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
private function build_basic_form($edit = 0)
{
$form_title = get_lang('Add classroom activity');
if (!empty($_GET['editeval']) && 1 == $_GET['editeval']) {
$form_title = get_lang('Edit evaluation');
- 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
private function build_basic_form($edit = 0)
{
$form_title = get_lang('Add classroom activity');
if (!empty($_GET['editeval']) && 1 == $_GET['editeval']) {
$form_title = get_lang('Edit evaluation');
- 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
private function build_basic_form($edit = 0)
{
$form_title = get_lang('Add classroom activity');
if (!empty($_GET['editeval']) && 1 == $_GET['editeval']) {
$form_title = get_lang('Edit evaluation');
- 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
private function build_basic_form($edit = 0)
{
$form_title = get_lang('Add classroom activity');
if (!empty($_GET['editeval']) && 1 == $_GET['editeval']) {
$form_title = get_lang('Edit evaluation');
- 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 $cats_added is not named in camelCase. Open
private function build_basic_form($edit = 0)
{
$form_title = get_lang('Add classroom activity');
if (!empty($_GET['editeval']) && 1 == $_GET['editeval']) {
$form_title = get_lang('Edit evaluation');
- 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
private function build_basic_form($edit = 0)
{
$form_title = get_lang('Add classroom activity');
if (!empty($_GET['editeval']) && 1 == $_GET['editeval']) {
$form_title = get_lang('Edit evaluation');
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $user_info is not named in camelCase. Open
protected function build_all_results_edit_form()
{
//extra field for check on maxvalue
$this->addElement('header', get_lang('Grade learners'));
$renderer = &$this->defaultRenderer();
- 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 $global_weight is not named in camelCase. Open
protected function build_editing_form()
{
$parent_cat = Category::load($this->evaluation_object->get_category_id());
//@TODO $weight_mask is replaced?
if (0 == $parent_cat[0]->get_parent_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 $all_categories is not named in camelCase. Open
private function build_basic_form($edit = 0)
{
$form_title = get_lang('Add classroom activity');
if (!empty($_GET['editeval']) && 1 == $_GET['editeval']) {
$form_title = get_lang('Edit evaluation');
- 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 build_basic_form($edit = 0)
{
$form_title = get_lang('Add classroom activity');
if (!empty($_GET['editeval']) && 1 == $_GET['editeval']) {
$form_title = get_lang('Edit evaluation');
- 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
private function build_basic_form($edit = 0)
{
$form_title = get_lang('Add classroom activity');
if (!empty($_GET['editeval']) && 1 == $_GET['editeval']) {
$form_title = get_lang('Edit evaluation');
- 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
private function build_basic_form($edit = 0)
{
$form_title = get_lang('Add classroom activity');
if (!empty($_GET['editeval']) && 1 == $_GET['editeval']) {
$form_title = get_lang('Edit evaluation');
- 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 $result_object is not named in camelCase. Open
public function __construct(
$form_type,
$evaluation_object,
$result_object,
$form_name,
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $user_info is not named in camelCase. Open
protected function build_all_results_edit_form()
{
//extra field for check on maxvalue
$this->addElement('header', get_lang('Grade learners'));
$renderer = &$this->defaultRenderer();
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $user_info is not named in camelCase. Open
protected function build_result_add_form(): void
{
$renderer = &$this->defaultRenderer();
$renderer->setFormTemplate(
'<form{attributes}>
- 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 $evaluation_object is not named in camelCase. Open
protected function build_editing_form()
{
$parent_cat = Category::load($this->evaluation_object->get_category_id());
//@TODO $weight_mask is replaced?
if (0 == $parent_cat[0]->get_parent_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 $id_current is not named in camelCase. Open
protected function build_editing_form()
{
$parent_cat = Category::load($this->evaluation_object->get_category_id());
//@TODO $weight_mask is replaced?
if (0 == $parent_cat[0]->get_parent_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 $user_info is not named in camelCase. Open
protected function build_all_results_edit_form()
{
//extra field for check on maxvalue
$this->addElement('header', get_lang('Grade learners'));
$renderer = &$this->defaultRenderer();
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $user_info is not named in camelCase. Open
protected function build_all_results_edit_form()
{
//extra field for check on maxvalue
$this->addElement('header', get_lang('Grade learners'));
$renderer = &$this->defaultRenderer();
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $user_info is not named in camelCase. Open
protected function build_result_add_form(): void
{
$renderer = &$this->defaultRenderer();
$renderer->setFormTemplate(
'<form{attributes}>
- 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
protected function build_editing_form()
{
$parent_cat = Category::load($this->evaluation_object->get_category_id());
//@TODO $weight_mask is replaced?
if (0 == $parent_cat[0]->get_parent_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 $global_weight is not named in camelCase. Open
protected function build_editing_form()
{
$parent_cat = Category::load($this->evaluation_object->get_category_id());
//@TODO $weight_mask is replaced?
if (0 == $parent_cat[0]->get_parent_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 $default_max is not named in camelCase. Open
private function build_basic_form($edit = 0)
{
$form_title = get_lang('Add classroom activity');
if (!empty($_GET['editeval']) && 1 == $_GET['editeval']) {
$form_title = get_lang('Edit evaluation');
- 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
private function build_basic_form($edit = 0)
{
$form_title = get_lang('Add classroom activity');
if (!empty($_GET['editeval']) && 1 == $_GET['editeval']) {
$form_title = get_lang('Edit evaluation');
- 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_template is not named in camelCase. Open
protected function build_all_results_edit_form()
{
//extra field for check on maxvalue
$this->addElement('header', get_lang('Grade learners'));
$renderer = &$this->defaultRenderer();
- 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 $results_and_users is not named in camelCase. Open
protected function build_all_results_edit_form()
{
//extra field for check on maxvalue
$this->addElement('header', get_lang('Grade learners'));
$renderer = &$this->defaultRenderer();
- 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 $results_and_users is not named in camelCase. Open
protected function build_all_results_edit_form()
{
//extra field for check on maxvalue
$this->addElement('header', get_lang('Grade learners'));
$renderer = &$this->defaultRenderer();
- 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
protected function build_editing_form()
{
$parent_cat = Category::load($this->evaluation_object->get_category_id());
//@TODO $weight_mask is replaced?
if (0 == $parent_cat[0]->get_parent_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 $select_gradebook is not named in camelCase. Open
private function build_basic_form($edit = 0)
{
$form_title = get_lang('Add classroom activity');
if (!empty($_GET['editeval']) && 1 == $_GET['editeval']) {
$form_title = get_lang('Edit evaluation');
- 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 $opendocurl_end is not named in camelCase. Open
private function build_stud_label($id, $username, $lastname, $firstname)
{
$opendocurl_start = '';
$opendocurl_end = '';
// evaluation's origin is a link
- 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
private function build_basic_form($edit = 0)
{
$form_title = get_lang('Add classroom activity');
if (!empty($_GET['editeval']) && 1 == $_GET['editeval']) {
$form_title = get_lang('Edit evaluation');
- 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
private function build_basic_form($edit = 0)
{
$form_title = get_lang('Add classroom activity');
if (!empty($_GET['editeval']) && 1 == $_GET['editeval']) {
$form_title = get_lang('Edit evaluation');
- 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 $opendocurl_start is not named in camelCase. Open
private function build_stud_label($id, $username, $lastname, $firstname)
{
$opendocurl_start = '';
$opendocurl_end = '';
// evaluation's origin is a link
- 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 $evaluation_object is not named in camelCase. Open
public function __construct(
$form_type,
$evaluation_object,
$result_object,
$form_name,
- 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
private function build_basic_form($edit = 0)
{
$form_title = get_lang('Add classroom activity');
if (!empty($_GET['editeval']) && 1 == $_GET['editeval']) {
$form_title = get_lang('Edit evaluation');
- 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_template is not named in camelCase. Open
protected function build_all_results_edit_form()
{
//extra field for check on maxvalue
$this->addElement('header', get_lang('Grade learners'));
$renderer = &$this->defaultRenderer();
- 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 $results_and_users is not named in camelCase. Open
protected function build_all_results_edit_form()
{
//extra field for check on maxvalue
$this->addElement('header', get_lang('Grade learners'));
$renderer = &$this->defaultRenderer();
- 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
private function build_basic_form($edit = 0)
{
$form_title = get_lang('Add classroom activity');
if (!empty($_GET['editeval']) && 1 == $_GET['editeval']) {
$form_title = get_lang('Edit evaluation');
- 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 $nr_users is not named in camelCase. Open
protected function build_result_add_form(): void
{
$renderer = &$this->defaultRenderer();
$renderer->setFormTemplate(
'<form{attributes}>
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $user_info is not named in camelCase. Open
protected function build_result_add_form(): void
{
$renderer = &$this->defaultRenderer();
$renderer->setFormTemplate(
'<form{attributes}>
- 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
protected function build_editing_form()
{
$parent_cat = Category::load($this->evaluation_object->get_category_id());
//@TODO $weight_mask is replaced?
if (0 == $parent_cat[0]->get_parent_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 $weight_mask is not named in camelCase. Open
protected function build_editing_form()
{
$parent_cat = Category::load($this->evaluation_object->get_category_id());
//@TODO $weight_mask is replaced?
if (0 == $parent_cat[0]->get_parent_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 $weight_mask is not named in camelCase. Open
protected function build_editing_form()
{
$parent_cat = Category::load($this->evaluation_object->get_category_id());
//@TODO $weight_mask is replaced?
if (0 == $parent_cat[0]->get_parent_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 $my_cat is not named in camelCase. Open
private function build_basic_form($edit = 0)
{
$form_title = get_lang('Add classroom activity');
if (!empty($_GET['editeval']) && 1 == $_GET['editeval']) {
$form_title = get_lang('Edit evaluation');
- 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 $evaluation_object is not named in camelCase. Open
public function __construct(
$form_type,
$evaluation_object,
$result_object,
$form_name,
- 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 $template_submit is not named in camelCase. Open
protected function build_all_results_edit_form()
{
//extra field for check on maxvalue
$this->addElement('header', get_lang('Grade learners'));
$renderer = &$this->defaultRenderer();
- 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 $template_submit is not named in camelCase. Open
protected function build_result_add_form(): void
{
$renderer = &$this->defaultRenderer();
$renderer->setFormTemplate(
'<form{attributes}>
- 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 $cat_id is not named in camelCase. Open
private function build_basic_form($edit = 0)
{
$form_title = get_lang('Add classroom activity');
if (!empty($_GET['editeval']) && 1 == $_GET['editeval']) {
$form_title = get_lang('Edit evaluation');
- 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
private function build_basic_form($edit = 0)
{
$form_title = get_lang('Add classroom activity');
if (!empty($_GET['editeval']) && 1 == $_GET['editeval']) {
$form_title = get_lang('Edit evaluation');
- 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_max is not named in camelCase. Open
private function build_basic_form($edit = 0)
{
$form_title = get_lang('Add classroom activity');
if (!empty($_GET['editeval']) && 1 == $_GET['editeval']) {
$form_title = get_lang('Edit evaluation');
- 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 $template_submit is not named in camelCase. Open
protected function build_all_results_edit_form()
{
//extra field for check on maxvalue
$this->addElement('header', get_lang('Grade learners'));
$renderer = &$this->defaultRenderer();
- 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 $element_name is not named in camelCase. Open
protected function build_result_add_form(): void
{
$renderer = &$this->defaultRenderer();
$renderer->setFormTemplate(
'<form{attributes}>
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $user_info is not named in camelCase. Open
protected function build_result_add_form(): void
{
$renderer = &$this->defaultRenderer();
$renderer->setFormTemplate(
'<form{attributes}>
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $user_info is not named in camelCase. Open
protected function build_result_add_form(): void
{
$renderer = &$this->defaultRenderer();
$renderer->setFormTemplate(
'<form{attributes}>
- 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 $element_name is not named in camelCase. Open
protected function build_result_add_form(): void
{
$renderer = &$this->defaultRenderer();
$renderer->setFormTemplate(
'<form{attributes}>
- 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 $cat_id is not named in camelCase. Open
private function build_basic_form($edit = 0)
{
$form_title = get_lang('Add classroom activity');
if (!empty($_GET['editeval']) && 1 == $_GET['editeval']) {
$form_title = get_lang('Edit evaluation');
- 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 $all_categories is not named in camelCase. Open
private function build_basic_form($edit = 0)
{
$form_title = get_lang('Add classroom activity');
if (!empty($_GET['editeval']) && 1 == $_GET['editeval']) {
$form_title = get_lang('Edit evaluation');
- 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
private function build_basic_form($edit = 0)
{
$form_title = get_lang('Add classroom activity');
if (!empty($_GET['editeval']) && 1 == $_GET['editeval']) {
$form_title = get_lang('Edit evaluation');
- 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 $opendocurl_start is not named in camelCase. Open
private function build_stud_label($id, $username, $lastname, $firstname)
{
$opendocurl_start = '';
$opendocurl_end = '';
// evaluation's origin is a link
- 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,
$evaluation_object,
$result_object,
$form_name,
- 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 $results_and_users is not named in camelCase. Open
protected function build_all_results_edit_form()
{
//extra field for check on maxvalue
$this->addElement('header', get_lang('Grade learners'));
$renderer = &$this->defaultRenderer();
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $user_info is not named in camelCase. Open
protected function build_all_results_edit_form()
{
//extra field for check on maxvalue
$this->addElement('header', get_lang('Grade learners'));
$renderer = &$this->defaultRenderer();
- 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 $weight_mask is not named in camelCase. Open
protected function build_editing_form()
{
$parent_cat = Category::load($this->evaluation_object->get_category_id());
//@TODO $weight_mask is replaced?
if (0 == $parent_cat[0]->get_parent_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 $form_title is not named in camelCase. Open
private function build_basic_form($edit = 0)
{
$form_title = get_lang('Add classroom activity');
if (!empty($_GET['editeval']) && 1 == $_GET['editeval']) {
$form_title = get_lang('Edit evaluation');
- 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 $all_categories is not named in camelCase. Open
private function build_basic_form($edit = 0)
{
$form_title = get_lang('Add classroom activity');
if (!empty($_GET['editeval']) && 1 == $_GET['editeval']) {
$form_title = get_lang('Edit evaluation');
- 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
private function build_basic_form($edit = 0)
{
$form_title = get_lang('Add classroom activity');
if (!empty($_GET['editeval']) && 1 == $_GET['editeval']) {
$form_title = get_lang('Edit evaluation');
- 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_url is not named in camelCase. Open
private function build_stud_label($id, $username, $lastname, $firstname)
{
$opendocurl_start = '';
$opendocurl_end = '';
// evaluation's origin is a link
- 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
protected function build_editing_form()
{
$parent_cat = Category::load($this->evaluation_object->get_category_id());
//@TODO $weight_mask is replaced?
if (0 == $parent_cat[0]->get_parent_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 $weight_mask is not named in camelCase. Open
protected function build_editing_form()
{
$parent_cat = Category::load($this->evaluation_object->get_category_id());
//@TODO $weight_mask is replaced?
if (0 == $parent_cat[0]->get_parent_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 $grade_model_id is not named in camelCase. Open
private function build_basic_form($edit = 0)
{
$form_title = get_lang('Add classroom activity');
if (!empty($_GET['editeval']) && 1 == $_GET['editeval']) {
$form_title = get_lang('Edit evaluation');
- 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
private function build_basic_form($edit = 0)
{
$form_title = get_lang('Add classroom activity');
if (!empty($_GET['editeval']) && 1 == $_GET['editeval']) {
$form_title = get_lang('Edit evaluation');
- 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
private function build_basic_form($edit = 0)
{
$form_title = get_lang('Add classroom activity');
if (!empty($_GET['editeval']) && 1 == $_GET['editeval']) {
$form_title = get_lang('Edit evaluation');
- 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
private function build_basic_form($edit = 0)
{
$form_title = get_lang('Add classroom activity');
if (!empty($_GET['editeval']) && 1 == $_GET['editeval']) {
$form_title = get_lang('Edit evaluation');
- 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_url is not named in camelCase. Open
private function build_stud_label($id, $username, $lastname, $firstname)
{
$opendocurl_start = '';
$opendocurl_end = '';
// evaluation's origin is a link
- 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 $result_and_user is not named in camelCase. Open
protected function build_all_results_edit_form()
{
//extra field for check on maxvalue
$this->addElement('header', get_lang('Grade learners'));
$renderer = &$this->defaultRenderer();
- 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 $template_submit is not named in camelCase. Open
protected function build_result_add_form(): void
{
$renderer = &$this->defaultRenderer();
$renderer->setFormTemplate(
'<form{attributes}>
- 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 $all_categories is not named in camelCase. Open
private function build_basic_form($edit = 0)
{
$form_title = get_lang('Add classroom activity');
if (!empty($_GET['editeval']) && 1 == $_GET['editeval']) {
$form_title = get_lang('Edit evaluation');
- 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 $all_categories is not named in camelCase. Open
private function build_basic_form($edit = 0)
{
$form_title = get_lang('Add classroom activity');
if (!empty($_GET['editeval']) && 1 == $_GET['editeval']) {
$form_title = get_lang('Edit evaluation');
- 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
private function build_basic_form($edit = 0)
{
$form_title = get_lang('Add classroom activity');
if (!empty($_GET['editeval']) && 1 == $_GET['editeval']) {
$form_title = get_lang('Edit evaluation');
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $user_info is not named in camelCase. Open
protected function build_all_results_edit_form()
{
//extra field for check on maxvalue
$this->addElement('header', get_lang('Grade learners'));
$renderer = &$this->defaultRenderer();
- 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 $element_name is not named in camelCase. Open
protected function build_result_add_form(): void
{
$renderer = &$this->defaultRenderer();
$renderer->setFormTemplate(
'<form{attributes}>
- 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_max is not named in camelCase. Open
private function build_basic_form($edit = 0)
{
$form_title = get_lang('Add classroom activity');
if (!empty($_GET['editeval']) && 1 == $_GET['editeval']) {
$form_title = get_lang('Edit evaluation');
- 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_url is not named in camelCase. Open
private function build_stud_label($id, $username, $lastname, $firstname)
{
$opendocurl_start = '';
$opendocurl_end = '';
// evaluation's origin is a link
- 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,
$evaluation_object,
$result_object,
$form_name,
- 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 $result_and_user is not named in camelCase. Open
protected function build_all_results_edit_form()
{
//extra field for check on maxvalue
$this->addElement('header', get_lang('Grade learners'));
$renderer = &$this->defaultRenderer();
- 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 $result_and_user is not named in camelCase. Open
protected function build_all_results_edit_form()
{
//extra field for check on maxvalue
$this->addElement('header', get_lang('Grade learners'));
$renderer = &$this->defaultRenderer();
- 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 $nr_users is not named in camelCase. Open
protected function build_result_add_form(): void
{
$renderer = &$this->defaultRenderer();
$renderer->setFormTemplate(
'<form{attributes}>
- 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 $nr_users is not named in camelCase. Open
protected function build_result_add_form(): void
{
$renderer = &$this->defaultRenderer();
$renderer->setFormTemplate(
'<form{attributes}>
- 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 $result_object is not named in camelCase. Open
public function __construct(
$form_type,
$evaluation_object,
$result_object,
$form_name,
- 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_title is not named in camelCase. Open
private function build_basic_form($edit = 0)
{
$form_title = get_lang('Add classroom activity');
if (!empty($_GET['editeval']) && 1 == $_GET['editeval']) {
$form_title = get_lang('Edit evaluation');
- 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_title is not named in camelCase. Open
private function build_basic_form($edit = 0)
{
$form_title = get_lang('Add classroom activity');
if (!empty($_GET['editeval']) && 1 == $_GET['editeval']) {
$form_title = get_lang('Edit evaluation');
- 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 build_basic_form($edit = 0)
{
$form_title = get_lang('Add classroom activity');
if (!empty($_GET['editeval']) && 1 == $_GET['editeval']) {
$form_title = get_lang('Edit evaluation');
- 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 $cats_added is not named in camelCase. Open
private function build_basic_form($edit = 0)
{
$form_title = get_lang('Add classroom activity');
if (!empty($_GET['editeval']) && 1 == $_GET['editeval']) {
$form_title = get_lang('Edit evaluation');
- 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
private function build_basic_form($edit = 0)
{
$form_title = get_lang('Add classroom activity');
if (!empty($_GET['editeval']) && 1 == $_GET['editeval']) {
$form_title = get_lang('Edit evaluation');
- 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 $opendocurl_end is not named in camelCase. Open
private function build_stud_label($id, $username, $lastname, $firstname)
{
$opendocurl_start = '';
$opendocurl_end = '';
// evaluation's origin is a link
- 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 $opendocurl_start is not named in camelCase. Open
private function build_stud_label($id, $username, $lastname, $firstname)
{
$opendocurl_start = '';
$opendocurl_end = '';
// evaluation's origin is a link
- 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 $opendocurl_end is not named in camelCase. Open
private function build_stud_label($id, $username, $lastname, $firstname)
{
$opendocurl_start = '';
$opendocurl_end = '';
// evaluation's origin is a link
- 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 build_result_add_form is not named in camelCase. Open
protected function build_result_add_form(): void
{
$renderer = &$this->defaultRenderer();
$renderer->setFormTemplate(
'<form{attributes}>
- 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() {
}
}
Source
The method build_move_form is not named in camelCase. Open
protected function build_move_form()
{
$renderer = &$this->defaultRenderer();
$renderer->setCustomElementTemplate('<span>{element}</span> ');
$this->addElement('static', null, null, '"'.$this->evaluation_object->get_name().'" ');
- 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() {
}
}
Source
The method build_all_results_edit_form is not named in camelCase. Open
protected function build_all_results_edit_form()
{
//extra field for check on maxvalue
$this->addElement('header', get_lang('Grade learners'));
$renderer = &$this->defaultRenderer();
- 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() {
}
}
Source
The method build_result_edit_form is not named in camelCase. Open
protected function build_result_edit_form()
{
$userInfo = api_get_user_info($this->result_object->get_user_id());
$this->addHeader(get_lang('User').': '.$userInfo['complete_name']);
- 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() {
}
}
Source
The method build_basic_form is not named in camelCase. Open
private function build_basic_form($edit = 0)
{
$form_title = get_lang('Add classroom activity');
if (!empty($_GET['editeval']) && 1 == $_GET['editeval']) {
$form_title = get_lang('Edit evaluation');
- 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() {
}
}
Source
The method build_add_form is not named in camelCase. Open
protected function build_add_form()
{
$this->setDefaults(
[
'hid_user_id' => $this->evaluation_object->get_user_id(),
- 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() {
}
}
Source
The method build_add_user_to_eval is not named in camelCase. Open
protected function build_add_user_to_eval()
{
$this->addHeader(get_lang('Choose users for this evaluation'));
$select = $this->addSelect(
'firstLetterUser',
- 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() {
}
}
Source
The method build_editing_form is not named in camelCase. Open
protected function build_editing_form()
{
$parent_cat = Category::load($this->evaluation_object->get_category_id());
//@TODO $weight_mask is replaced?
if (0 == $parent_cat[0]->get_parent_id()) {
- 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() {
}
}
Source
The method build_stud_label is not named in camelCase. Open
private function build_stud_label($id, $username, $lastname, $firstname)
{
$opendocurl_start = '';
$opendocurl_end = '';
// evaluation's origin is a link
- 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() {
}
}
Source
The method sort_by_user is not named in camelCase. Open
public function sort_by_user($item1, $item2)
{
$user1 = $item1['user'];
$user2 = $item2['user'];
if (api_sort_by_first_name()) {
- 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() {
}
}