示例#1
0
 /**
  * Stores a reference to an issue detector, if we don't already know about it,
  * for use by getDetectors().
  *
  * @param AnalyzerInterface $detector
  */
 protected function addDetector(AnalyzerInterface $detector)
 {
     if ($detector instanceof PluginInspectionInterface) {
         $this->detectors[] = $detector->getPluginId();
     }
 }