The method load() has an NPath complexity of 1458. The configured NPath complexity threshold is 200. Open
public static function load(
$id = null,
$type = null,
$ref_id = null,
$user_id = null,
- Read upRead up
- Exclude checks
NPathComplexity
Since: 0.1
The NPath complexity of a method is the number of acyclic execution paths through that method. A threshold of 200 is generally considered the point where measures should be taken to reduce complexity.
Example
class Foo {
function bar() {
// lots of complicated code
}
}
Source https://phpmd.org/rules/codesize.html#npathcomplexity
The method setCourseId uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them. Open
} else {
$this->course_code = null;
$this->course_id = null;
}
- 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 load uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them. Open
} else {
$sql .= ' WHERE';
}
- 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 load uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them. Open
} else {
$sql .= ' WHERE';
}
- 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 load uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them. Open
} else {
$sql .= ' WHERE';
}
- 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 load uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them. Open
} else {
$sql .= ' WHERE';
}
- 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 load uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them. Open
} else {
$sql .= ' WHERE';
}
- 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 load uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them. Open
} else {
$sql .= ' WHERE';
}
- 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 add_link_log uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them. Open
} else {
$name_log = $nameLog;
}
- 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 add_link_log uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them. Open
} else {
$name_log = $arreval['course_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 move_to_cat uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them. Open
} else {
$this->set_category_id($cat->getId());
$this->save();
}
- 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 '$position'. Open
foreach ($studentList as $userId => $position) {
- 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 '$name'. Open
public function set_name($name)
- 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 parameters such as '$stud_id'. Open
public function get_view_url($stud_id)
- 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 parameters such as '$max'. Open
public function set_max($max)
- 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 parameters such as '$description'. Open
public function set_description($description)
- 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
The property $course_id is not named in camelCase. Open
abstract class AbstractLink implements GradebookItem
{
public $course_id;
public $studentList;
/** @var GradebookLink */
- 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 $user_id is not named in camelCase. Open
public static function load(
$id = null,
$type = null,
$ref_id = null,
$user_id = null,
- 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 $ref_id is not named in camelCase. Open
abstract class AbstractLink implements GradebookItem
{
public $course_id;
public $studentList;
/** @var GradebookLink */
- 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 $category_id is not named in camelCase. Open
public static function load(
$id = null,
$type = null,
$ref_id = null,
$user_id = null,
- 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 $stud_id is not named in camelCase. Open
public function get_view_url($stud_id)
{
return null;
}
- 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_id is not named in camelCase. Open
public function set_category_id($category_id)
{
$categories = Category::load($category_id);
if (isset($categories[0])) {
$this->setCategory($categories[0]);
- 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 $user_id is not named in camelCase. Open
abstract class AbstractLink implements GradebookItem
{
public $course_id;
public $studentList;
/** @var GradebookLink */
- 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 property $course_code is not named in camelCase. Open
abstract class AbstractLink implements GradebookItem
{
public $course_id;
public $studentList;
/** @var GradebookLink */
- 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 $ref_id is not named in camelCase. Open
public function set_ref_id($ref_id)
{
$this->ref_id = $ref_id;
}
- 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 $created_at is not named in camelCase. Open
abstract class AbstractLink implements GradebookItem
{
public $course_id;
public $studentList;
/** @var GradebookLink */
- 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 $name_mask is not named in camelCase. Open
public static function find_links($name_mask, $selectcat)
{
$rootcat = Category::load($selectcat);
$links = $rootcat[0]->get_links((api_is_allowed_to_edit() ? null : api_get_user_id()), true);
$foundlinks = [];
- 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 $user_id is not named in camelCase. Open
public function set_user_id($user_id)
{
$this->user_id = $user_id;
}
- 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 $ref_id is not named in camelCase. Open
public static function load(
$id = null,
$type = null,
$ref_id = null,
$user_id = null,
- 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 $session_id is not named in camelCase. Open
abstract class AbstractLink implements GradebookItem
{
public $course_id;
public $studentList;
/** @var GradebookLink */
- 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
Variable "course_id" is not in valid camel caps format Open
$this->course_id = $courseId;
- Exclude checks
Method name "AbstractLink::get_user_id" is not in camel caps format Open
public function get_user_id()
- Exclude checks
Method name "AbstractLink::get_weight" is not in camel caps format Open
public function get_weight()
- Exclude checks
Method name "AbstractLink::set_ref_id" is not in camel caps format Open
public function set_ref_id($ref_id)
- Exclude checks
Method name "AbstractLink::is_valid_link" is not in camel caps format Open
abstract public function is_valid_link();
- Exclude checks
Method name "AbstractLink::get_type_name" is not in camel caps format Open
abstract public function get_type_name();
- Exclude checks
Method name "AbstractLink::is_visible" is not in camel caps format Open
public function is_visible()
- Exclude checks
Missing function doc comment Open
public function set_type($type)
- Exclude checks
Missing function doc comment Open
public function set_ref_id($ref_id)
- Exclude checks
Variable "ref_id" is not in valid camel caps format Open
$this->ref_id = $ref_id;
- Exclude checks
Method name "AbstractLink::get_ref_id" is not in camel caps format Open
public function get_ref_id()
- Exclude checks
Missing function doc comment Open
public function set_visible($visible)
- Exclude checks
Method name "AbstractLink::set_user_id" is not in camel caps format Open
public function set_user_id($user_id)
- Exclude checks
Missing function doc comment Open
public function set_date($date)
- Exclude checks
Missing parameter name Open
* @param $locked
- Exclude checks
Method name "AbstractLink::get_category_id" is not in camel caps format Open
public function get_category_id()
- Exclude checks
Method name "AbstractLink::get_date" is not in camel caps format Open
public function get_date()
- Exclude checks
Missing function doc comment Open
public function get_weight()
- Exclude checks
Variable "created_at" is not in valid camel caps format Open
$this->created_at = $date;
- Exclude checks
Variable "course_code" is not in valid camel caps format Open
return $this->course_code;
- Exclude checks
Variable "category_id" is not in valid camel caps format Open
$categories = Category::load($category_id);
- Exclude checks
Member variable "course_id" is not in valid camel caps format Open
public $course_id;
- Exclude checks
Variable "course_id" is not in valid camel caps format Open
$this->course_id = api_get_course_int_id();
- Exclude checks
Method name "AbstractLink::get_link" is not in camel caps format Open
abstract public function get_link();
- Exclude checks
Variable "category_id" is not in valid camel caps format Open
public function set_category_id($category_id)
- Exclude checks
Variable "user_id" is not in valid camel caps format Open
public function set_user_id($user_id)
- Exclude checks
Variable "user_id" is not in valid camel caps format Open
$this->user_id = $user_id;
- Exclude checks
Method name "AbstractLink::set_date" is not in camel caps format Open
public function set_date($date)
- Exclude checks
Missing function doc comment Open
public function set_weight($weight)
- Exclude checks
Variable "user_id" is not in valid camel caps format Open
return $this->user_id;
- Exclude checks
Method name "AbstractLink::set_id" is not in camel caps format Open
public function set_id($id)
- Exclude checks
Variable "ref_id" is not in valid camel caps format Open
public function set_ref_id($ref_id)
- Exclude checks
Missing function doc comment Open
public function set_user_id($user_id)
- Exclude checks
Variable "user_id" is not in valid camel caps format Open
$this->user_id = $user_id;
- Exclude checks
Variable "course_code" is not in valid camel caps format Open
$this->course_code = $courseInfo['code'];
- Exclude checks
Method name "AbstractLink::set_session_id" is not in camel caps format Open
public function set_session_id($id)
- Exclude checks
Method name "AbstractLink::needs_name_and_description" is not in camel caps format Open
abstract public function needs_name_and_description();
- Exclude checks
Method name "AbstractLink::needs_results" is not in camel caps format Open
abstract public function needs_results();
- Exclude checks
Method name "AbstractLink::is_allowed_to_change_name" is not in camel caps format Open
abstract public function is_allowed_to_change_name();
- Exclude checks
Variable "ref_id" is not in valid camel caps format Open
return (int) $this->ref_id;
- Exclude checks
Method name "AbstractLink::set_weight" is not in camel caps format Open
public function set_weight($weight)
- Exclude checks
Method name "AbstractLink::get_id" is not in camel caps format Open
public function get_id()
- Exclude checks
Method name "AbstractLink::set_category_id" is not in camel caps format Open
public function set_category_id($category_id)
- Exclude checks
Missing function doc comment Open
public function get_date()
- Exclude checks
Method name "AbstractLink::get_session_id" is not in camel caps format Open
public function get_session_id()
- Exclude checks
Missing function doc comment Open
public function is_locked()
- Exclude checks
Missing function doc comment Open
public function set_id($id)
- Exclude checks
Method name "AbstractLink::needs_max" is not in camel caps format Open
abstract public function needs_max();
- Exclude checks
Method name "AbstractLink::is_locked" is not in camel caps format Open
public function is_locked()
- Exclude checks
Missing function doc comment Open
public function is_visible()
- Exclude checks
Variable "course_code" is not in valid camel caps format Open
$this->course_code = null;
- Exclude checks
Method name "AbstractLink::set_visible" is not in camel caps format Open
public function set_visible($visible)
- Exclude checks
Method name "AbstractLink::has_results" is not in camel caps format Open
abstract public function has_results();
- Exclude checks
Method name "AbstractLink::get_course_code" is not in camel caps format Open
public function get_course_code()
- Exclude checks
Missing function doc comment Open
public function get_view_url($stud_id)
- Exclude checks
Method name "AbstractLink::create_objects_from_sql_result" is not in camel caps format Open
private static function create_objects_from_sql_result(\Doctrine\DBAL\Result $result): array
- Exclude checks
Variable "category_id" is not in valid camel caps format Open
$category_id = null,
- Exclude checks
Variable "course_id" is not in valid camel caps format Open
c_id = '".$this->course_id."' AND
- Exclude checks
Variable "course_id" is not in valid camel caps format Open
->setCourse(api_get_course_entity($this->course_id))
- Exclude checks
Variable "course_id" is not in valid camel caps format Open
$this->course_id
- Exclude checks
Variable "name_mask" is not in valid camel caps format Open
if (!(false === api_strpos(api_strtolower($link->get_name()), api_strtolower($name_mask)))) {
- Exclude checks
Variable "user_id" is not in valid camel caps format Open
$sql .= ' user_id = '.intval($user_id);
- Exclude checks
Variable "course_id" is not in valid camel caps format Open
!empty($this->course_id) &&
- Exclude checks
Variable "description_log" is not in valid camel caps format Open
$description_log = isset($arreval['description']) ? $arreval['description'] : '';
- Exclude checks
Variable "tbl_grade_links" is not in valid camel caps format Open
$tbl_grade_links = Database::get_main_table(TABLE_MAIN_GRADEBOOK_LINK);
- Exclude checks
Missing function doc comment Open
public function get_all_links()
- Exclude checks
Variable "ref_id" is not in valid camel caps format Open
$ref_id = null,
- Exclude checks
Variable "ref_id" is not in valid camel caps format Open
!empty($this->ref_id) &&
- Exclude checks
Variable "name_log" is not in valid camel caps format Open
$name_log = $arreval['course_id'];
- Exclude checks
Method name "AbstractLink::set_locked" is not in camel caps format Open
public function set_locked($locked)
- Exclude checks
Expected 2 spaces after parameter type; 4 found Open
* @param int $id
- Exclude checks
Expected 2 spaces after parameter type; 4 found Open
* @param int $user_id
- Exclude checks
Variable "category_id" is not in valid camel caps format Open
$sql .= ' category_id = '.intval($category_id);
- Exclude checks
Method name "AbstractLink::delete_linked_data" is not in camel caps format Open
public function delete_linked_data()
- Exclude checks
Expected 2 spaces after parameter type; 4 found Open
* @param int $category_id
- Exclude checks
Variable "user_id" is not in valid camel caps format Open
if (isset($user_id)) {
- Exclude checks
Variable "name_log" is not in valid camel caps format Open
$name_log = isset($_POST['name_link']) ? $_POST['name_link'] : $arreval['course_id'];
- Exclude checks
Method name "AbstractLink::get_item_type" is not in camel caps format Open
public function get_item_type()
- Exclude checks
Missing function doc comment Open
public function delete_linked_data()
- Exclude checks
Method name "AbstractLink::get_type" is not in camel caps format Open
public function get_type()
- Exclude checks
Variable "session_id" is not in valid camel caps format Open
return (int) $this->session_id;
- Exclude checks
Variable "created_at" is not in valid camel caps format Open
return $this->created_at;
- Exclude checks
Method name "AbstractLink::set_type" is not in camel caps format Open
public function set_type($type)
- Exclude checks
Variable "session_id" is not in valid camel caps format Open
$this->session_id = $id;
- Exclude checks
Expected 2 spaces after parameter type; 4 found Open
* @param int $ref_id
- Exclude checks
Expected 2 spaces after parameter type; 4 found Open
* @param int $visible
- Exclude checks
Variable "course_id" is not in valid camel caps format Open
$categories = Category::load(null, null, $this->course_id, 0);
- Exclude checks
Missing function doc comment Open
public function add_linked_data()
- Exclude checks
Method name "AbstractLink::set_max" is not in camel caps format Open
public function set_max($max)
- Exclude checks
Variable "ref_id" is not in valid camel caps format Open
$this->ref_id = $ref_id;
- Exclude checks
Variable "course_id" is not in valid camel caps format Open
$this->course_id = null;
- Exclude checks
Expected 2 spaces after parameter type; 4 found Open
* @param int $type
- Exclude checks
Variable "ref_id" is not in valid camel caps format Open
if (isset($ref_id)) {
- Exclude checks
Variable "name_log" is not in valid camel caps format Open
$name_log = $nameLog;
- Exclude checks
Variable "course_id" is not in valid camel caps format Open
return (int) $this->course_id;
- Exclude checks
Variable "description_log" is not in valid camel caps format Open
'description' => $description_log,
- Exclude checks
Variable "ref_id" is not in valid camel caps format Open
$sql .= ' ref_id = '.intval($ref_id);
- Exclude checks
Method name "AbstractLink::move_to_cat" is not in camel caps format Open
public function move_to_cat(GradebookCategory $cat)
- Exclude checks
Method name "AbstractLink::add_link_log" is not in camel caps format Open
public static function add_link_log($evaluationId, $nameLog = null)
- Exclude checks
Method name "AbstractLink::get_all_links" is not in camel caps format Open
public function get_all_links()
- Exclude checks
Variable "name_mask" is not in valid camel caps format Open
public static function find_links($name_mask, $selectcat)
- Exclude checks
The closing parenthesis and the opening brace of a multi-line function declaration must be on the same line Open
{
- Exclude checks
Variable "session_id" is not in valid camel caps format Open
$link->set_session_id($session_id);
- Exclude checks
Variable "category_id" is not in valid camel caps format Open
if (isset($category_id)) {
- Exclude checks
Variable "name_log" is not in valid camel caps format Open
'title' => $name_log,
- Exclude checks
Method name "AbstractLink::get_target_categories" is not in camel caps format Open
public function get_target_categories()
- Exclude checks
Method name "AbstractLink::save_linked_data" is not in camel caps format Open
public function save_linked_data()
- Exclude checks
Method name "AbstractLink::set_description" is not in camel caps format Open
public function set_description($description)
- Exclude checks
Missing function doc comment Open
public function save_linked_data()
- Exclude checks
Variable "user_id" is not in valid camel caps format Open
$user_id = null,
- Exclude checks
Variable "session_id" is not in valid camel caps format Open
$session_id = api_get_session_id();
- Exclude checks
Expected 1 spaces after parameter type; 4 found Open
* @param ?int $courseId
- Exclude checks
Variable "tbl_grade_links" is not in valid camel caps format Open
$sql = 'SELECT * FROM '.$tbl_grade_links;
- Exclude checks
Variable "name_log" is not in valid camel caps format Open
$name_log = $_POST['link_'.$evaluationId];
- Exclude checks
Method name "AbstractLink::find_links" is not in camel caps format Open
public static function find_links($name_mask, $selectcat)
- Exclude checks
Method name "AbstractLink::get_icon_name" is not in camel caps format Open
public function get_icon_name()
- Exclude checks
Method name "AbstractLink::add_linked_data" is not in camel caps format Open
public function add_linked_data()
- Exclude checks
Method name "AbstractLink::set_name" is not in camel caps format Open
public function set_name($name)
- Exclude checks
Method name "AbstractLink::get_view_url" is not in camel caps format Open
public function get_view_url($stud_id)
- Exclude checks
Variable "stud_id" is not in valid camel caps format Open
public function get_view_url($stud_id)
- Exclude checks
Opening brace should be on a new line Open
public function setCourseId(?int $courseId = null): AbstractLink {
- Exclude checks
The variable $user_id is not named in camelCase. Open
public static function load(
$id = null,
$type = null,
$ref_id = null,
$user_id = null,
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is 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_id is not named in camelCase. Open
public static function load(
$id = null,
$type = null,
$ref_id = null,
$user_id = null,
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $name_log is not named in camelCase. Open
public static function add_link_log($evaluationId, $nameLog = null)
{
$table = Database::get_main_table(TABLE_MAIN_GRADEBOOK_LINKEVAL_LOG);
$dateobject = self::load($evaluationId, null, null, null, null);
$now = api_get_utc_datetime();
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $description_log is not named in camelCase. Open
public static function add_link_log($evaluationId, $nameLog = null)
{
$table = Database::get_main_table(TABLE_MAIN_GRADEBOOK_LINKEVAL_LOG);
$dateobject = self::load($evaluationId, null, null, null, null);
$now = api_get_utc_datetime();
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $name_log is not named in camelCase. Open
public static function add_link_log($evaluationId, $nameLog = null)
{
$table = Database::get_main_table(TABLE_MAIN_GRADEBOOK_LINKEVAL_LOG);
$dateobject = self::load($evaluationId, null, null, null, null);
$now = api_get_utc_datetime();
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $name_log is not named in camelCase. Open
public static function add_link_log($evaluationId, $nameLog = null)
{
$table = Database::get_main_table(TABLE_MAIN_GRADEBOOK_LINKEVAL_LOG);
$dateobject = self::load($evaluationId, null, null, null, null);
$now = api_get_utc_datetime();
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $description_log is not named in camelCase. Open
public static function add_link_log($evaluationId, $nameLog = null)
{
$table = Database::get_main_table(TABLE_MAIN_GRADEBOOK_LINKEVAL_LOG);
$dateobject = self::load($evaluationId, null, null, null, null);
$now = api_get_utc_datetime();
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $ref_id is not named in camelCase. Open
public static function load(
$id = null,
$type = null,
$ref_id = null,
$user_id = null,
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $ref_id is not named in camelCase. Open
public static function load(
$id = null,
$type = null,
$ref_id = null,
$user_id = null,
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is 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_id is not named in camelCase. Open
public static function load(
$id = null,
$type = null,
$ref_id = null,
$user_id = null,
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $name_log is not named in camelCase. Open
public static function add_link_log($evaluationId, $nameLog = null)
{
$table = Database::get_main_table(TABLE_MAIN_GRADEBOOK_LINKEVAL_LOG);
$dateobject = self::load($evaluationId, null, null, null, null);
$now = api_get_utc_datetime();
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $name_log is not named in camelCase. Open
public static function add_link_log($evaluationId, $nameLog = null)
{
$table = Database::get_main_table(TABLE_MAIN_GRADEBOOK_LINKEVAL_LOG);
$dateobject = self::load($evaluationId, null, null, null, null);
$now = api_get_utc_datetime();
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is 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_id is not named in camelCase. Open
public static function load(
$id = null,
$type = null,
$ref_id = null,
$user_id = null,
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $ref_id is not named in camelCase. Open
public function set_ref_id($ref_id)
{
$this->ref_id = $ref_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 $tbl_grade_links is not named in camelCase. Open
public static function load(
$id = null,
$type = null,
$ref_id = null,
$user_id = null,
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is 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 static function create_objects_from_sql_result(\Doctrine\DBAL\Result $result): array
{
$links = [];
$allow = ('true' === api_get_setting('gradebook.allow_gradebook_stats'));
if ($allow) {
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is 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_id is not named in camelCase. Open
public function set_category_id($category_id)
{
$categories = Category::load($category_id);
if (isset($categories[0])) {
$this->setCategory($categories[0]);
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is 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_id is not named in camelCase. Open
public function set_user_id($user_id)
{
$this->user_id = $user_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 static function create_objects_from_sql_result(\Doctrine\DBAL\Result $result): array
{
$links = [];
$allow = ('true' === api_get_setting('gradebook.allow_gradebook_stats'));
if ($allow) {
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $tbl_grade_links is not named in camelCase. Open
public static function load(
$id = null,
$type = null,
$ref_id = null,
$user_id = null,
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $name_mask is not named in camelCase. Open
public static function find_links($name_mask, $selectcat)
{
$rootcat = Category::load($selectcat);
$links = $rootcat[0]->get_links((api_is_allowed_to_edit() ? null : api_get_user_id()), true);
$foundlinks = [];
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The method get_type is not named in camelCase. Open
public function get_type()
{
return $this->type;
}
- 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 get_ref_id is not named in camelCase. Open
public function get_ref_id()
{
return (int) $this->ref_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 get_weight is not named in camelCase. Open
public function get_weight()
{
return $this->weight;
}
- 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 set_ref_id is not named in camelCase. Open
public function set_ref_id($ref_id)
{
$this->ref_id = $ref_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 get_target_categories is not named in camelCase. Open
public function get_target_categories()
{
// links can only be moved to categories inside this course
$targets = [];
$level = 0;
- 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 get_item_type is not named in camelCase. Open
public function get_item_type()
{
return 'L';
}
- 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 set_max is not named in camelCase. Open
public function set_max($max)
{
}
- 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 create_objects_from_sql_result is not named in camelCase. Open
private static function create_objects_from_sql_result(\Doctrine\DBAL\Result $result): array
{
$links = [];
$allow = ('true' === api_get_setting('gradebook.allow_gradebook_stats'));
if ($allow) {
- 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 needs_name_and_description is not named in camelCase. Open
abstract public function needs_name_and_description();
- 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 get_id is not named in camelCase. Open
public function get_id()
{
return $this->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 add_link_log is not named in camelCase. Open
public static function add_link_log($evaluationId, $nameLog = null)
{
$table = Database::get_main_table(TABLE_MAIN_GRADEBOOK_LINKEVAL_LOG);
$dateobject = self::load($evaluationId, null, null, null, null);
$now = api_get_utc_datetime();
- 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 set_id is not named in camelCase. Open
public function set_id($id)
{
$this->id = $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 set_weight is not named in camelCase. Open
public function set_weight($weight)
{
$this->weight = $weight;
}
- 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 set_date is not named in camelCase. Open
public function set_date($date)
{
$this->created_at = $date;
}
- 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 add_linked_data is not named in camelCase. Open
public function add_linked_data()
{
}
- 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 set_locked is not named in camelCase. Open
public function set_locked($locked)
{
$this->locked = $locked;
}
- 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 set_user_id is not named in camelCase. Open
public function set_user_id($user_id)
{
$this->user_id = $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 delete_linked_data is not named in camelCase. Open
public function delete_linked_data()
{
}
- 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 is_valid_link is not named in camelCase. Open
abstract public function is_valid_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 get_course_code is not named in camelCase. Open
public function get_course_code()
{
return $this->course_code;
}
- 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 set_visible is not named in camelCase. Open
public function set_visible($visible)
{
$this->visible = $visible;
}
- 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 get_type_name is not named in camelCase. Open
abstract public function get_type_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 get_category_id is not named in camelCase. Open
public function get_category_id()
{
return $this->category->get_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 get_all_links is not named in camelCase. Open
public function get_all_links()
{
return [];
}
- 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 get_link is not named in camelCase. Open
abstract public function get_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 needs_max is not named in camelCase. Open
abstract public function needs_max();
- 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 set_category_id is not named in camelCase. Open
public function set_category_id($category_id)
{
$categories = Category::load($category_id);
if (isset($categories[0])) {
$this->setCategory($categories[0]);
- 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 set_session_id is not named in camelCase. Open
public function set_session_id($id)
{
$this->session_id = $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 move_to_cat is not named in camelCase. Open
public function move_to_cat(GradebookCategory $cat)
{
if ($this->getCourseId() != $cat->getCourse()->getId()) {
$this->delete();
} else {
- 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 find_links is not named in camelCase. Open
public static function find_links($name_mask, $selectcat)
{
$rootcat = Category::load($selectcat);
$links = $rootcat[0]->get_links((api_is_allowed_to_edit() ? null : api_get_user_id()), true);
$foundlinks = [];
- 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 set_name is not named in camelCase. Open
public function set_name($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 needs_results is not named in camelCase. Open
abstract public function needs_results();
- 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 is_allowed_to_change_name is not named in camelCase. Open
abstract public function is_allowed_to_change_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 get_user_id is not named in camelCase. Open
public function get_user_id()
{
return $this->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 is_visible is not named in camelCase. Open
public function is_visible()
{
return $this->visible;
}
- 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 set_description is not named in camelCase. Open
public function set_description($description)
{
}
- 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 get_view_url is not named in camelCase. Open
public function get_view_url($stud_id)
{
return null;
}
- 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 get_date is not named in camelCase. Open
public function get_date()
{
return $this->created_at;
}
- 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 is_locked is not named in camelCase. Open
public function is_locked()
{
return isset($this->locked) && 1 == $this->locked ? true : false;
}
- 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 set_type is not named in camelCase. Open
public function set_type($type)
{
$this->type = $type;
}
- 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 has_results is not named in camelCase. Open
abstract public function has_results();
- 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 save_linked_data is not named in camelCase. Open
public function save_linked_data()
{
}
- 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 get_session_id is not named in camelCase. Open
public function get_session_id()
{
return (int) $this->session_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 get_icon_name is not named in camelCase. Open
public function get_icon_name()
{
return '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() {
}
}