Dhii/i18n-abstract

View on GitHub
src/AbstractFormatTranslator.php

Summary

Maintainability
A
45 mins
Test Coverage

Method _createFormatTranslationException has 6 arguments (exceeds 4 allowed). Consider refactoring.
Open

            $message,
            $code = 0,
            RootException $previous = null,
            $subject = null,
            $context = null,
Severity: Minor
Found in src/AbstractFormatTranslator.php - About 45 mins to fix

    The method _translate is not named in camelCase.
    Open

        protected function _translate($string, $context = null, $params = null)
        {
            $string = parent::_translate($string, $context);
            if (!is_null($params)) {
                $string = $this->_interpolateParams($string, $params);
    Severity: Minor
    Found in src/AbstractFormatTranslator.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 _createFormatTranslationException is not named in camelCase.
    Open

        abstract protected function _createFormatTranslationException(
                $message,
                $code = 0,
                RootException $previous = null,
                $subject = null,
    Severity: Minor
    Found in src/AbstractFormatTranslator.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 _interpolateParams is not named in camelCase.
    Open

        abstract protected function _interpolateParams($string, $params);
    Severity: Minor
    Found in src/AbstractFormatTranslator.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