Dhii/i18n-abstract

View on GitHub
src/AbstractStringTranslator.php

Summary

Maintainability
A
35 mins
Test Coverage

Method _createStringTranslationException has 5 arguments (exceeds 4 allowed). Consider refactoring.
Open

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

    The method _translateString is not named in camelCase.
    Open

        abstract protected function _translateString($string, $context = null);
    Severity: Minor
    Found in src/AbstractStringTranslator.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

        protected function _translate($string, $context = null)
        {
            $string = $this->_translateString($string, $context);
    
            return $string;
    Severity: Minor
    Found in src/AbstractStringTranslator.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 _createStringTranslationException is not named in camelCase.
    Open

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