felixarntz/plugin-lib

View on GitHub
src/translations/translations.php

Summary

Maintainability
A
35 mins
Test Coverage

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

        protected function _nxtranslate( $singular_message, $plural_message, $number, $context, $textdomain ) {
Severity: Minor
Found in src/translations/translations.php - About 35 mins to fix

    Avoid unused parameters such as '$textdomain'.
    Open

            protected function __translate( $message, $textdomain ) {
    Severity: Minor
    Found in src/translations/translations.php by phpmd

    UnusedFormalParameter

    Since: 0.2

    Avoid passing parameters to methods or constructors and then not using those parameters.

    Example

    class Foo
    {
        private function bar($howdy)
        {
            // $howdy is not used
        }
    }

    Source https://phpmd.org/rules/unusedcode.html#unusedformalparameter

    Avoid unused parameters such as '$textdomain'.
    Open

            protected function _xtranslate( $message, $context, $textdomain ) {
    Severity: Minor
    Found in src/translations/translations.php by phpmd

    UnusedFormalParameter

    Since: 0.2

    Avoid passing parameters to methods or constructors and then not using those parameters.

    Example

    class Foo
    {
        private function bar($howdy)
        {
            // $howdy is not used
        }
    }

    Source https://phpmd.org/rules/unusedcode.html#unusedformalparameter

    Avoid unused parameters such as '$textdomain'.
    Open

            protected function _ntranslate( $singular_message, $plural_message, $number, $textdomain ) {
    Severity: Minor
    Found in src/translations/translations.php by phpmd

    UnusedFormalParameter

    Since: 0.2

    Avoid passing parameters to methods or constructors and then not using those parameters.

    Example

    class Foo
    {
        private function bar($howdy)
        {
            // $howdy is not used
        }
    }

    Source https://phpmd.org/rules/unusedcode.html#unusedformalparameter

    Avoid unused parameters such as '$textdomain'.
    Open

            protected function _nxtranslate( $singular_message, $plural_message, $number, $context, $textdomain ) {
    Severity: Minor
    Found in src/translations/translations.php by phpmd

    UnusedFormalParameter

    Since: 0.2

    Avoid passing parameters to methods or constructors and then not using those parameters.

    Example

    class Foo
    {
        private function bar($howdy)
        {
            // $howdy is not used
        }
    }

    Source https://phpmd.org/rules/unusedcode.html#unusedformalparameter

    Avoid unused parameters such as '$context'.
    Open

            protected function _xtranslate( $message, $context, $textdomain ) {
    Severity: Minor
    Found in src/translations/translations.php by phpmd

    UnusedFormalParameter

    Since: 0.2

    Avoid passing parameters to methods or constructors and then not using those parameters.

    Example

    class Foo
    {
        private function bar($howdy)
        {
            // $howdy is not used
        }
    }

    Source https://phpmd.org/rules/unusedcode.html#unusedformalparameter

    Avoid unused parameters such as '$context'.
    Open

            protected function _nxtranslate( $singular_message, $plural_message, $number, $context, $textdomain ) {
    Severity: Minor
    Found in src/translations/translations.php by phpmd

    UnusedFormalParameter

    Since: 0.2

    Avoid passing parameters to methods or constructors and then not using those parameters.

    Example

    class Foo
    {
        private function bar($howdy)
        {
            // $howdy is not used
        }
    }

    Source https://phpmd.org/rules/unusedcode.html#unusedformalparameter

    There are no issues that match your filters.

    Category
    Status