public/main/inc/lib/search/IndexableChunk.class.php
The class _IndexableChunk is not named in CamelCase. Open
Open
abstract class _IndexableChunk
{
/* struct (array)
* {
* string title; <- nombre de archivo/elemento
- Read upRead up
- Exclude checks
CamelCaseClassName
Since: 0.2
It is considered best practice to use the CamelCase notation to name classes.
Example
class class_name {
}
Source
The parameter $tool_id is not named in camelCase. Open
Open
public function addToolId($tool_id)
{
$this->addTerm($tool_id, XAPIAN_PREFIX_TOOLID);
}
- 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 $course_id is not named in camelCase. Open
Open
public function addCourseId($course_id)
{
$this->addTerm($course_id, XAPIAN_PREFIX_COURSEID);
}
- 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 $xapian_data is not named in camelCase. Open
Open
abstract class _IndexableChunk
{
/* struct (array)
* {
* string title; <- nombre de archivo/elemento
- 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
Each class must be in a file by itself Open
Open
class IndexableChunk extends _IndexableChunk
- Exclude checks
Missing parameter name Open
Open
* @param string Term
- Exclude checks
Missing parameter name Open
Open
* @param string Key
- Exclude checks
Multiple classes defined in a single file Open
Open
class IndexableChunk extends _IndexableChunk
- Exclude checks
Variable "course_id" is not in valid camel caps format Open
Open
$this->addTerm($course_id, XAPIAN_PREFIX_COURSEID);
- Exclude checks
Missing parameter name Open
Open
* @param string Value
- Exclude checks
Variable "tool_id" is not in valid camel caps format Open
Open
public function addToolId($tool_id)
- Exclude checks
Abstract class name is not prefixed with "Abstract" Open
Open
abstract class _IndexableChunk
- Exclude checks
Member variable "xapian_data" is not in valid camel caps format Open
Open
public $xapian_data;
- Exclude checks
Variable "tool_id" is not in valid camel caps format Open
Open
$this->addTerm($tool_id, XAPIAN_PREFIX_TOOLID);
- Exclude checks
Missing parameter name Open
Open
* @param string Flag (one character)
- Exclude checks
Variable "course_id" is not in valid camel caps format Open
Open
public function addCourseId($course_id)
- Exclude checks
Class name "_IndexableChunk" is not in camel caps format Open
Open
abstract class _IndexableChunk
- Exclude checks
The variable $course_id is not named in camelCase. Open
Open
public function addCourseId($course_id)
{
$this->addTerm($course_id, XAPIAN_PREFIX_COURSEID);
}
- 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 $tool_id is not named in camelCase. Open
Open
public function addToolId($tool_id)
{
$this->addTerm($tool_id, XAPIAN_PREFIX_TOOLID);
}
- 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();
}
}