GemsTracker/gemstracker-library

View on GitHub
classes/Gems/Agenda/Filter/AndModelDependency.php

Summary

Maintainability
A
1 hr
Test Coverage
F
0%

Method getTextSettings has 42 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function getTextSettings()
    {
        $messages = array(
            'gaf_id' => $this->_('Sub filter may not be the same as this filter.'),
            $this->_('Filters may be chosen only once.')
Severity: Minor
Found in classes/Gems/Agenda/Filter/AndModelDependency.php - About 1 hr to fix

    Avoid unused parameters such as '$value'.
    Open

        protected function calcultateNameOutput($value, $isNew, $name, $context)

    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 '$name'.
    Open

        protected function calcultateNameOutput($value, $isNew, $name, $context)

    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 '$isNew'.
    Open

        protected function calcultateNameOutput($value, $isNew, $name, $context)

    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 '$value'.
    Open

        public function displayFilterLink($value, $raw)

    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