Dhii/i18n-abstract

View on GitHub
src/AbstractTranslator.php

Summary

Maintainability
A
0 mins
Test Coverage

The method _createI18nException is not named in camelCase.
Open

    abstract protected function _createI18nException($message, $code = 0, RootException $previous = null);
Severity: Minor
Found in src/AbstractTranslator.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 _translate is not named in camelCase.
Open

    abstract protected function _translate($subject);
Severity: Minor
Found in src/AbstractTranslator.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 _construct is not named in camelCase.
Open

    protected function _construct()
    {
    }
Severity: Minor
Found in src/AbstractTranslator.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 _createTranslationException is not named in camelCase.
Open

    abstract protected function _createTranslationException($message, $code = 0, RootException $previous = null, $subject = null);
Severity: Minor
Found in src/AbstractTranslator.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