CRITICAL
Rule Definition
Long parameter lists can indicate that a new object should be created to wrap the numerous parameters. In other words, always try to group the parameters together.
Remediation
Modify the source code of the Method to reduce the number of parameters.
Violation Code Sample
class CastTest
{
public function addData( $param0, $param1, $param2, $param3, $param4, $param5, $param5, $param6, $param7, $param8, $param9, $param10)
{
}
}
Reference
PHPMD http://phpmd.org/rules/codesize.html#excessivemethodlength
Related Technologies
Technical Criterion
CWE-1080 - Source Code File with Excessive Number of Lines of Code
About CAST Appmarq
CAST Appmarq is by far the biggest repository of data about real IT systems. It's built on thousands of analyzed applications, made of 35 different technologies, by over 300 business organizations across major verticals. It provides IT Leaders with factual key analytics to let them know if their applications are on track.