Dhii/i18n-helper-base

View on GitHub
src/StringTranslatorAwareTrait.php

Summary

Maintainability
A
0 mins
Test Coverage

The method _getTranslator is not named in camelCase.
Open

    protected function _getTranslator()
    {
        return $this->translator;
    }
Severity: Minor
Found in src/StringTranslatorAwareTrait.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 _setTranslator is not named in camelCase.
Open

    protected function _setTranslator($translator)
    {
        if (!(is_null($translator) || $translator instanceof StringTranslatorInterface)) {
            throw new InvalidArgumentException('Invalid translator');
        }
Severity: Minor
Found in src/StringTranslatorAwareTrait.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