示例#1
0
 /**
  * Constructor
  *
  * @param string $reportFile Destination file to write inspection report to
  * @param int|null $minLines Minimum number of identical lines
  * @param int|null $minTokens Minimum number of identical tokens
  */
 public function __construct($reportFile, $minLines = null, $minTokens = null)
 {
     parent::__construct($reportFile);
     $this->_minLines = $minLines;
     $this->_minTokens = $minTokens;
 }
示例#2
0
 /**
  * Constructor
  *
  * @param string $rulesetDir Directory that locates the inspection rules
  * @param string $reportFile Destination file to write inspection report to
  */
 public function __construct($rulesetDir, $reportFile)
 {
     parent::__construct($reportFile);
     $this->_rulesetDir = $rulesetDir;
 }