/** * This method checks the number of arguments for the given function or method * node against a configured threshold. * * @param \PHPMD\AbstractNode $node * @return void */ public function apply(AbstractNode $node) { $threshold = $this->getIntProperty('minimum'); $count = $node->getParameterCount(); if ($count < $threshold) { return; } $this->addViolation($node, array($node->getType(), $node->getName(), $count, $threshold)); }