/** * Returns <b>true</b> when the given method should be used for this rule's * analysis. * * @param PHP_PMD_Node_Class $class The context class instance. * @param PHP_PMD_Node_Method $method The context method instance. * * @return boolean */ private function _acceptMethod(PHP_PMD_Node_Class $class, PHP_PMD_Node_Method $method) { return $method->isPrivate() && strcasecmp($method->getImage(), $class->getImage()) !== 0 && strcasecmp($method->getImage(), '__construct') !== 0 && strcasecmp($method->getImage(), '__destruct') !== 0 && strcasecmp($method->getImage(), '__clone') !== 0; }
/** * Returns <b>true</b> when the given method should be used for this rule's * analysis. * * @param PHP_PMD_Node_Class $class The context class instance. * @param PHP_PMD_Node_Method $method The context method instance. * * @return boolean */ private function _acceptMethod(PHP_PMD_Node_Class $class, PHP_PMD_Node_Method $method) { return $method->isPrivate() && false === $method->hasSuppressWarningsAnnotationFor($this) && strcasecmp($method->getImage(), $class->getImage()) !== 0 && strcasecmp($method->getImage(), '__construct') !== 0 && strcasecmp($method->getImage(), '__destruct') !== 0 && strcasecmp($method->getImage(), '__clone') !== 0; }