Dhii/data-key-value-aware-abstract

View on GitHub

Showing 8 of 8 total issues

The method _getKey is not named in camelCase.
Open

    protected function _getKey()
    {
        return $this->key;
    }
Severity: Minor
Found in src/KeyAwareTrait.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

The method _normalizeString is not named in camelCase.
Open

    abstract protected function _normalizeString($subject);
Severity: Minor
Found in src/NameAwareTrait.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

The method _getName is not named in camelCase.
Open

    protected function _getName()
    {
        return $this->name;
    }
Severity: Minor
Found in src/NameAwareTrait.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

The method _setName is not named in camelCase.
Open

    protected function _setName($name)
    {
        if (!($name instanceof Stringable) && !is_null($name)) {
            $name = $this->_normalizeString($name);
        }
Severity: Minor
Found in src/NameAwareTrait.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

The method _normalizeString is not named in camelCase.
Open

    abstract protected function _normalizeString($subject);
Severity: Minor
Found in src/KeyAwareTrait.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

The method _getValue is not named in camelCase.
Open

    protected function _getValue()
    {
        return $this->value;
    }
Severity: Minor
Found in src/ValueAwareTrait.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

The method _setKey is not named in camelCase.
Open

    protected function _setKey($key)
    {
        if (!($key instanceof Stringable) && !is_null($key)) {
            $key = $this->_normalizeString($key);
        }
Severity: Minor
Found in src/KeyAwareTrait.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

The method _setValue is not named in camelCase.
Open

    protected function _setValue($value)
    {
        $this->value = $value;
    }
Severity: Minor
Found in src/ValueAwareTrait.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

Severity
Category
Status
Source
Language