Dhii/exception

View on GitHub
src/InitBaseExceptionCapableTrait.php

Summary

Maintainability
A
0 mins
Test Coverage

The method _normalizeInt is not named in camelCase.
Invalid

    abstract protected function _normalizeInt($value);
Severity: Minor
Found in src/InitBaseExceptionCapableTrait.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.
Invalid

    abstract protected function _normalizeString($subject);
Severity: Minor
Found in src/InitBaseExceptionCapableTrait.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 _initParent is not named in camelCase.
Invalid

    abstract protected function _initParent($message = '', $code = 0, RootException $previous = null);
Severity: Minor
Found in src/InitBaseExceptionCapableTrait.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 _initBaseException is not named in camelCase.
Invalid

    public function _initBaseException($message = null, $code = null, RootException $previous = null)
    {
        $message = is_null($message)
            ? ''
            : $this->_normalizeString($message);
Severity: Minor
Found in src/InitBaseExceptionCapableTrait.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