lib/Ajde/Crud/Field/Boolean.php
The class Ajde_Crud_Field_Boolean is not named in CamelCase. Open
Open
class Ajde_Crud_Field_Boolean extends Ajde_Crud_Field
{
protected function _getHtmlAttributes()
{
$attributes = [];
- 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 method _getHtmlAttributes is not named in camelCase. Open
Open
protected function _getHtmlAttributes()
{
$attributes = [];
$attributes['type'] = 'hidden';
$attributes['value'] = $this->getValue() ? '1' : '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() {
}
}