Lines Matching refs:type
93 * @param string $type The type of the report.
98 public function factory($type) argument
100 $type = ucfirst($type);
101 if (isset($this->_reports[$type]) === true) {
102 return $this->_reports[$type];
105 if (strpos($type, '.') !== false) {
107 $filename = realpath($type);
109 echo 'ERROR: Custom report "'.$type.'" not found'.PHP_EOL;
117 $filename = $type.'.php';
118 $reportClassName = 'PHP_CodeSniffer_Reports_'.$type;
120 echo 'ERROR: Report type "'.$type.'" not found'.PHP_EOL;
130 $this->_reports[$type] = $reportClass;
131 return $this->_reports[$type];