Dhii/wp-i18n

View on GitHub

Showing 11 of 11 total issues

The method _resolveTextDomain is not named in camelCase.
Open

    protected function _resolveTextDomain($domain)
    {
        return $this->_resolveString($domain);
    }
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 _setTextDomain is not named in camelCase.
Open

    protected function _setTextDomain($domain)
    {
        $this->textDomain = $domain;

        return $this;
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 _resolveString is not named in camelCase.
Open

    protected function _resolveString($string)
    {
        if ($string instanceof Stringable) {
            return (string) $string;
        }
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 _resolveSubject is not named in camelCase.
Open

    protected function _resolveSubject($subject)
    {
        return $this->_resolveString($subject);
    }
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 _resolveValue is not named in camelCase.
Open

    protected function _resolveValue($value)
    {
        if ($value instanceof Value) {
            $value = $value->getValue();
        }
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 _translateString is not named in camelCase.
Open

    protected function _translateString($string, $context = null)
    {
        $domain = $this->_getTextDomain();
        $result = is_null($context)
                ? $this->_translateWithoutContext($string, $domain)
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 _resolveContext is not named in camelCase.
Open

    protected function _resolveContext($context)
    {
        return $this->_resolveString($context);
    }
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 _translateWithoutContext is not named in camelCase.
Open

    protected function _translateWithoutContext($subject, $domain = null)
    {
        if (is_null($domain)) {
            $domain = static::DEFAULT_TEXT_DOMAIN;
        }
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 _getTextDomain is not named in camelCase.
Open

    protected function _getTextDomain()
    {
        return $this->textDomain;
    }
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 _construct is not named in camelCase.
Open

    protected function _construct()
    {
    }
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 _translateWithContext is not named in camelCase.
Open

    protected function _translateWithContext($subject, $context, $domain = null)
    {
        if (is_null($domain)) {
            $domain = static::DEFAULT_TEXT_DOMAIN;
        }
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

Severity
Category
Status
Source
Language