Esempio n. 1
0
 public function apply(PHPUnit_Util_Metrics $metrics)
 {
     $varsNp = $metrics->getVARSnp();
     if ($varsNp > $this->threshold) {
         return sprintf("Class has %d public fields.\n" . 'Classes that have too many fields could be redesigned ' . 'to have fewer fields, possibly through some nested ' . 'object grouping of some of the information. For ' . 'example, a class with city/state/zip fields could ' . 'instead have one Address field.', $varsNp);
     }
 }