lib/Ajde/Model/Validator/Numeric.php

Summary

Maintainability
A
0 mins
Test Coverage

The class Ajde_Model_Validator_Numeric is not named in CamelCase.
Open

class Ajde_Model_Validator_Numeric extends Ajde_Model_ValidatorAbstract
{
    protected function _validate()
    {
        if (!empty($this->_value)) {
Severity: Minor
Found in lib/Ajde/Model/Validator/Numeric.php by phpmd

CamelCaseClassName

Since: 0.2

It is considered best practice to use the CamelCase notation to name classes.

Example

class class_name {
}

Source

The method _validate is not named in camelCase.
Open

    protected function _validate()
    {
        if (!empty($this->_value)) {
            if (!is_numeric($this->_value)) {
                return ['valid' => false, 'error' => trans('Not a number')];
Severity: Minor
Found in lib/Ajde/Model/Validator/Numeric.php by phpmd

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

There are no issues that match your filters.

Category
Status