The method build_basic_form() has an NPath complexity of 414720. The configured NPath complexity threshold is 200. Open
private function build_basic_form()
{
$this->addText(
'name',
get_lang('Category name'),
- Read upRead up
- Exclude checks
NPathComplexity
Since: 0.1
The NPath complexity of a method is the number of acyclic execution paths through that method. A threshold of 200 is generally considered the point where measures should be taken to reduce complexity.
Example
class Foo {
function bar() {
// lots of complicated code
}
}
Source https://phpmd.org/rules/codesize.html#npathcomplexity
Missing class import via use statement (line '357', column '24'). Open
$obj = new GradeModel();
- Read upRead up
- Exclude checks
MissingImport
Since: 2.7.0
Importing all external classes in a file through use statements makes them clearly visible.
Example
function make() {
return new \stdClass();
}
Source http://phpmd.org/rules/cleancode.html#MissingImport
The method 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 {
$questionWeighting = $value;
$defaultCertification = api_number_format($this->category_object->getCertificateMinScore(), 2);
$select = $this->addSelect(
'certif_min_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_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->addElement('checkbox', 'visible', null, get_lang('Visible'));
}
- 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->addElement('hidden', 'editcat', (int) $_GET['editcat']);
$this->addButtonUpdate(get_lang('Edit this category'));
}
- 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_move_form uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them. Open
} else {
$select->addOption($line.' '.$cat[1], $cat[0], 'disabled');
}
- 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->setDefaults(
[
'hid_user_id' => $this->category_object->get_user_id(),
'hid_parent_id' => $this->category_object->get_parent_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 property $category_object is not named in camelCase. Open
class CatForm extends FormValidator
{
public const TYPE_ADD = 1;
public const TYPE_EDIT = 2;
public 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,
$category_object,
$form_name,
$method = 'post',
- Read upRead up
- Exclude checks
CamelCaseParameterName
Since: 0.2
It is considered best practice to use the camelCase notation to name parameters.
Example
class ClassName {
public function doSomething($user_name) {
}
}
Source
The parameter $category_object is not named in camelCase. Open
public function __construct(
$form_type,
$category_object,
$form_name,
$method = 'post',
- Read upRead up
- Exclude checks
CamelCaseParameterName
Since: 0.2
It is considered best practice to use the camelCase notation to name parameters.
Example
class ClassName {
public function doSomething($user_name) {
}
}
Source
The parameter $form_name is not named in camelCase. Open
public function __construct(
$form_type,
$category_object,
$form_name,
$method = 'post',
- Read upRead up
- Exclude checks
CamelCaseParameterName
Since: 0.2
It is considered best practice to use the camelCase notation to name parameters.
Example
class ClassName {
public function doSomething($user_name) {
}
}
Source
Variable "category_object" is not in valid camel caps format Open
if ($cat[0] != $this->category_object->get_parent_id()) {
- Exclude checks
Variable "category_object" is not in valid camel caps format Open
if (!empty($this->category_object) && 0 == $this->category_object->get_parent_id()) {
- Exclude checks
Variable "category_object" is not in valid camel caps format Open
'is_requirement' => $this->category_object->getIsRequirement(),
- Exclude checks
Variable "category_object" is not in valid camel caps format Open
$this->addElement('hidden', 'hid_id', $this->category_object->get_id());
- Exclude checks
Variable "category_object" is not in valid camel caps format Open
$skills = $this->category_object->get_skills();
- Exclude checks
Variable "category_object" is not in valid camel caps format Open
if ('0' == $this->category_object->get_parent_id()) {
- Exclude checks
Variable "test_cats" is not in valid camel caps format Open
$test_cats = Category::load(
- Exclude checks
Variable "category_object" is not in valid camel caps format Open
'hid_user_id' => $this->category_object->get_user_id(),
- Exclude checks
Variable "global_weight" is not in valid camel caps format Open
$value = $global_weight;
- Exclude checks
Variable "session_id" is not in valid camel caps format Open
$session_id,
- Exclude checks
Variable "category_name" is not in valid camel caps format Open
$category_name = $this->category_object->get_name();
- Exclude checks
Variable "category_object" is not in valid camel caps format Open
$category_name = $this->category_object->get_name();
- Exclude checks
Method name "CatForm::build_basic_form" is not in camel caps format Open
private function build_basic_form()
- Exclude checks
Variable "category_object" is not in valid camel caps format Open
if (!empty($this->category_object) && 0 == $this->category_object->get_parent_id()) {
- Exclude checks
Variable "category_object" is not in valid camel caps format Open
$defaultCertification = api_number_format($this->category_object->getCertificateMinScore(), 2);
- Exclude checks
Variable "form_type" is not in valid camel caps format Open
$form_type,
- Exclude checks
Method name "CatForm::build_add_form" is not in camel caps format Open
protected function build_add_form()
- Exclude checks
Variable "category_object" is not in valid camel caps format Open
$this->category_object->getCourseId()
- Exclude checks
Variable "global_weight" is not in valid camel caps format Open
if (isset($global_weight)) {
- Exclude checks
Variable "form_name" is not in valid camel caps format Open
parent::__construct($form_name, $method, $action);
- Exclude checks
Variable "category_object" is not in valid camel caps format Open
'"'.$this->category_object->get_name().'" '
- Exclude checks
Variable "category_object" is not in valid camel caps format Open
'visible' => $this->category_object->is_visible(),
- Exclude checks
Variable "category_object" is not in valid camel caps format Open
'hid_parent_id' => $this->category_object->get_parent_id(),
- Exclude checks
Variable "category_object" is not in valid camel caps format Open
$category_object,
- Exclude checks
Variable "course_code" is not in valid camel caps format Open
$category_name = $course_code;
- Exclude checks
Variable "category_object" is not in valid camel caps format Open
'description' => $this->category_object->get_description(),
- Exclude checks
Variable "category_object" is not in valid camel caps format Open
if (!empty($this->category_object)) {
- Exclude checks
Variable "form_name" is not in valid camel caps format Open
$form_name,
- Exclude checks
Variable "category_object" is not in valid camel caps format Open
$this->category_object = $category_object;
- Exclude checks
Variable "category_object" is not in valid camel caps format Open
$this->category_object->getCourseId()
- Exclude checks
Variable "form_type" is not in valid camel caps format Open
$this->form_type = $form_type;
- Exclude checks
Variable "category_object" is not in valid camel caps format Open
if (isset($category_object)) {
- Exclude checks
Method name "CatForm::build_editing_form" is not in camel caps format Open
protected function build_editing_form()
- Exclude checks
Variable "grade_model_id" is not in valid camel caps format Open
$grade_model_id = $this->category_object->get_grade_model_id();
- Exclude checks
Method name "CatForm::build_move_form" is not in camel caps format Open
protected function build_move_form()
- Exclude checks
Variable "category_name" is not in valid camel caps format Open
$category_name = $course_code;
- Exclude checks
Variable "category_object" is not in valid camel caps format Open
'select_course' => $this->category_object->get_course_code(),
- Exclude checks
Variable "category_object" is not in valid camel caps format Open
$this->category_object->get_course_code()
- Exclude checks
Variable "course_code" is not in valid camel caps format Open
$course_code = api_get_course_id();
- Exclude checks
Variable "category_object" is not in valid camel caps format Open
if (!empty($this->category_object) && 0 == $this->category_object->get_parent_id()) {
- Exclude checks
Variable "session_id" is not in valid camel caps format Open
$session_id = api_get_session_id();
- Exclude checks
Variable "category_object" is not in valid camel caps format Open
'hid_parent_id' => $this->category_object->get_parent_id(),
- Exclude checks
Variable "category_object" is not in valid camel caps format Open
0 == $this->category_object->get_parent_id()
- Exclude checks
Variable "category_object" is not in valid camel caps format Open
'weight' => $this->category_object->get_weight(),
- Exclude checks
Variable "category_object" is not in valid camel caps format Open
$this->category_object = $category_object;
- Exclude checks
Variable "category_object" is not in valid camel caps format Open
'hid_parent_id' => $this->category_object->get_parent_id(),
- Exclude checks
Variable "category_object" is not in valid camel caps format Open
foreach ($this->category_object->get_target_categories() as $cat) {
- Exclude checks
Variable "test_cats" is not in valid camel caps format Open
$links = $test_cats[0]->get_links();
- Exclude checks
Variable "category_object" is not in valid camel caps format Open
'hid_user_id' => $this->category_object->get_user_id(),
- Exclude checks
Variable "category_object" is not in valid camel caps format Open
$grade_model_id = $this->category_object->get_grade_model_id();
- Exclude checks
Variable "category_object" is not in valid camel caps format Open
'hid_user_id' => $this->category_object->get_user_id(),
- Exclude checks
Variable "category_object" is not in valid camel caps format Open
'generate_certificates' => $this->category_object->getGenerateCertificates(),
- Exclude checks
Variable "grade_model_id" is not in valid camel caps format Open
$grade_model_id = 0;
- Exclude checks
Variable "global_weight" is not in valid camel caps format Open
$global_weight = api_get_setting('gradebook_default_weight');
- Exclude checks
Variable "category_object" is not in valid camel caps format Open
if (!empty($this->category_object) && 0 == $this->category_object->get_parent_id()) {
- Exclude checks
Variable "category_object" is not in valid camel caps format Open
if (!empty($this->category_object) &&
- Exclude checks
Variable "category_object" is not in valid camel caps format Open
if (!empty($this->category_object) &&
- Exclude checks
Variable "form_type" is not in valid camel caps format Open
$this->form_type = $form_type;
- Exclude checks
Variable "category_object" is not in valid camel caps format Open
'hid_user_id' => $this->category_object->get_user_id(),
- Exclude checks
Variable "category_name" is not in valid camel caps format Open
'name' => $category_name,
- Exclude checks
Variable "category_object" is not in valid camel caps format Open
'certif_min_score' => $this->category_object->getCertificateMinScore(),
- Exclude checks
Variable "form_type" is not in valid camel caps format Open
switch ($this->form_type) {
- Exclude checks
Method name "CatForm::build_select_course_form" is not in camel caps format Open
protected function build_select_course_form()
- Exclude checks
Variable "category_object" is not in valid camel caps format Open
$defaultCertification = $this->category_object->getCertificateMinScore();
- Exclude checks
Variable "category_object" is not in valid camel caps format Open
'hid_parent_id' => $this->category_object->get_parent_id(),
- Exclude checks
Variable "category_object" is not in valid camel caps format Open
$this->category_object->get_course_code()
- Exclude checks
Variable "category_object" is not in valid camel caps format Open
0 == $this->category_object->get_parent_id() &&
- Exclude checks
Variable "category_object" is not in valid camel caps format Open
$skills = $this->category_object->getSkillsForSelect();
- Exclude checks
Variable "test_cats" is not in valid camel caps format Open
if (isset($test_cats[0])) {
- Exclude checks
Variable "category_name" is not in valid camel caps format Open
if (empty($category_name)) {
- Exclude checks
Variable "grade_model_id" is not in valid camel caps format Open
'grade_model_id' => $grade_model_id,
- Exclude checks
Variable "test_cats" is not in valid camel caps format Open
$links = $test_cats[0]->get_links();
- Exclude checks
Variable "visibility_default" is not in valid camel caps format Open
$visibility_default = 1;
- Exclude checks
Variable "test_cats" is not in valid camel caps format Open
$test_cats = Category::load(
- Exclude checks
Variable "category_object" is not in valid camel caps format Open
if ($this->category_object->getGenerateCertificates()) {
- Exclude checks
Variable "session_id" is not in valid camel caps format Open
$session_id = api_get_session_id();
- Exclude checks
Variable "test_cats" is not in valid camel caps format Open
if (count($test_cats) > 1 || !empty($links)) {
- Exclude checks
Variable "visibility_default" is not in valid camel caps format Open
$visibility_default = 0;
- Exclude checks
Variable "category_object" is not in valid camel caps format Open
$documentId = $this->category_object->getDocumentId();
- Exclude checks
Variable "visibility_default" is not in valid camel caps format Open
'visible' => $visibility_default,
- Exclude checks
Variable "category_object" is not in valid camel caps format Open
$this->category_object->get_grade_model_id()
- Exclude checks
Variable "session_id" is not in valid camel caps format Open
$session_id,
- Exclude checks
Variable "test_cats" is not in valid camel caps format Open
if (!empty($test_cats[0])) {
- Exclude checks
Variable "category_object" is not in valid camel caps format Open
if ($this->category_object->getIsRequirement()) {
- Exclude checks
Variable "form_type" is not in valid camel caps format Open
if (self::TYPE_ADD == $this->form_type) {
- Exclude checks
The variable $test_cats is not named in camelCase. Open
protected function build_editing_form()
{
$skills = $this->category_object->getSkillsForSelect();
$course_code = api_get_course_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
protected function build_editing_form()
{
$skills = $this->category_object->getSkillsForSelect();
$course_code = api_get_course_id();
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $course_code is not named in camelCase. Open
protected function build_editing_form()
{
$skills = $this->category_object->getSkillsForSelect();
$course_code = api_get_course_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
private function build_basic_form()
{
$this->addText(
'name',
get_lang('Category 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 $visibility_default is not named in camelCase. Open
private function build_basic_form()
{
$this->addText(
'name',
get_lang('Category 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 $visibility_default is not named in camelCase. Open
private function build_basic_form()
{
$this->addText(
'name',
get_lang('Category 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 $session_id is not named in camelCase. Open
protected function build_editing_form()
{
$skills = $this->category_object->getSkillsForSelect();
$course_code = api_get_course_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
protected function build_editing_form()
{
$skills = $this->category_object->getSkillsForSelect();
$course_code = api_get_course_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 $category_name is not named in camelCase. Open
protected function build_editing_form()
{
$skills = $this->category_object->getSkillsForSelect();
$course_code = api_get_course_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_type is not named in camelCase. Open
public function __construct(
$form_type,
$category_object,
$form_name,
$method = 'post',
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $course_code is not named in camelCase. Open
protected function build_editing_form()
{
$skills = $this->category_object->getSkillsForSelect();
$course_code = api_get_course_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 $category_name is not named in camelCase. Open
protected function build_editing_form()
{
$skills = $this->category_object->getSkillsForSelect();
$course_code = api_get_course_id();
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $session_id is not named in camelCase. Open
private function build_basic_form()
{
$this->addText(
'name',
get_lang('Category 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 $session_id is not named in camelCase. Open
private function build_basic_form()
{
$this->addText(
'name',
get_lang('Category 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 $test_cats is not named in camelCase. Open
protected function build_editing_form()
{
$skills = $this->category_object->getSkillsForSelect();
$course_code = api_get_course_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 $visibility_default is not named in camelCase. Open
private function build_basic_form()
{
$this->addText(
'name',
get_lang('Category 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 $category_object is not named in camelCase. Open
public function __construct(
$form_type,
$category_object,
$form_name,
$method = 'post',
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is 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
protected function build_editing_form()
{
$skills = $this->category_object->getSkillsForSelect();
$course_code = api_get_course_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
private function build_basic_form()
{
$this->addText(
'name',
get_lang('Category 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 $test_cats is not named in camelCase. Open
private function build_basic_form()
{
$this->addText(
'name',
get_lang('Category 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 $test_cats is not named in camelCase. Open
private function build_basic_form()
{
$this->addText(
'name',
get_lang('Category 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 $session_id is not named in camelCase. Open
protected function build_editing_form()
{
$skills = $this->category_object->getSkillsForSelect();
$course_code = api_get_course_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 $test_cats is not named in camelCase. Open
private function build_basic_form()
{
$this->addText(
'name',
get_lang('Category 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_name is not named in camelCase. Open
public function __construct(
$form_type,
$category_object,
$form_name,
$method = 'post',
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $test_cats is not named in camelCase. Open
protected function build_editing_form()
{
$skills = $this->category_object->getSkillsForSelect();
$course_code = api_get_course_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 $category_name is not named in camelCase. Open
protected function build_editing_form()
{
$skills = $this->category_object->getSkillsForSelect();
$course_code = api_get_course_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
private function build_basic_form()
{
$this->addText(
'name',
get_lang('Category 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 $category_object is not named in camelCase. Open
public function __construct(
$form_type,
$category_object,
$form_name,
$method = 'post',
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $category_name is not named in camelCase. Open
protected function build_editing_form()
{
$skills = $this->category_object->getSkillsForSelect();
$course_code = api_get_course_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 $test_cats is not named in camelCase. Open
private function build_basic_form()
{
$this->addText(
'name',
get_lang('Category 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 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(
- 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_select_course_form is not named in camelCase. Open
protected function build_select_course_form()
{
$select = $this->addSelect(
'select_course',
[get_lang('Pick a course'), 'test'],
- 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()
{
$this->addText(
'name',
get_lang('Category 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_add_form is not named in camelCase. Open
protected function build_add_form()
{
// check if we are a root category
// if so, you can only choose between courses
if ('0' == $this->category_object->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_editing_form is not named in camelCase. Open
protected function build_editing_form()
{
$skills = $this->category_object->getSkillsForSelect();
$course_code = api_get_course_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() {
}
}