classes/Gems/Event/Survey/Display/ShowHiddenFields.php
Avoid unused parameters such as '$token'. Open
Open
public function getAnswerDisplaySnippets(\Gems_Tracker_Token $token)
- Read upRead up
- Exclude checks
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
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.
- Read upRead up
- Exclude checks
LongClassName
Since: 2.9
Detects when classes or interfaces are declared with excessively long names.
Example
class ATooLongClassNameThatHintsAtADesignProblem {
}
interface ATooLongInterfaceNameThatHintsAtADesignProblem {
}