lib/Ajde/Log/Writer/Php.php

Summary

Maintainability
A
45 mins
Test Coverage

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

        $message,
        $channel = Ajde_Log::CHANNEL_INFO,
        $level = Ajde_Log::LEVEL_INFORMATIONAL,
        $description = '',
        $code = '',
Severity: Minor
Found in lib/Ajde/Log/Writer/Php.php - About 45 mins to fix

    Avoid unused parameters such as '$channel'.
    Open

            $channel = Ajde_Log::CHANNEL_INFO,
    Severity: Minor
    Found in lib/Ajde/Log/Writer/Php.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 '$description'.
    Open

            $description = '',
    Severity: Minor
    Found in lib/Ajde/Log/Writer/Php.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 '$code'.
    Open

            $code = '',
    Severity: Minor
    Found in lib/Ajde/Log/Writer/Php.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 '$level'.
    Open

            $level = Ajde_Log::LEVEL_INFORMATIONAL,
    Severity: Minor
    Found in lib/Ajde/Log/Writer/Php.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 using short method names like Ajde_Log_Writer_Php::_(). The configured minimum method name length is 3.
    Open

        public static function _(
            $message,
            $channel = Ajde_Log::CHANNEL_INFO,
            $level = Ajde_Log::LEVEL_INFORMATIONAL,
            $description = '',
    Severity: Minor
    Found in lib/Ajde/Log/Writer/Php.php by phpmd

    ShortMethodName

    Since: 0.2

    Detects when very short method names are used.

    Example

    class ShortMethod {
        public function a( $index ) { // Violation
        }
    }

    Source https://phpmd.org/rules/naming.html#shortmethodname

    The class Ajde_Log_Writer_Php is not named in CamelCase.
    Open

    class Ajde_Log_Writer_Php extends Ajde_Log_Writer_Abstract
    {
        public static function _(
            $message,
            $channel = Ajde_Log::CHANNEL_INFO,
    Severity: Minor
    Found in lib/Ajde/Log/Writer/Php.php by phpmd

    CamelCaseClassName

    Since: 0.2

    It is considered best practice to use the CamelCase notation to name classes.

    Example

    class class_name {
    }

    Source

    The method _ is not named in camelCase.
    Open

        public static function _(
            $message,
            $channel = Ajde_Log::CHANNEL_INFO,
            $level = Ajde_Log::LEVEL_INFORMATIONAL,
            $description = '',
    Severity: Minor
    Found in lib/Ajde/Log/Writer/Php.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