GemsTracker/gemstracker-library

View on GitHub
classes/Gems/Event/Survey/Display/ShowHiddenFields.php

Summary

Maintainability
A
0 mins
Test Coverage
D
60%

Avoid unused parameters such as '$token'.
Open

    public function getAnswerDisplaySnippets(\Gems_Tracker_Token $token)

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 excessively long class names like Gems_Event_Survey_Display_ShowHiddenFields. Keep class name length under 40.
Open

class Gems_Event_Survey_Display_ShowHiddenFields extends \MUtil_Translate_TranslateableAbstract
    implements \Gems_Event_SurveyDisplayEventInterface
{
    /**
     * Function that returns the snippets to use for this display.

LongClassName

Since: 2.9

Detects when classes or interfaces are declared with excessively long names.

Example

class ATooLongClassNameThatHintsAtADesignProblem {

}

interface ATooLongInterfaceNameThatHintsAtADesignProblem {

}

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

There are no issues that match your filters.

Category
Status